[dpdk-dev] [PATCH] examples/ipsec-secgw: add offload error handling

michaelsh at marvell.com michaelsh at marvell.com
Tue Aug 20 18:22:08 CEST 2019


From: Michael Shamis <michaelsh at marvell.com>

Added error handler for offload mode.

Signed-off-by: Michael Shamis <michaelsh at marvell.com>
---
 examples/ipsec-secgw/ipsec.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c
index dc85adfe5..583c91658 100644
--- a/examples/ipsec-secgw/ipsec.c
+++ b/examples/ipsec-secgw/ipsec.c
@@ -566,6 +566,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;
 		}
-- 
2.23.0



More information about the dev mailing list