examples/ipsec-secgw: fix access to freed packet
PATCH 1/1 examples/ipsec-secgw: fix access to freed packet
For unknown/unsupported packets, the packet would get checked for inline offloads after the packet is freed.
Fixes 0ccfd14bc10d ("examples/ipsec-secgw: support inline protocol")
Signed-off-by Anoob Joseph <[email protected]>
--- examples/ipsec-secgw/ipsec-secgw.c | 1 + 1 file changed, 1 insertion(+)
examples/ipsec-secgw/ipsec-secgw.c +1 -0
@@ -353,6 +353,7 @@ prepare_one_packet(struct rte_mbuf *pkt, struct ipsec_traffic *t)RTE_LOG (ERR ,IPSEC ,"Unsupported packet type 0x%x\n" ,rte_be_to_cpu_16 (eth->ether_type));rte_pktmbuf_free (pkt); +return ; }/* Check if the packet has been processed inline. For inline protocol
Signature · 1 line
2.7.4
Quoted 9 lines
For unknown/unsupported packets, the packet would get checked for inline offloads after the packet is freed.
Fixes 0ccfd14bc10d ("examples/ipsec-secgw: support inline protocol")Signed-off-by Anoob Joseph <[email protected]>---
Acked-by Akhil Goyal <[email protected]>
Akhil Goyal
AppliedQuoted 4 lines
Quoted 4 lines
For unknown/unsupported packets, the packet would get checked for
Quoted 8 lines
inline
Quoted 6 lines
offloads after the packet is freed.
Fixes 0ccfd14bc10d ("examples/ipsec-secgw: support inline protocol")Signed-off-by Anoob Joseph <[email protected]>---
Acked-by Akhil Goyal <[email protected]>
Applied to dpdk-next-crypto
Thanks.