DPDK  19.11.14
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 
103 typedef int (*security_set_pkt_metadata_t)(void *device,
104  struct rte_security_session *sess, struct rte_mbuf *m,
105  void *params);
106 
120 typedef int (*security_get_userdata_t)(void *device,
121  uint64_t md, void **userdata);
122 
132 typedef const struct rte_security_capability *(*security_capabilities_get_t)(
133  void *device);
134 
153 };
154 
155 #ifdef __cplusplus
156 }
157 #endif
158 
159 #endif /* _RTE_SECURITY_DRIVER_H_ */
int(* security_session_update_t)(void *device, struct rte_security_session *sess, struct rte_security_session_conf *conf)
void * userdata
security_session_stats_get_t session_stats_get
const struct rte_security_capability *(* security_capabilities_get_t)(void *device)
int(* security_set_pkt_metadata_t)(void *device, struct rte_security_session *sess, struct rte_mbuf *m, void *params)
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
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)