]> git.itanic.dy.fi Git - linux-stable/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)
commite3fdc71bcb6ffe1d4870a89252ba296a9558e294
tree49e75f71b2501b4f88d974e8b0444d7e7c607dd1
parent087032ee7021a22e4c7557c0ed16bfd792c3f6fe
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: b16eb3c81fe2 ("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