]> 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)
commitab2b350f362e427a076ea652e470b83d457aaced
tree7a2de0e48e688c31e1fde564f00d2b22f3ac61db
parent26caf5aca6ebfd04dcd76959c4150116b3952e9b
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: d1d8f7a12814 ("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