6 #ifndef _RTE_SECURITY_H_ 7 #define _RTE_SECURITY_H_ 20 #include <sys/types.h> 22 #include <netinet/in.h> 23 #include <netinet/ip.h> 24 #include <netinet/ip6.h> 26 #include <rte_compat.h> 87 struct in_addr src_ip;
89 struct in_addr dst_ip;
100 struct in6_addr src_addr;
102 struct in6_addr dst_addr;
391 struct rte_security_session {
392 void *sess_private_data;
394 uint64_t opaque_data;
409 struct rte_security_session *
428 struct rte_security_session *sess,
459 struct rte_security_session *sess);
480 static inline rte_security_dynfield_t *
484 rte_security_dynfield_offset,
485 rte_security_dynfield_t *);
499 return rte_security_dynfield_offset >= 0;
517 struct rte_security_session *sess,
549 struct rte_security_session *sess)
557 get_sec_session_private_data(
const struct rte_security_session *sess)
559 return sess->sess_private_data;
563 set_sec_session_private_data(
struct rte_security_session *sess,
566 sess->sess_private_data = private_data;
580 struct rte_security_session *sess)
590 struct rte_security_macsec_stats {
594 struct rte_security_ipsec_stats {
605 struct rte_security_pdcp_stats {
609 struct rte_security_docsis_stats {
613 struct rte_security_stats {
619 struct rte_security_macsec_stats macsec;
620 struct rte_security_ipsec_stats ipsec;
621 struct rte_security_pdcp_stats pdcp;
622 struct rte_security_docsis_stats docsis;
642 struct rte_security_session *sess,
643 struct rte_security_stats *stats);
701 #define RTE_SECURITY_PDCP_ORDERING_CAP 0x00000001 707 #define RTE_SECURITY_PDCP_DUP_DETECT_CAP 0x00000002 709 #define RTE_SECURITY_TX_OLOAD_NEED_MDATA 0x00000001 713 #define RTE_SECURITY_TX_HW_TRAILER_OFFLOAD 0x00000002 719 #define RTE_SECURITY_RX_HW_TRAILER_OFFLOAD 0x00010000
rte_security_pdcp_sn_size
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
rte_security_pdcp_direction
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)
unsigned int rte_security_session_get_size(struct rte_security_ctx *instance)
uint32_t replay_win_sz_max
struct rte_crypto_sym_xform * crypto_xform
static __rte_experimental rte_security_dynfield_t * rte_security_dynfield(struct rte_mbuf *mbuf)
rte_security_ipsec_sa_mode
struct rte_security_session * rte_security_session_create(struct rte_security_ctx *instance, struct rte_security_session_conf *conf, struct rte_mempool *mp, struct rte_mempool *priv_mp)
static int __rte_security_attach_session(struct rte_crypto_sym_op *sym_op, struct rte_security_session *sess)
int rte_security_dynfield_offset
rte_security_ipsec_sa_direction
rte_security_ipsec_tunnel_type
__rte_experimental int rte_security_session_stats_get(struct rte_security_ctx *instance, struct rte_security_session *sess, struct rte_security_stats *stats)
#define RTE_MBUF_DYNFIELD(m, offset, type)
__rte_experimental void * rte_security_get_userdata(struct rte_security_ctx *instance, uint64_t md)
__rte_experimental int rte_security_session_update(struct rte_security_ctx *instance, struct rte_security_session *sess, struct rte_security_session_conf *conf)
static __rte_experimental bool rte_security_dynfield_is_registered(void)
rte_security_docsis_direction
uint64_t rte_security_dynfield_t
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
rte_security_session_protocol
const struct rte_security_ops * ops
struct rte_crypto_sym_op sym[0]