From: <michaelsh@marvell.com>
To: <radu.nicolau@intel.com>
Cc: <dev@dpdk.org>, <lironh@marvell.com>, <michaelsh@marvell.com>
Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: add offload error handling
Date: Tue, 20 Aug 2019 19:22:08 +0300 [thread overview]
Message-ID: <20190820162208.12769-1-michaelsh@marvell.com> (raw)
From: Michael Shamis <michaelsh@marvell.com>
Added error handler for offload mode.
Signed-off-by: Michael Shamis <michaelsh@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
next reply other threads:[~2019-08-20 16:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-20 16:22 michaelsh [this message]
2019-08-25 11:04 michaelsh
2019-08-26 6:39 ` Akhil Goyal
2019-09-19 15:06 ` Akhil Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190820162208.12769-1-michaelsh@marvell.com \
--to=michaelsh@marvell.com \
--cc=dev@dpdk.org \
--cc=lironh@marvell.com \
--cc=radu.nicolau@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).