Skip to contentSkip to conversation

examples/ipsec-secgw: fix rte flow egress

PATCH In review Boris Pismenny 2 participants 2 messages Sep 17, 2017 – Oct 10, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/ipsec-secgw: fix rte flow egress

This patch ensures that the egress flag is set for outbound inline flows.

---
 examples/ipsec-secgw/ipsec.c | 3 +++
 1 file changed, 3 insertions(+)
examples/ipsec-secgw/ipsec.c +3 -0
index 3d241a2..b3694a5 100644
@@ -171,6 +171,9 @@
 
 			sa->action[1].type = RTE_FLOW_ACTION_TYPE_END;
 
+			sa->attr.egress =
+				(sa->direction ==
+				 RTE_SECURITY_IPSEC_SA_DIR_EGRESS);
 			sa->flow = rte_flow_create(sa->portid,
 				&sa->attr, sa->pattern, sa->action, &err);
 			if (sa->flow == NULL) {
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 13 lines

-----Original Message-----
From: Boris Pismenny [mailto:[email protected]]
Sent: Sunday, September 17, 2017 1:17 PM
To: [email protected]
Cc: [email protected]; Doherty, Declan <[email protected]>; De Lara Guarch, Pablo <[email protected]>; [email protected]; Nicolau, Radu <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix rte flow egress

Quoted 4 lines

This patch ensures that the egress flag is set for outbound inline flows.

---

This patch can be rejected, as it is part of the rte_security patchset.

Pablo