]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TC, fix decap fallback to uplink when int port not supported
authorAriel Levkovich <lariel@nvidia.com>
Mon, 25 Apr 2022 14:12:12 +0000 (17:12 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 4 May 2022 07:00:05 +0000 (00:00 -0700)
commit4af2ca89779ffc42bcacf3ffcbf0ecafda1757a8
tree49e75f71b2501b4f88d974e8b0444d7e7c607dd1
parent3d4740d8b4fe0c53c3b3a2d8cbb5b4b19abcf0c9
net/mlx5e: TC, fix decap fallback to uplink when int port not supported

When resolving the decap route device for a tunnel decap rule,
the result may be an OVS internal port device.

Prior to adding the support for internal port offload, such case
would result in using the uplink as the default decap route device
which allowed devices that can't support internal port offload
to offload this decap rule.

This behavior got broken by adding the internal port offload which
will fail in case the device can't support internal port offload.

To restore the old behavior, use the uplink device as the decap
route as before when internal port offload is not supported.

Fixes: e94cae3b4c31 ("net/mlx5: Support internal port as decap route device")
Signed-off-by: Ariel Levkovich <lariel@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c