* Finish RSN update. */
| 290 | * Finish RSN update. |
| 291 | */ |
| 292 | static inline void |
| 293 | rsn_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_ */ |
no outgoing calls
no test coverage detected