net/mlx5e: Support tagged tunnel over bond
authorEli Britstein <elibr@mellanox.com>
Sun, 2 Jun 2019 13:47:59 +0000 (13:47 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 7 Jun 2019 21:40:37 +0000 (14:40 -0700)
commit45e7d4c0c1727d362012a62eb57254ea71a2d591
tree1e2748d388f29bbb12e1865a427ef85b3df5fca6
parent47c9d2c99ddeecca61c97618857b70fc7901658b
net/mlx5e: Support tagged tunnel over bond

Stacked devices like bond interface may have a VLAN device on top of
them. Detect lag state correctly under this condition, and return the
correct routed net device, according to it the encap header is built.

Fixes: e32ee6c78efa ("net/mlx5e: Support tunnel encap over tagged Ethernet")
Signed-off-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c