net/mlx5: fix setting of port ID for egress rules
authorDekel Peled <dekelp@mellanox.com>
Wed, 22 Jan 2020 12:33:06 +0000 (14:33 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:20 +0000 (09:51 +0100)
commit813f9bfa12c93737472f0eefe0e1a7d30502e532
tree6fd4c00adbafcc3ea79c5f87112dcb3a4753343f
parent27767e217f8a7a9333967ddf5f98abe7943393aa
net/mlx5: fix setting of port ID for egress rules

Previous patch fixed the setting of port-id for eswitch rules, which
are ingress only.
This patch expands the fix, to support NIC rules as well, which can
be ingress or egress.

Fixes: ce777b147bf8 ("net/mlx5: fix E-Switch flow without port item")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c