> -----Original Message-----
> From: Radu Nicolau <radu.nico...@intel.com>
> Sent: Friday, June 10, 2022 11:46 AM
> To: Nicolau, Radu <radu.nico...@intel.com>; Akhil Goyal <gak...@marvell.com>
> Cc: dev@dpdk.org; Buckley, Daniel M <daniel.m.buck...@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.nico...@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.zh...@intel.com>