]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9307217f5d59e84a98c1af4a1cdfbe53691b9e17
treeaf72661dfeb9721b8975ba1804c9c7a8fef8a697
parentf6edb7753b8e504bed0722c21559903df30799c6
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