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>
165 uint32_t dec_ttl : 1;
317 struct rte_security_session {
318 void *sess_private_data;
320 uint64_t opaque_data;
334 struct rte_security_session *
349 int __rte_experimental
351 struct rte_security_session *sess,
380 struct rte_security_session *sess);
397 struct rte_security_session *sess,
417 void * __rte_experimental
428 struct rte_security_session *sess)
436 get_sec_session_private_data(
const struct rte_security_session *sess)
438 return sess->sess_private_data;
442 set_sec_session_private_data(
struct rte_security_session *sess,
445 sess->sess_private_data = private_data;
459 struct rte_security_session *sess)
469 struct rte_security_macsec_stats {
473 struct rte_security_ipsec_stats {
478 struct rte_security_pdcp_stats {
482 struct rte_security_stats {
488 struct rte_security_macsec_stats macsec;
489 struct rte_security_ipsec_stats ipsec;
490 struct rte_security_pdcp_stats pdcp;
504 int __rte_experimental
506 struct rte_security_session *sess,
507 struct rte_security_stats *stats);
556 #define RTE_SECURITY_PDCP_ORDERING_CAP 0x00000001
562 #define RTE_SECURITY_PDCP_DUP_DETECT_CAP 0x00000002
564 #define RTE_SECURITY_TX_OLOAD_NEED_MDATA 0x00000001
568 #define RTE_SECURITY_TX_HW_TRAILER_OFFLOAD 0x00000002
574 #define RTE_SECURITY_RX_HW_TRAILER_OFFLOAD 0x00010000