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)
commit5e0060b1491b299b1706414e61ede0b02265680e
tree230e7a926cc6b7241f2dc963d6d228dcb7206cfa
parent0318a7b7fcad9765931146efa7ca3a034194737c
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: 3e621b19b0bb ("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