[dpdk-dev] [PATCH] examples/ipsec-secgw: fix rte flow egress
Boris Pismenny
borisp at mellanox.com
Sun Sep 17 14:16:33 CEST 2017
This patch ensures that the egress flag is set for outbound inline
flows.
Signed-off-by: Boris Pismenny <borisp at mellanox.com>
---
examples/ipsec-secgw/ipsec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c
index 3d241a2..b3694a5 100644
--- a/examples/ipsec-secgw/ipsec.c
+++ b/examples/ipsec-secgw/ipsec.c
@@ -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) {
--
1.8.3.1
More information about the dev
mailing list