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

Function sa_cache_update

dpdk/examples/ipsec-secgw/sad.h:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47static inline void
48sa_cache_update(struct ipsec_sa **sa_cache, struct ipsec_sa *sa, uint32_t mask)
49{
50 uint32_t cache_idx;
51
52 /* SAD cache is disabled */
53 if (mask == 0)
54 return;
55
56 cache_idx = SPI2IDX(sa->spi, mask);
57 sa_cache[cache_idx] = sa;
58}
59
60static inline void
61sad_lookup(struct ipsec_sad *sad, struct rte_mbuf *pkts[],

Callers 1

sad_lookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected