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>
55 #include <rte_compat.h>
194 uint32_t dec_ttl : 1;
283 struct rte_security_session {
284 void *sess_private_data;
298 struct rte_security_session * __rte_experimental
313 int __rte_experimental
315 struct rte_security_session *sess,
327 unsigned int __rte_experimental
342 int __rte_experimental
344 struct rte_security_session *sess);
359 int __rte_experimental
361 struct rte_security_session *sess,
379 void * __rte_experimental
388 static inline int __rte_experimental
390 struct rte_security_session *sess)
397 static inline void * __rte_experimental
398 get_sec_session_private_data(
const struct rte_security_session *sess)
400 return sess->sess_private_data;
403 static inline void __rte_experimental
404 set_sec_session_private_data(
struct rte_security_session *sess,
407 sess->sess_private_data = private_data;
419 static inline int __rte_experimental
421 struct rte_security_session *sess)
431 struct rte_security_macsec_stats {
435 struct rte_security_ipsec_stats {
440 struct rte_security_stats {
446 struct rte_security_macsec_stats macsec;
447 struct rte_security_ipsec_stats ipsec;
461 int __rte_experimental
463 struct rte_security_session *sess,
464 struct rte_security_stats *stats);
501 #define RTE_SECURITY_TX_OLOAD_NEED_MDATA 0x00000001
505 #define RTE_SECURITY_TX_HW_TRAILER_OFFLOAD 0x00000002
511 #define RTE_SECURITY_RX_HW_TRAILER_OFFLOAD 0x00010000