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

Function rte_ipsec_telemetry_sa_add

dpdk/lib/ipsec/ipsec_telemetry.c:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205
206
207int
208rte_ipsec_telemetry_sa_add(const struct rte_ipsec_sa *sa)
209{
210 struct ipsec_telemetry_entry *entry = rte_zmalloc(NULL,
211 sizeof(struct ipsec_telemetry_entry), 0);
212 if (entry == NULL)
213 return -ENOMEM;
214 entry->sa = sa;
215 LIST_INSERT_HEAD(&ipsec_telemetry_list, entry, next);
216 return 0;
217}
218
219void
220rte_ipsec_telemetry_sa_del(const struct rte_ipsec_sa *sa)

Callers 1

ipsec_sa_initFunction · 0.85

Calls 1

rte_zmallocFunction · 0.85

Tested by

no test coverage detected