DPDK  21.02.0
rte_security_driver.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2017 NXP.
3  * Copyright(c) 2017 Intel Corporation.
4  */
5 
6 #ifndef _RTE_SECURITY_DRIVER_H_
7 #define _RTE_SECURITY_DRIVER_H_
8 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include "rte_security.h"
21 
36 typedef int (*security_session_create_t)(void *device,
37  struct rte_security_session_conf *conf,
38  struct rte_security_session *sess,
39  struct rte_mempool *mp);
40 
47 typedef int (*security_session_destroy_t)(void *device,
48  struct rte_security_session *sess);
49 
62 typedef int (*security_session_update_t)(void *device,
63  struct rte_security_session *sess,
64  struct rte_security_session_conf *conf);
65 
75 typedef unsigned int (*security_session_get_size)(void *device);
76 
88 typedef int (*security_session_stats_get_t)(void *device,
89  struct rte_security_session *sess,
90  struct rte_security_stats *stats);
91 
92 __rte_experimental
93 int rte_security_dynfield_register(void);
94 
107 typedef int (*security_set_pkt_metadata_t)(void *device,
108  struct rte_security_session *sess, struct rte_mbuf *mb,
109  void *params);
110 
124 typedef int (*security_get_userdata_t)(void *device,
125  uint64_t md, void **userdata);
126 
136 typedef const struct rte_security_capability *(*security_capabilities_get_t)(
137  void *device);
138 
157 };
158 
159 #ifdef __cplusplus
160 }
161 #endif
162 
163 #endif /* _RTE_SECURITY_DRIVER_H_ */
int(* security_session_update_t)(void *device, struct rte_security_session *sess, struct rte_security_session_conf *conf)
security_session_stats_get_t session_stats_get
const struct rte_security_capability *(* security_capabilities_get_t)(void *device)
int(* security_session_stats_get_t)(void *device, struct rte_security_session *sess, struct rte_security_stats *stats)
security_session_update_t session_update
security_capabilities_get_t capabilities_get
security_session_destroy_t session_destroy
int(* security_set_pkt_metadata_t)(void *device, struct rte_security_session *sess, struct rte_mbuf *mb, void *params)
security_get_userdata_t get_userdata
security_session_create_t session_create
int(* security_get_userdata_t)(void *device, uint64_t md, void **userdata)
security_set_pkt_metadata_t set_pkt_metadata
security_session_get_size session_get_size
int(* security_session_destroy_t)(void *device, struct rte_security_session *sess)
int(* security_session_create_t)(void *device, struct rte_security_session_conf *conf, struct rte_security_session *sess, struct rte_mempool *mp)
unsigned int(* security_session_get_size)(void *device)