Home
last modified time | relevance | path

Searched refs:sa_idx (Results 1 – 9 of 9) sorted by relevance

/f-stack/dpdk/examples/ipsec-secgw/
H A Dipsec_worker.c118 *sa_idx = -1; in check_sp()
122 *sa_idx = res - 1; in check_sp()
193 uint32_t sa_idx; in process_ipsec_ev_inbound() local
215 if (check_sp(ctx->sp4_ctx, nlp, &sa_idx) == 0) { in process_ipsec_ev_inbound()
233 if (check_sp(ctx->sp6_ctx, nlp, &sa_idx) == 0) { in process_ipsec_ev_inbound()
245 if (sa_idx == BYPASS) in process_ipsec_ev_inbound()
249 if (sa_idx >= ctx->sa_ctx->nb_sa) in process_ipsec_ev_inbound()
294 uint32_t sa_idx; in process_ipsec_ev_outbound() local
328 if (sa_idx == BYPASS) { in process_ipsec_ev_outbound()
339 if (sa_idx >= ctx->sa_ctx->nb_sa) in process_ipsec_ev_outbound()
[all …]
H A Dipsec.h276 uint32_t sa_idx[], uint16_t nb_pkts, uint16_t len);
347 inbound_sa_check(struct sa_ctx *sa_ctx, struct rte_mbuf *m, uint32_t sa_idx);
354 outbound_sa_lookup(struct sa_ctx *sa_ctx, uint32_t sa_idx[],
H A Dsa.c1528 inbound_sa_check(struct sa_ctx *sa_ctx, struct rte_mbuf *m, uint32_t sa_idx) in inbound_sa_check() argument
1536 return (sa_ctx->sa[sa_idx].spi == sa->spi); in inbound_sa_check()
1577 outbound_sa_lookup(struct sa_ctx *sa_ctx, uint32_t sa_idx[], in outbound_sa_lookup() argument
1583 sa[i] = &sa_ctx->sa[sa_idx[i]]; in outbound_sa_lookup()
H A Dipsec-secgw.c638 uint32_t i, j, res, sa_idx; in inbound_sp_sa() local
665 sa_idx = res - 1; in inbound_sp_sa()
666 if (!inbound_sa_check(sa, m, sa_idx)) { in inbound_sp_sa()
741 uint32_t i, j, sa_idx; in outbound_sp() local
752 sa_idx = ip->res[i] - 1; in outbound_sp()
758 ipsec->res[ipsec->num] = sa_idx; in outbound_sp()
H A Dipsec.c736 uint32_t sa_idx[], uint16_t nb_pkts, uint16_t len) in ipsec_outbound() argument
740 outbound_sa_lookup(ctx->sa_ctx, sa_idx, sas, nb_pkts); in ipsec_outbound()
/f-stack/dpdk/drivers/net/ixgbe/
H A Dixgbe_ipsec.h95 uint32_t sa_idx; member
H A Dixgbe_rxtx.h166 uint64_t sa_idx:8; /**< TX SA database entry index */ member
H A Dixgbe_ipsec.c490 mdata->sa_idx = ic_session->sa_index; in ixgbe_crypto_update_mb()
H A Dixgbe_rxtx.c462 (IXGBE_ADVTXD_IPSEC_SA_INDEX_MASK & md->sa_idx); in ixgbe_set_xmit_ctx()
468 tx_offload_mask.sa_idx |= ~0; in ixgbe_set_xmit_ctx()
699 tx_offload.sa_idx = ipsec_mdata->sa_idx; in ixgbe_xmit_pkts()