Home
last modified time | relevance | path

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

/f-stack/dpdk/examples/ipsec-secgw/
H A Dsa.c914 struct sa_ctx *sa_ctx; in sa_create() local
933 sa_ctx = rte_zmalloc(NULL, sizeof(struct sa_ctx) + in sa_create()
946 return sa_ctx; in sa_create()
1072 sa_add_rules(struct sa_ctx *sa_ctx, const struct ipsec_sa entries[], in sa_add_rules() argument
1208 sa_ctx->xf[idx].a.next = &sa_ctx->xf[idx].b; in sa_add_rules()
1238 sa_out_add_rules(struct sa_ctx *sa_ctx, const struct ipsec_sa entries[], in sa_out_add_rules() argument
1245 sa_in_add_rules(struct sa_ctx *sa_ctx, const struct ipsec_sa entries[], in sa_in_add_rules() argument
1441 sa_spi_present(struct sa_ctx *sa_ctx, uint32_t spi, int inbound) in sa_spi_present() argument
1448 sar = sa_ctx->sa; in sa_spi_present()
1543 inbound_sa_lookup(struct sa_ctx *sa_ctx, struct rte_mbuf *pkts[], in inbound_sa_lookup() argument
[all …]
H A Dipsec.h167 struct sa_ctx { struct
215 struct sa_ctx *sa_ctx; member
235 struct sa_ctx *sa_in;
236 struct sa_ctx *sa_out;
347 inbound_sa_check(struct sa_ctx *sa_ctx, struct rte_mbuf *m, uint32_t sa_idx);
350 inbound_sa_lookup(struct sa_ctx *sa_ctx, struct rte_mbuf *pkts[],
354 outbound_sa_lookup(struct sa_ctx *sa_ctx, uint32_t sa_idx[],
381 sa_spi_present(struct sa_ctx *sa_ctx, uint32_t spi, int inbound);
H A Dipsec_worker.c62 prepare_out_sessions_tbl(struct sa_ctx *sa_out, in prepare_out_sessions_tbl()
249 if (sa_idx >= ctx->sa_ctx->nb_sa) in process_ipsec_ev_inbound()
259 if (unlikely(sa->spi != ctx->sa_ctx->sa[sa_idx].spi)) in process_ipsec_ev_inbound()
289 struct sa_ctx *sa_ctx; in process_ipsec_ev_outbound() local
339 if (sa_idx >= ctx->sa_ctx->nb_sa) in process_ipsec_ev_outbound()
345 sa_ctx = ctx->sa_ctx; in process_ipsec_ev_outbound()
348 sa = &(sa_ctx->sa[sa_idx]); in process_ipsec_ev_outbound()
525 lconf.inbound.sa_ctx = socket_ctx[socket_id].sa_in; in ipsec_wrkr_non_burst_int_port_app_mode()
531 lconf.outbound.sa_ctx = socket_ctx[socket_id].sa_out; in ipsec_wrkr_non_burst_int_port_app_mode()
H A Dipsec-secgw.c724 inbound_sa_lookup(ipsec_ctx->sa_ctx, traffic->ipsec.pkts, in process_pkts_inbound()
799 outbound_sa_lookup(ipsec_ctx->sa_ctx, traffic->ipsec.res, in process_pkts_outbound()
839 inbound_sa_lookup(ipsec_ctx->sa_ctx, traffic->ipsec.pkts, in process_pkts_inbound_nosp()
1110 inbound_sp_sa(ctx->sp4_ctx, ctx->sa_ctx, &trf.ip4, 0); in drain_inbound_crypto_queues()
1116 inbound_sp_sa(ctx->sp6_ctx, ctx->sa_ctx, &trf.ip6, 0); in drain_inbound_crypto_queues()
1177 qconf->inbound.sa_ctx = socket_ctx[socket_id].sa_in; in ipsec_poll_mode_worker()
1184 qconf->outbound.sa_ctx = socket_ctx[socket_id].sa_out; in ipsec_poll_mode_worker()
2748 inline_sessions_free(struct sa_ctx *sa_ctx) in inline_sessions_free() argument
2755 if (!sa_ctx) in inline_sessions_free()
2758 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.c720 inbound_sa_lookup(ctx->sa_ctx, pkts, sas, nb_pkts); in ipsec_inbound()
740 outbound_sa_lookup(ctx->sa_ctx, sa_idx, sas, nb_pkts); in ipsec_outbound()