net/mlx5e: Add missing capability bit check for IP-in-IP
authorMarina Varshaver <marinav@mellanox.com>
Tue, 19 Nov 2019 16:52:13 +0000 (18:52 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 20 Nov 2019 20:33:06 +0000 (12:33 -0800)
commit9c98f7ec01d78b5c12db97d1e5edb7022eefa398
tree7f90537b275523a45cf4e07436cce310188643bf
parent24960574505c49b102ca1dfa6bf109669bca2a66
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: 25948b87dda2 ("net/mlx5e: Support TSO and TX checksum offloads for IP-in-IP")
Signed-off-by: Marina Varshaver <marinav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c