[PATCH] examples/ipsec-secgw: fix packet type parsing

Radu Nicolau radu.nicolau at intel.com
Fri Jun 10 12:45:54 CEST 2022


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



More information about the dev mailing list