MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_ipsec_session

Function check_ipsec_session

dpdk/examples/ipsec-secgw/ipsec_process.c:75–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static inline int
76check_ipsec_session(const struct rte_ipsec_session *ss)
77{
78 if (ss->type == RTE_SECURITY_ACTION_TYPE_NONE ||
79 ss->type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO) {
80 if (ss->crypto.ses == NULL)
81 return -ENOENT;
82 } else if (ss->type == RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL) {
83 if (ss->security.ses == NULL)
84 return -ENOENT;
85 } else
86 RTE_ASSERT(0);
87 return 0;
88}
89
90/*
91 * group input packets byt the SA they belong to.

Callers 1

ipsec_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected