Skip to content

Commit 9c98f7e

Browse files
marishkinvSaeed Mahameed
authored andcommitted
net/mlx5e: Add missing capability bit check for IP-in-IP
Device that doesn't support IP-in-IP offloads has to filter csum and gso offload support, otherwise kernel will conclude that device is capable of offloading csum and gso for IP-in-IP tunnels and that might result in IP-in-IP tunnel not functioning. Fixes: 25948b8 ("net/mlx5e: Support TSO and TX checksum offloads for IP-in-IP") Signed-off-by: Marina Varshaver <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 2496057 commit 9c98f7e

File tree

1 file changed

+4
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+4
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4252,9 +4252,12 @@ static netdev_features_t mlx5e_tunnel_features_check(struct mlx5e_priv *priv,
42524252

42534253
switch (proto) {
42544254
case IPPROTO_GRE:
4255+
return features;
42554256
case IPPROTO_IPIP:
42564257
case IPPROTO_IPV6:
4257-
return features;
4258+
if (mlx5e_tunnel_proto_supported(priv->mdev, IPPROTO_IPIP))
4259+
return features;
4260+
break;
42584261
case IPPROTO_UDP:
42594262
udph = udp_hdr(skb);
42604263
port = be16_to_cpu(udph->dest);

0 commit comments

Comments
 (0)