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