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;
285 struct rte_security_session {
286 void *sess_private_data;
300 struct rte_security_session * __rte_experimental
315 int __rte_experimental
317 struct rte_security_session *sess,
329 unsigned int __rte_experimental
344 int __rte_experimental
346 struct rte_security_session *sess);
361 int __rte_experimental
363 struct rte_security_session *sess,
383 void * __rte_experimental
392 static inline int __rte_experimental
394 struct rte_security_session *sess)
401 static inline void * __rte_experimental
402 get_sec_session_private_data(
const struct rte_security_session *sess)
404 return sess->sess_private_data;
407 static inline void __rte_experimental
408 set_sec_session_private_data(
struct rte_security_session *sess,
411 sess->sess_private_data = private_data;
423 static inline int __rte_experimental
425 struct rte_security_session *sess)
435 struct rte_security_macsec_stats {
439 struct rte_security_ipsec_stats {
444 struct rte_security_stats {
450 struct rte_security_macsec_stats macsec;
451 struct rte_security_ipsec_stats ipsec;
465 int __rte_experimental
467 struct rte_security_session *sess,
468 struct rte_security_stats *stats);
505 #define RTE_SECURITY_TX_OLOAD_NEED_MDATA 0x00000001
509 #define RTE_SECURITY_TX_HW_TRAILER_OFFLOAD 0x00000002
515 #define RTE_SECURITY_RX_HW_TRAILER_OFFLOAD 0x00010000