DPDK 21.11.9
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
17extern "C" {
18#endif
19
20#include "rte_security.h"
21
36typedef 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
47typedef int (*security_session_destroy_t)(void *device,
48 struct rte_security_session *sess);
49
62typedef int (*security_session_update_t)(void *device,
63 struct rte_security_session *sess,
64 struct rte_security_session_conf *conf);
65
75typedef unsigned int (*security_session_get_size)(void *device);
76
88typedef int (*security_session_stats_get_t)(void *device,
89 struct rte_security_session *sess,
90 struct rte_security_stats *stats);
91
92__rte_internal
93int rte_security_dynfield_register(void);
94
107typedef int (*security_set_pkt_metadata_t)(void *device,
108 struct rte_security_session *sess, struct rte_mbuf *mb,
109 void *params);
110
124typedef int (*security_get_userdata_t)(void *device,
125 uint64_t md, void **userdata);
126
136typedef 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_create_t)(void *device, struct rte_security_session_conf *conf, struct rte_security_session *sess, struct rte_mempool *mp)
int(* security_session_update_t)(void *device, struct rte_security_session *sess, struct rte_security_session_conf *conf)
int(* security_session_stats_get_t)(void *device, struct rte_security_session *sess, struct rte_security_stats *stats)
unsigned int(* security_session_get_size)(void *device)
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 *mb, void *params)
int(* security_session_destroy_t)(void *device, struct rte_security_session *sess)
int(* security_get_userdata_t)(void *device, uint64_t md, void **userdata)
security_session_destroy_t session_destroy
security_session_update_t session_update
security_session_create_t session_create
security_set_pkt_metadata_t set_pkt_metadata
security_session_get_size session_get_size
security_session_stats_get_t session_stats_get
security_capabilities_get_t capabilities_get
security_get_userdata_t get_userdata