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

Function rte_security_session_destroy

dpdk/lib/security/rte_security.c:133–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133int
134rte_security_session_destroy(void *ctx, void *sess)
135{
136 struct rte_security_ctx *instance = ctx;
137 int ret;
138
139 RTE_PTR_CHAIN3_OR_ERR_RET(instance, ops, session_destroy, -EINVAL,
140 -ENOTSUP);
141 RTE_PTR_OR_ERR_RET(sess, -EINVAL);
142
143 ret = instance->ops->session_destroy(instance->device, sess);
144 if (ret != 0)
145 return ret;
146
147 rte_mempool_put(rte_mempool_from_obj(sess), (void *)sess);
148
149 if (instance->sess_cnt)
150 instance->sess_cnt--;
151
152 return 0;
153}
154
155int
156rte_security_macsec_sc_create(void *ctx, struct rte_security_macsec_sc *conf)

Callers 15

scheduler_session_createFunction · 0.85
ifFunction · 0.85
ifFunction · 0.85
ifFunction · 0.85
test_macsecFunction · 0.85
ut_teardownFunction · 0.85
test_pdcp_protoFunction · 0.85

Calls 2

rte_mempool_putFunction · 0.85
rte_mempool_from_objFunction · 0.85

Tested by 15

ifFunction · 0.68
ifFunction · 0.68
ifFunction · 0.68
test_macsecFunction · 0.68
ut_teardownFunction · 0.68
test_pdcp_protoFunction · 0.68
test_pdcp_proto_SGLFunction · 0.68
test_ipsec_proto_processFunction · 0.68