diff mbox series

examples/ipsec-secgw: fix handling IPv6 extension headers

Message ID 20210429104757.4601-1-konstantin.ananyev@intel.com (mailing list archive)
State Accepted
Delegated to: akhil goyal
Headers show
Series examples/ipsec-secgw: fix handling IPv6 extension headers | expand

Checks

Context Check Description
ci/intel-Testing success Testing PASS
ci/Intel-compilation success Compilation OK
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/github-robot success github build: passed
ci/checkpatch success coding style OK

Commit Message

Konstantin Ananyev April 29, 2021, 10:47 a.m. UTC
Recent patch to support UDP encapsulation introduced problem with
handling inbound IPv6 packets with header extensions.
This patch aims to fix the issue.

Bugzilla ID: 695
Fixes: 9a1cc8f1ed74 ("examples/ipsec-secgw: support UDP encapsulation")

Reported-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
---
 examples/ipsec-secgw/ipsec-secgw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Akhil Goyal May 5, 2021, 2:54 p.m. UTC | #1
> Recent patch to support UDP encapsulation introduced problem with
> handling inbound IPv6 packets with header extensions.
> This patch aims to fix the issue.
> 
> Bugzilla ID: 695
> Fixes: 9a1cc8f1ed74 ("examples/ipsec-secgw: support UDP encapsulation")
> 
> Reported-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
> Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
> ---
Acked-by: Akhil Goyal <gakhil@marvell.com>

Applied to dpdk-next-crypto

Thanks.
diff mbox series

Patch

diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c
index a9f9b5859..f252d3498 100644
--- a/examples/ipsec-secgw/ipsec-secgw.c
+++ b/examples/ipsec-secgw/ipsec-secgw.c
@@ -426,7 +426,7 @@  prepare_one_packet(struct rte_mbuf *pkt, struct ipsec_traffic *t)
 			return;
 		}
 
-		switch (iph6->proto) {
+		switch (next_proto) {
 		case IPPROTO_ESP:
 			t->ipsec.pkts[(t->ipsec.num)++] = pkt;
 			break;