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

Function rsn_update_finish

dpdk/lib/ipsec/ipsec_sqn.h:292–306  ·  view source on GitHub ↗

* Finish RSN update. */

Source from the content-addressed store, hash-verified

290 * Finish RSN update.
291 */
292static inline void
293rsn_update_finish(struct rte_ipsec_sa *sa, struct replay_sqn *rsn)
294{
295 uint32_t n;
296
297 if (!SQN_ATOMIC(sa))
298 return;
299
300 n = sa->sqn.inb.wridx;
301 RTE_ASSERT(n != sa->sqn.inb.rdidx);
302 RTE_ASSERT(rsn == sa->sqn.inb.rsn[n]);
303
304 rte_rwlock_write_unlock(&rsn->rwl);
305 sa->sqn.inb.rdidx = n;
306}
307
308
309#endif /* _IPSEC_SQN_H_ */

Callers 1

esp_inb_rsn_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected