Skip to contentSkip to conversation

examples/ipsec-secgw: accept inline proto pkts in single sa

PATCH Superseded Nithin Dabilpuram 3 participants 5 messages Oct 6, 2021 – Oct 16, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/ipsec-secgw: accept inline proto pkts in single sa

In inline protocol SA's, plain ipv4 and ipv6 packets are delivered to application unlike inline crypto or lookaside. Hence fix the application to not drop them when working in single SA mode.

---
 examples/ipsec-secgw/ipsec-secgw.c | 10 ----------
 1 file changed, 10 deletions(-)
examples/ipsec-secgw/ipsec-secgw.c +0 -10
index 7ad94cb..96fbae2 100644
@@ -848,16 +848,6 @@ process_pkts_inbound_nosp(struct ipsec_ctx *ipsec_ctx,
 	struct rte_mbuf *m;
 	uint32_t nb_pkts_in, i, idx;
 
-	/* Drop any IPv4 traffic from unprotected ports */
-	free_pkts(traffic->ip4.pkts, traffic->ip4.num);
-
-	traffic->ip4.num = 0;
-
-	/* Drop any IPv6 traffic from unprotected ports */
-	free_pkts(traffic->ip6.pkts, traffic->ip6.num);
-
-	traffic->ip6.num = 0;
-
 	if (app_sa_prm.enable == 0) {
 
 		nb_pkts_in = ipsec_inbound(ipsec_ctx, traffic->ipsec.pkts,
Signature · 1 line
2.8.4
#1 lore raw

PATCH v2 1/1 examples/ipsec-secgw: accept inline proto pkts in single sa

In inline protocol inbound SA's, plain ipv4 and ipv6 packets are delivered to application unlike inline crypto or lookaside. Hence fix the application to not drop them when working in single SA mode.

---

v2:
- Fixed commit message.

 examples/ipsec-secgw/ipsec-secgw.c | 10 ----------
 1 file changed, 10 deletions(-)
examples/ipsec-secgw/ipsec-secgw.c +0 -10
index 7ad94cb..96fbae2 100644
@@ -848,16 +848,6 @@ process_pkts_inbound_nosp(struct ipsec_ctx *ipsec_ctx,
 	struct rte_mbuf *m;
 	uint32_t nb_pkts_in, i, idx;
 
-	/* Drop any IPv4 traffic from unprotected ports */
-	free_pkts(traffic->ip4.pkts, traffic->ip4.num);
-
-	traffic->ip4.num = 0;
-
-	/* Drop any IPv6 traffic from unprotected ports */
-	free_pkts(traffic->ip6.pkts, traffic->ip6.num);
-
-	traffic->ip6.num = 0;
-
 	if (app_sa_prm.enable == 0) {
 
 		nb_pkts_in = ipsec_inbound(ipsec_ctx, traffic->ipsec.pkts,
Signature · 1 line
2.8.4
Acked-by on v2 1/1
#2 lore raw
Quoted 11 lines

Subject: [PATCH v2] examples/ipsec-secgw: accept inline proto pkts in single sa

In inline protocol inbound SA's, plain ipv4 and ipv6 packets are delivered to application unlike inline crypto or lookaside. Hence fix the application to not drop them when working in single SA mode.

---

@Konstantin/Bernard: Any objections?

#3 lore raw
Quoted 10 lines
Quoted 10 lines

Subject: [PATCH v2] examples/ipsec-secgw: accept inline proto pkts in single sa

In inline protocol inbound SA's, plain ipv4 and ipv6 packets are delivered to application unlike inline crypto or lookaside. Hence fix the application to not drop them when working in single SA mode.

Quoted 6 lines
Quoted 3 lines

---

@Konstantin/Bernard: Any objections?

None from me.

Applied
#4 lore raw
Quoted 10 lines
Quoted 2 lines
Quoted 2 lines

Subject: [PATCH v2] examples/ipsec-secgw: accept inline proto pkts in

single

Quoted 7 lines
Quoted 7 lines

sa

In inline protocol inbound SA's, plain ipv4 and ipv6 packets are delivered to application unlike inline crypto or lookaside. Hence fix the application to not drop them when working in single SA mode.

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

---

@Konstantin/Bernard: Any objections?

None from me.

Applied to dpdk-next-crypto