]> git.droids-corp.org - dpdk.git/commitdiff
examples/ipsec-secgw: fix packet type parsing
authorRadu Nicolau <radu.nicolau@intel.com>
Fri, 10 Jun 2022 10:45:54 +0000 (11:45 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 21 Jun 2022 18:04:49 +0000 (20:04 +0200)
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>
examples/ipsec-secgw/ipsec-secgw.c

index 146222a1ec5d0e90e6631c2f789e91ad80ae6096..4d8a4a71b8b4993fdcd142ace0c3734b8f303b98 100644 (file)
@@ -1808,7 +1808,7 @@ parse_ptype(struct rte_mbuf *m)
                break;
        }
 exit:
-       m->packet_type = packet_type;
+       m->packet_type |= packet_type;
 }
 
 static uint16_t