]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net/mlx5e: Fix outdated comment in features check
authorGal Pressman <gal@nvidia.com>
Thu, 13 Jun 2024 21:00:34 +0000 (00:00 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 15 Jun 2024 01:53:24 +0000 (18:53 -0700)
The code no longer treats only UDP tunnels, adjust the outdated comment.

Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://lore.kernel.org/r/20240613210036.1125203-5-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c

index 10492349ff260b77d38db99e1a2c68fbb0886f40..db4819f1154143381f23fd1c36cfc09db1b08145 100644 (file)
@@ -4910,7 +4910,7 @@ static netdev_features_t mlx5e_tunnel_features_check(struct mlx5e_priv *priv,
        }
 
 out:
-       /* Disable CSUM and GSO if the udp dport is not offloaded by HW */
+       /* Disable CSUM and GSO if skb cannot be offloaded by HW */
        return features & ~(NETIF_F_CSUM_MASK | NETIF_F_GSO_MASK);
 }