DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/ipsec-secgw: add offload error handling
@ 2019-08-20 16:22 michaelsh
  0 siblings, 0 replies; 4+ messages in thread
From: michaelsh @ 2019-08-20 16:22 UTC (permalink / raw)
  To: radu.nicolau; +Cc: dev, lironh, michaelsh

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: add offload error handling
  2019-08-26  6:39 ` Akhil Goyal
@ 2019-09-19 15:06   ` Akhil Goyal
  0 siblings, 0 replies; 4+ messages in thread
From: Akhil Goyal @ 2019-09-19 15:06 UTC (permalink / raw)
  To: michaelsh, radu.nicolau; +Cc: dev, lironh

> >
> > From: Michael Shamis <michaelsh@marvell.com>
> >
> > Added error handler for offload mode.
> >
> > Signed-off-by: Michael Shamis <michaelsh@marvell.com>
> > ---
> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>

Applied to dpdk-next-crypto

Thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: add offload error handling
  2019-08-25 11:04 michaelsh
@ 2019-08-26  6:39 ` Akhil Goyal
  2019-09-19 15:06   ` Akhil Goyal
  0 siblings, 1 reply; 4+ messages in thread
From: Akhil Goyal @ 2019-08-26  6:39 UTC (permalink / raw)
  To: michaelsh, radu.nicolau; +Cc: dev, lironh

> 
> 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

Acked-by: Akhil Goyal <akhil.goyal@nxp.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [dpdk-dev] [PATCH] examples/ipsec-secgw: add offload error handling
@ 2019-08-25 11:04 michaelsh
  2019-08-26  6:39 ` Akhil Goyal
  0 siblings, 1 reply; 4+ messages in thread
From: michaelsh @ 2019-08-25 11:04 UTC (permalink / raw)
  To: radu.nicolau; +Cc: akhil.goyal, dev, lironh, michaelsh

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-19 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20 16:22 [dpdk-dev] [PATCH] examples/ipsec-secgw: add offload error handling michaelsh
2019-08-25 11:04 michaelsh
2019-08-26  6:39 ` Akhil Goyal
2019-09-19 15:06   ` Akhil Goyal

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).