DPDK
23.07.0
|
Go to the source code of this file.
Data Structures | |
struct | rte_security_ops |
Macros | |
#define | SECURITY_GET_SESS_PRIV(s) ((void *)(((struct rte_security_session *)s)->driver_priv_data)) |
Typedefs | |
typedef int(* | security_session_create_t) (void *device, struct rte_security_session_conf *conf, struct rte_security_session *sess) |
typedef int(* | security_session_destroy_t) (void *device, struct rte_security_session *sess) |
typedef int(* | security_session_update_t) (void *device, struct rte_security_session *sess, struct rte_security_session_conf *conf) |
typedef int(* | security_macsec_sc_create_t) (void *device, struct rte_security_macsec_sc *conf) |
typedef int(* | security_macsec_sc_destroy_t) (void *device, uint16_t sc_id, enum rte_security_macsec_direction dir) |
typedef int(* | security_macsec_sa_create_t) (void *device, struct rte_security_macsec_sa *conf) |
typedef int(* | security_macsec_sa_destroy_t) (void *device, uint16_t sa_id, enum rte_security_macsec_direction dir) |
typedef unsigned int(* | security_session_get_size) (void *device) |
typedef int(* | security_session_stats_get_t) (void *device, struct rte_security_session *sess, struct rte_security_stats *stats) |
typedef int(* | security_macsec_sc_stats_get_t) (void *device, uint16_t sc_id, enum rte_security_macsec_direction dir, struct rte_security_macsec_sc_stats *stats) |
typedef int(* | security_macsec_sa_stats_get_t) (void *device, uint16_t sa_id, enum rte_security_macsec_direction dir, struct rte_security_macsec_sa_stats *stats) |
typedef int(* | security_set_pkt_metadata_t) (void *device, struct rte_security_session *sess, struct rte_mbuf *mb, void *params) |
typedef const struct rte_security_capability *(* | security_capabilities_get_t) (void *device) |
RTE Security Common Definitions
Definition in file rte_security_driver.h.
#define SECURITY_GET_SESS_PRIV | ( | s | ) | ((void *)(((struct rte_security_session *)s)->driver_priv_data)) |
Helper macro to get driver private data
Definition at line 43 of file rte_security_driver.h.
typedef int(* security_session_create_t) (void *device, struct rte_security_session_conf *conf, struct rte_security_session *sess) |
Configure a security session on a device.
device | Crypto/eth device pointer |
conf | Security session configuration |
sess | Pointer to Security private session structure |
Definition at line 60 of file rte_security_driver.h.
typedef int(* security_session_destroy_t) (void *device, struct rte_security_session *sess) |
Free driver private session data.
device | Crypto/eth device pointer |
sess | Security session structure |
Definition at line 70 of file rte_security_driver.h.
typedef int(* security_session_update_t) (void *device, struct rte_security_session *sess, struct rte_security_session_conf *conf) |
Update driver private session data.
device | Crypto/eth device pointer |
sess | Pointer to Security private session structure |
conf | Security session configuration |
Definition at line 85 of file rte_security_driver.h.
typedef int(* security_macsec_sc_create_t) (void *device, struct rte_security_macsec_sc *conf) |
Configure a MACsec secure channel (SC) on a device.
device | Crypto/eth device pointer |
conf | MACsec SC configuration params |
Definition at line 101 of file rte_security_driver.h.
typedef int(* security_macsec_sc_destroy_t) (void *device, uint16_t sc_id, enum rte_security_macsec_direction dir) |
Free MACsec secure channel (SC).
device | Crypto/eth device pointer |
sc_id | MACsec SC ID |
dir | Direction of SC |
Definition at line 110 of file rte_security_driver.h.
typedef int(* security_macsec_sa_create_t) (void *device, struct rte_security_macsec_sa *conf) |
Configure a MACsec security Association (SA) on a device.
device | Crypto/eth device pointer |
conf | MACsec SA configuration params |
Definition at line 125 of file rte_security_driver.h.
typedef int(* security_macsec_sa_destroy_t) (void *device, uint16_t sa_id, enum rte_security_macsec_direction dir) |
Free MACsec security association (SA).
device | Crypto/eth device pointer |
sa_id | MACsec SA ID |
dir | Direction of SA |
Definition at line 134 of file rte_security_driver.h.
typedef unsigned int(* security_session_get_size) (void *device) |
Get the size of a security session
device | Crypto/eth device pointer |
Definition at line 146 of file rte_security_driver.h.
typedef int(* security_session_stats_get_t) (void *device, struct rte_security_session *sess, struct rte_security_stats *stats) |
Get stats from the PMD.
device | Crypto/eth device pointer |
sess | Pointer to Security private session structure |
stats | Security stats of the driver |
Definition at line 159 of file rte_security_driver.h.
typedef int(* security_macsec_sc_stats_get_t) (void *device, uint16_t sc_id, enum rte_security_macsec_direction dir, struct rte_security_macsec_sc_stats *stats) |
Get MACsec secure channel stats from the PMD.
device | Crypto/eth device pointer |
sc_id | secure channel ID created by rte_security_macsec_sc_create() |
dir | direction of SC |
stats | SC stats of the driver |
Definition at line 175 of file rte_security_driver.h.
typedef int(* security_macsec_sa_stats_get_t) (void *device, uint16_t sa_id, enum rte_security_macsec_direction dir, struct rte_security_macsec_sa_stats *stats) |
Get MACsec SA stats from the PMD.
device | Crypto/eth device pointer |
sa_id | secure channel ID created by rte_security_macsec_sc_create() |
dir | direction of SA |
stats | SC stats of the driver |
Definition at line 191 of file rte_security_driver.h.
typedef int(* security_set_pkt_metadata_t) (void *device, struct rte_security_session *sess, struct rte_mbuf *mb, void *params) |
Update the mbuf with provided metadata.
device | Crypto/eth device pointer |
sess | Security session structure |
mb | Packet buffer |
params | Metadata |
Definition at line 212 of file rte_security_driver.h.
typedef const struct rte_security_capability*(* security_capabilities_get_t) (void *device) |
Get security capabilities of the device.
device | crypto/eth device pointer |
Definition at line 225 of file rte_security_driver.h.