net/mlx5e: Support adding ingress tc rule when egress device flag is set
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 1 Dec 2016 12:06:40 +0000 (14:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 18:28:38 +0000 (13:28 -0500)
commitebe06875ff1f3d5257c4da7bc74a87ee9e0ce491
treeaf72661dfeb9721b8975ba1804c9c7a8fef8a697
parent726293f1f851242c1c308e71ef9dfd0c2251f94a
net/mlx5e: Support adding ingress tc rule when egress device flag is set

When ndo_setup_tc is called with an egress_dev flag set, it means that
the ndo call was executed on the mirred action (egress) device and not
on the ingress device.

In order to support this kind of ndo_setup_tc call, and insert the
correct decap rule to the hardware, the uplink device on the same eswitch
should be found.

Currently, we use this resolution between the mirred device and the
uplink on the same eswitch to offload vxlan shared device decap rules.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c