* [PATCH] examples/ipsec-secgw: fix packet type parsing
@ 2022-06-10 10:45 Radu Nicolau
2022-06-14 15:47 ` Zhang, Roy Fan
0 siblings, 1 reply; 3+ messages in thread
From: Radu Nicolau @ 2022-06-10 10:45 UTC (permalink / raw)
To: Radu Nicolau, Akhil Goyal; +Cc: dev, daniel.m.buckley
Add new packet type flags instead of overwriting.
Fixes: d04bb1c52647 ("examples/ipsec-secgw: use HW parsed packet type in poll mode")
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
examples/ipsec-secgw/ipsec-secgw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index 25255e053c..2391be8081 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -1795,7 +1795,7 @@ parse_ptype(struct rte_mbuf *m)
break;
}
exit:
- m->packet_type = packet_type;
+ m->packet_type |= packet_type;
}
static uint16_t
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] examples/ipsec-secgw: fix packet type parsing
2022-06-10 10:45 [PATCH] examples/ipsec-secgw: fix packet type parsing Radu Nicolau
@ 2022-06-14 15:47 ` Zhang, Roy Fan
2022-06-15 15:17 ` Akhil Goyal
0 siblings, 1 reply; 3+ messages in thread
From: Zhang, Roy Fan @ 2022-06-14 15:47 UTC (permalink / raw)
To: Nicolau, Radu, Nicolau, Radu, Akhil Goyal; +Cc: dev, Buckley, Daniel M
> -----Original Message-----
> From: Radu Nicolau <radu.nicolau@intel.com>
> Sent: Friday, June 10, 2022 11:46 AM
> To: Nicolau, Radu <radu.nicolau@intel.com>; Akhil Goyal <gakhil@marvell.com>
> Cc: dev@dpdk.org; Buckley, Daniel M <daniel.m.buckley@intel.com>
> Subject: [PATCH] examples/ipsec-secgw: fix packet type parsing
>
> Add new packet type flags instead of overwriting.
>
> Fixes: d04bb1c52647 ("examples/ipsec-secgw: use HW parsed packet type in
> poll mode")
>
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
> ---
> examples/ipsec-secgw/ipsec-secgw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-
> secgw.c
> index 25255e053c..2391be8081 100644
> --- a/examples/ipsec-secgw/ipsec-secgw.c
> +++ b/examples/ipsec-secgw/ipsec-secgw.c
> @@ -1795,7 +1795,7 @@ parse_ptype(struct rte_mbuf *m)
> break;
> }
> exit:
> - m->packet_type = packet_type;
> + m->packet_type |= packet_type;
> }
>
> static uint16_t
> --
> 2.25.1
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] examples/ipsec-secgw: fix packet type parsing
2022-06-14 15:47 ` Zhang, Roy Fan
@ 2022-06-15 15:17 ` Akhil Goyal
0 siblings, 0 replies; 3+ messages in thread
From: Akhil Goyal @ 2022-06-15 15:17 UTC (permalink / raw)
To: Zhang, Roy Fan, Nicolau, Radu, Nicolau, Radu; +Cc: dev, Buckley, Daniel M
> > Add new packet type flags instead of overwriting.
> >
> > Fixes: d04bb1c52647 ("examples/ipsec-secgw: use HW parsed packet type in
> > poll mode")
> >
> > Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
> Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
Applied to dpdk-next-crypto
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-15 15:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10 10:45 [PATCH] examples/ipsec-secgw: fix packet type parsing Radu Nicolau
2022-06-14 15:47 ` Zhang, Roy Fan
2022-06-15 15:17 ` 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).