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>
376 struct rte_security_session {
377 void *sess_private_data;
379 uint64_t opaque_data;
393 struct rte_security_session *
411 struct rte_security_session *sess,
442 struct rte_security_session *sess);
459 struct rte_security_session *sess,
491 struct rte_security_session *sess)
499 get_sec_session_private_data(
const struct rte_security_session *sess)
501 return sess->sess_private_data;
505 set_sec_session_private_data(
struct rte_security_session *sess,
508 sess->sess_private_data = private_data;
522 struct rte_security_session *sess)
532 struct rte_security_macsec_stats {
536 struct rte_security_ipsec_stats {
547 struct rte_security_pdcp_stats {
551 struct rte_security_docsis_stats {
555 struct rte_security_stats {
561 struct rte_security_macsec_stats macsec;
562 struct rte_security_ipsec_stats ipsec;
563 struct rte_security_pdcp_stats pdcp;
564 struct rte_security_docsis_stats docsis;
584 struct rte_security_session *sess,
585 struct rte_security_stats *stats);
643 #define RTE_SECURITY_PDCP_ORDERING_CAP 0x00000001
649 #define RTE_SECURITY_PDCP_DUP_DETECT_CAP 0x00000002
651 #define RTE_SECURITY_TX_OLOAD_NEED_MDATA 0x00000001
655 #define RTE_SECURITY_TX_HW_TRAILER_OFFLOAD 0x00000002
661 #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)
enum rte_security_session_action_type action
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
rte_security_ipsec_sa_mode
enum rte_security_pdcp_domain domain
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
__rte_experimental int rte_security_session_stats_get(struct rte_security_ctx *instance, struct rte_security_session *sess, struct rte_security_stats *stats)
__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)
enum rte_security_session_protocol protocol
enum rte_security_session_action_type action_type
struct rte_security_ipsec_sa_options options
enum rte_security_ipsec_sa_direction direction
struct rte_security_capability::@305::@308 macsec
struct rte_security_capability::@305::@309 pdcp
struct rte_security_capability::@305::@310 docsis
struct rte_security_ipsec_tunnel_param::@297::@299 ipv4
enum rte_security_ipsec_sa_protocol proto
rte_security_docsis_direction
enum rte_security_ipsec_sa_mode mode
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_capability::@305::@307 ipsec
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_security_ipsec_tunnel_param::@297::@300 ipv6
struct rte_crypto_sym_op sym[0]