| 45 | } |
| 46 | |
| 47 | static inline void |
| 48 | sa_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 | |
| 60 | static inline void |
| 61 | sad_lookup(struct ipsec_sad *sad, struct rte_mbuf *pkts[], |