]> 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)
commit47aec57a07a629a757e5478e4963cb21fe92b68f
tree49e75f71b2501b4f88d974e8b0444d7e7c607dd1
parent859e5948c9bf9c0abcc4fcafbd8f3f4e17ea4028
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: 9333d1c4f520 ("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