DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  [PATCH] examples/ipsec-secgw: fix rte flow egress
@ 2017-09-17 12:16 Boris Pismenny
  2017-10-10 11:18 ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 2+ messages in thread
From: Boris Pismenny @ 2017-09-17 12:16 UTC (permalink / raw)
  To: dev
  Cc: akhil.goyal, declan.doherty, pablo.de.lara.guarch,
	hemant.agrawal, radu.nicolau, borisp, aviadye, thomas,
	sandeep.malik, jerin.jacob

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

Signed-off-by: Boris Pismenny <borisp@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-10 11:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-17 12:16 [dpdk-dev] [PATCH] examples/ipsec-secgw: fix rte flow egress Boris Pismenny
2017-10-10 11:18 ` De Lara Guarch, Pablo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).