Lines Matching refs:sa_idx
134 check_sp(struct sp_ctx *sp, const uint8_t *nlp, uint32_t *sa_idx) in check_sp() argument
147 *sa_idx = -1; in check_sp()
151 *sa_idx = res - 1; in check_sp()
292 uint32_t sa_idx; in process_ipsec_ev_inbound() local
314 if (check_sp(ctx->sp4_ctx, nlp, &sa_idx) == 0) { in process_ipsec_ev_inbound()
332 if (check_sp(ctx->sp6_ctx, nlp, &sa_idx) == 0) { in process_ipsec_ev_inbound()
345 if (sa_idx == BYPASS) in process_ipsec_ev_inbound()
349 if (sa_idx >= ctx->sa_ctx->nb_sa) in process_ipsec_ev_inbound()
359 if (unlikely(sa->spi != ctx->sa_ctx->sa[sa_idx].spi)) in process_ipsec_ev_inbound()
394 uint32_t sa_idx; in process_ipsec_ev_outbound() local
406 if (check_sp(ctx->sp4_ctx, nlp, &sa_idx) == 0) { in process_ipsec_ev_outbound()
413 if (check_sp(ctx->sp6_ctx, nlp, &sa_idx) == 0) { in process_ipsec_ev_outbound()
428 if (sa_idx == BYPASS) { in process_ipsec_ev_outbound()
439 if (unlikely(sa_idx >= ctx->sa_ctx->nb_sa)) in process_ipsec_ev_outbound()
448 sa = &(sa_ctx->sa[sa_idx]); in process_ipsec_ev_outbound()
491 uint32_t sa_idx, i, j = 0; in ipsec_ev_route_pkts() local
529 sa_idx = t->ipsec.res[i]; in ipsec_ev_route_pkts()
531 if (unlikely(sa_idx >= sa_ctx->nb_sa)) in ipsec_ev_route_pkts()
535 sa = &(sa_ctx->sa[sa_idx]); in ipsec_ev_route_pkts()