MCPcopy Create free account
hub / github.com/F-Stack/f-stack / drain_crypto_buffers

Function drain_crypto_buffers

dpdk/examples/ipsec-secgw/ipsec-secgw.c:601–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601static inline void
602drain_crypto_buffers(struct lcore_conf *qconf)
603{
604 uint32_t i;
605 struct ipsec_ctx *ctx;
606
607 /* drain inbound buffers*/
608 ctx = &qconf->inbound;
609 for (i = 0; i != ctx->nb_qps; i++) {
610 if (ctx->tbl[i].len != 0)
611 enqueue_cop_burst(ctx->tbl + i);
612 }
613
614 /* drain outbound buffers*/
615 ctx = &qconf->outbound;
616 for (i = 0; i != ctx->nb_qps; i++) {
617 if (ctx->tbl[i].len != 0)
618 enqueue_cop_burst(ctx->tbl + i);
619 }
620}
621
622static void
623drain_inbound_crypto_queues(const struct lcore_conf *qconf,

Callers 1

ipsec_poll_mode_workerFunction · 0.85

Calls 1

enqueue_cop_burstFunction · 0.85

Tested by

no test coverage detected