]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove warning "devices are not on same switch HW"
authorMaor Dickman <maord@mellanox.com>
Sun, 24 May 2020 06:45:44 +0000 (09:45 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 May 2020 20:07:53 +0000 (13:07 -0700)
commit5f1d76ef4b0966a083aa0197b97fdd1a6ef20fa0
tree7a2de0e48e688c31e1fde564f00d2b22f3ac61db
parente07784083e781019fcb22c1cde2d1c42c1a65c02
net/mlx5e: Remove warning "devices are not on same switch HW"

On tunnel decap rule insertion, the indirect mechanism will attempt to
offload the rule on all uplink representors which will trigger the
"devices are not on same switch HW, can't offload forwarding" message
for the uplink which isn't on the same switch HW as the VF representor.

The above flow is valid and shouldn't cause warning message,
fix by removing the warning and only report this flow using extack.

Fixes: 3b1d3a8e37fe ("net/mlx5e: Fix allowed tc redirect merged eswitch offload cases")
Signed-off-by: Maor Dickman <maord@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.c