examples/ipsec-secgw: fix packet type parsing
Checks
Commit Message
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(-)
Comments
> -----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>
> > 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.
@@ -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