From: Michael Shamis Date: Sun, 25 Aug 2019 11:04:48 +0000 (+0300) Subject: examples/ipsec-secgw: add offload error handling X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=74ac75589dc3b26c63f735a8db559dd5ff20ef4f;p=dpdk.git examples/ipsec-secgw: add offload error handling Added error handler for offload mode. Signed-off-by: Michael Shamis Acked-by: Akhil Goyal --- diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c index 5f9d560dd9..d5565a6fa9 100644 --- a/examples/ipsec-secgw/ipsec.c +++ b/examples/ipsec-secgw/ipsec.c @@ -573,6 +573,12 @@ ipsec_dequeue(ipsec_xform_fn xform_func, struct ipsec_ctx *ipsec_ctx, rte_pktmbuf_free(pkt); continue; } + } else if (sa->type == + RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL) { + if (cops[j]->status) { + rte_pktmbuf_free(pkt); + continue; + } } pkts[nb_pkts++] = pkt; }