[PATCH] examples/ipsec-secgw: fix packet type parsing
Zhang, Roy Fan
roy.fan.zhang at intel.com
Tue Jun 14 17:47:58 CEST 2022
> -----Original Message-----
> From: Radu Nicolau <radu.nicolau at intel.com>
> Sent: Friday, June 10, 2022 11:46 AM
> To: Nicolau, Radu <radu.nicolau at intel.com>; Akhil Goyal <gakhil at marvell.com>
> Cc: dev at dpdk.org; Buckley, Daniel M <daniel.m.buckley at 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 at 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 at intel.com>
More information about the dev
mailing list