]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Protect against non-uplink representor for encap
authorDmytro Linkin <dmitrolin@mellanox.com>
Fri, 29 Mar 2019 12:50:37 +0000 (12:50 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 9 Apr 2019 19:33:51 +0000 (12:33 -0700)
commit62a37274d0cc4768e331b0341a483c120398fa98
tree230e7a926cc6b7241f2dc963d6d228dcb7206cfa
parent43db17c39cfd001a7f5be4b3ebb6ed064c884aee
net/mlx5e: Protect against non-uplink representor for encap

TC encap offload is supported only for the physical uplink
representor. Fail for non uplink representor.

Fixes: 76b1afdd4274 ("net/mlx5e: Support TC encapsulation offloads with upper devices")
Signed-off-by: Dmytro Linkin <dmitrolin@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Vlad Buslov <vladbu@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