]> asedeno.scripts.mit.edu Git - linux.git/commit
net/mlx5e: restrict the real_dev of vlan device is the same as uplink device
authorwenxu <wenxu@ucloud.cn>
Wed, 15 May 2019 09:25:45 +0000 (17:25 +0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 29 May 2019 01:25:42 +0000 (18:25 -0700)
commit24bcd210e272c1e5fc712fbc5e5c21f59a21abf7
tree1c68aed2c52a7eaa34353984f8f6a9993f5fefdb
parent25fa506b70cadb580c1e9cbd836d6417276d4bcd
net/mlx5e: restrict the real_dev of vlan device is the same as uplink device

When register indr block for vlan device, it should check the real_dev
of vlan device is same as uplink device. Or it will set offload rule
to mlx5e which will never hit.

Fixes: 35a605db168c ("net/mlx5e: Offload TC e-switch rules with ingress VLAN device")
Signed-off-by: wenxu <wenxu@ucloud.cn>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c