]> 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)
commit7d86a0cbf6c6f385542242b5ad5fbbd7a37b8f5e
treeaf72661dfeb9721b8975ba1804c9c7a8fef8a697
parentaf3e5b926c9607cf517934688fa6e4eb477ada44
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