Home
last modified time | relevance | path

Searched refs:sa_ctx (Results 1 – 7 of 7) sorted by relevance

/dpdk/examples/ipsec-secgw/
H A Dsa.c1055 struct sa_ctx *sa_ctx; in sa_create() local
1074 sa_ctx = rte_zmalloc(NULL, sizeof(struct sa_ctx) + in sa_create()
1087 return sa_ctx; in sa_create()
1219 sa_add_rules(struct sa_ctx *sa_ctx, const struct ipsec_sa entries[], in sa_add_rules() argument
1372 &sa_ctx->xf[idx].a : &sa_ctx->xf[idx].b; in sa_add_rules()
1376 sa_ctx->xf[idx].a.next = &sa_ctx->xf[idx].b; in sa_add_rules()
1414 sa_in_add_rules(struct sa_ctx *sa_ctx, const struct ipsec_sa entries[], in sa_in_add_rules() argument
1614 sa_spi_present(struct sa_ctx *sa_ctx, uint32_t spi, int inbound) in sa_spi_present() argument
1621 sar = sa_ctx->sa; in sa_spi_present()
1716 inbound_sa_lookup(struct sa_ctx *sa_ctx, struct rte_mbuf *pkts[], in inbound_sa_lookup() argument
[all …]
H A Dipsec.h175 struct sa_ctx { struct
223 struct sa_ctx *sa_ctx; member
243 struct sa_ctx *sa_in;
244 struct sa_ctx *sa_out;
355 inbound_sa_check(struct sa_ctx *sa_ctx, struct rte_mbuf *m, uint32_t sa_idx);
358 inbound_sa_lookup(struct sa_ctx *sa_ctx, struct rte_mbuf *pkts[],
362 outbound_sa_lookup(struct sa_ctx *sa_ctx, uint32_t sa_idx[],
389 sa_spi_present(struct sa_ctx *sa_ctx, uint32_t spi, int inbound);
H A Dipsec_worker.c89 prepare_out_sessions_tbl(struct sa_ctx *sa_out, in prepare_out_sessions_tbl()
185 check_sp_sa_bulk(struct sp_ctx *sp, struct sa_ctx *sa_ctx, in check_sp_sa_bulk() argument
214 if (unlikely(sa->spi != sa_ctx->sa[res - 1].spi)) { in check_sp_sa_bulk()
349 if (sa_idx >= ctx->sa_ctx->nb_sa) in process_ipsec_ev_inbound()
389 struct sa_ctx *sa_ctx; in process_ipsec_ev_outbound() local
439 if (unlikely(sa_idx >= ctx->sa_ctx->nb_sa)) in process_ipsec_ev_outbound()
445 sa_ctx = ctx->sa_ctx; in process_ipsec_ev_outbound()
448 sa = &(sa_ctx->sa[sa_idx]); in process_ipsec_ev_outbound()
488 struct ipsec_traffic *t, struct sa_ctx *sa_ctx) in ipsec_ev_route_pkts() argument
531 if (unlikely(sa_idx >= sa_ctx->nb_sa)) in ipsec_ev_route_pkts()
[all …]
H A Dipsec-secgw.c787 inbound_sa_lookup(ipsec_ctx->sa_ctx, traffic->ipsec.pkts, in process_pkts_inbound()
793 ipsec_ctx->sa_ctx, &traffic->ip4, n_ip4, in process_pkts_inbound()
797 ipsec_ctx->sa_ctx, &traffic->ip6, n_ip6, in process_pkts_inbound()
1183 inbound_sp_sa(ctx->sp4_ctx, ctx->sa_ctx, &trf.ip4, 0, in drain_inbound_crypto_queues()
1190 inbound_sp_sa(ctx->sp6_ctx, ctx->sa_ctx, &trf.ip6, 0, in drain_inbound_crypto_queues()
1252 qconf->inbound.sa_ctx = socket_ctx[socket_id].sa_in; in ipsec_poll_mode_worker()
1259 qconf->outbound.sa_ctx = socket_ctx[socket_id].sa_out; in ipsec_poll_mode_worker()
2900 inline_sessions_free(struct sa_ctx *sa_ctx) in inline_sessions_free() argument
2907 if (!sa_ctx) in inline_sessions_free()
2910 for (i = 0; i < sa_ctx->nb_sa; i++) { in inline_sessions_free()
[all …]
H A Dsp4.c522 check_spi_value(struct sa_ctx *sa_ctx, int inbound) in check_spi_value() argument
539 spi_idx = sa_spi_present(sa_ctx, spi, inbound); in check_spi_value()
H A Dsp6.c653 check_spi_value(struct sa_ctx *sa_ctx, int inbound) in check_spi_value() argument
670 spi_idx = sa_spi_present(sa_ctx, spi, inbound); in check_spi_value()
H A Dipsec.c800 inbound_sa_lookup(ctx->sa_ctx, pkts, sas, nb_pkts); in ipsec_inbound()
820 outbound_sa_lookup(ctx->sa_ctx, sa_idx, sas, nb_pkts); in ipsec_outbound()