DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] examples/ipsec-secgw: fix packet type parsing
@ 2022-06-10 10:45 Radu Nicolau
  2022-06-14 15:47 ` Zhang, Roy Fan
  0 siblings, 1 reply; 3+ messages in thread
From: Radu Nicolau @ 2022-06-10 10:45 UTC (permalink / raw)
  To: Radu Nicolau, Akhil Goyal; +Cc: dev, daniel.m.buckley

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>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-15 15:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-10 10:45 [PATCH] examples/ipsec-secgw: fix packet type parsing Radu Nicolau
2022-06-14 15:47 ` Zhang, Roy Fan
2022-06-15 15:17   ` Akhil Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).