[dpdk-dev] examples/ipsec-secgw: fix rte flow egress
Checks
Commit Message
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(+)
Comments
> -----Original Message-----
> From: Boris Pismenny [mailto:borisp@mellanox.com]
> Sent: Sunday, September 17, 2017 1:17 PM
> To: dev@dpdk.org
> Cc: akhil.goyal@nxp.com; Doherty, Declan <declan.doherty@intel.com>; De
> Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>;
> hemant.agrawal@nxp.com; Nicolau, Radu <radu.nicolau@intel.com>;
> borisp@mellanox.com; aviadye@mellanox.com; thomas@monjalon.net;
> sandeep.malik@nxp.com; jerin.jacob@caviumnetworks.com
> Subject: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix rte flow egress
>
> This patch ensures that the egress flag is set for outbound inline flows.
>
> Signed-off-by: Boris Pismenny <borisp@mellanox.com>
> ---
This patch can be rejected, as it is part of the rte_security patchset.
Pablo
@@ -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) {