34 #ifndef _RTE_SECURITY_H_
35 #define _RTE_SECURITY_H_
49 #include <sys/types.h>
51 #include <netinet/in.h>
52 #include <netinet/ip.h>
53 #include <netinet/ip6.h>
280 struct rte_security_session {
281 void *sess_private_data;
295 struct rte_security_session *
312 struct rte_security_session *sess,
329 struct rte_security_session *sess);
346 struct rte_security_session *sess,
357 struct rte_security_session *sess)
365 get_sec_session_private_data(
const struct rte_security_session *sess)
367 return sess->sess_private_data;
371 set_sec_session_private_data(
struct rte_security_session *sess,
374 sess->sess_private_data = private_data;
388 struct rte_security_session *sess)
398 struct rte_security_macsec_stats {
402 struct rte_security_ipsec_stats {
407 struct rte_security_stats {
413 struct rte_security_macsec_stats macsec;
414 struct rte_security_ipsec_stats ipsec;
430 struct rte_security_session *sess,
431 struct rte_security_stats *stats);
468 #define RTE_SECURITY_TX_OLOAD_NEED_MDATA 0x00000001
472 #define RTE_SECURITY_TX_HW_TRAILER_OFFLOAD 0x00000002
478 #define RTE_SECURITY_RX_HW_TRAILER_OFFLOAD 0x00010000
rte_security_ipsec_sa_protocol
static int rte_security_attach_session(struct rte_crypto_op *op, struct rte_security_session *sess)
rte_security_session_action_type
int rte_security_session_destroy(struct rte_security_ctx *instance, struct rte_security_session *sess)
int rte_security_set_pkt_metadata(struct rte_security_ctx *instance, struct rte_security_session *sess, struct rte_mbuf *mb, void *params)
struct rte_security_session * sec_session
const struct rte_security_capability * rte_security_capabilities_get(struct rte_security_ctx *instance)
enum rte_security_session_action_type action
struct rte_crypto_sym_xform * crypto_xform
int rte_security_session_update(struct rte_security_ctx *instance, struct rte_security_session *sess, struct rte_security_session_conf *conf)
rte_security_ipsec_sa_mode
struct rte_security_capability::@153::@156 macsec
static int __rte_security_attach_session(struct rte_crypto_sym_op *sym_op, struct rte_security_session *sess)
rte_security_ipsec_sa_direction
rte_security_ipsec_tunnel_type
struct rte_security_ipsec_tunnel_param::@145::@147 ipv4
enum rte_security_session_protocol protocol
enum rte_security_session_action_type action_type
struct rte_security_ipsec_tunnel_param::@145::@148 ipv6
struct rte_security_ipsec_sa_options options
enum rte_security_ipsec_sa_direction direction
int rte_security_session_stats_get(struct rte_security_ctx *instance, struct rte_security_session *sess, struct rte_security_stats *stats)
enum rte_security_ipsec_sa_protocol proto
enum rte_security_ipsec_sa_mode mode
struct rte_security_capability::@153::@155 ipsec
const struct rte_security_capability * rte_security_capability_get(struct rte_security_ctx *instance, struct rte_security_capability_idx *idx)
const struct rte_cryptodev_capabilities * crypto_capabilities
enum rte_security_ipsec_tunnel_type type
rte_security_session_protocol
struct rte_security_session * rte_security_session_create(struct rte_security_ctx *instance, struct rte_security_session_conf *conf, struct rte_mempool *mp)
enum rte_security_session_protocol protocol
const struct rte_security_ops * ops
struct rte_crypto_sym_op sym[0]