| 1762 | } |
| 1763 | |
| 1764 | int |
| 1765 | inbound_sa_check(struct sa_ctx *sa_ctx, struct rte_mbuf *m, uint32_t sa_idx) |
| 1766 | { |
| 1767 | struct ipsec_mbuf_metadata *priv; |
| 1768 | struct ipsec_sa *sa; |
| 1769 | |
| 1770 | priv = get_priv(m); |
| 1771 | sa = priv->sa; |
| 1772 | if (sa != NULL) |
| 1773 | return (sa_ctx->sa[sa_idx].spi == sa->spi); |
| 1774 | |
| 1775 | RTE_LOG(ERR, IPSEC, "SA not saved in private data\n"); |
| 1776 | return 0; |
| 1777 | } |
| 1778 | |
| 1779 | void |
| 1780 | inbound_sa_lookup(struct sa_ctx *sa_ctx, struct rte_mbuf *pkts[], |
no test coverage detected