]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix IPv6 tunnel checksum offload
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 2 May 2016 16:38:49 +0000 (09:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 17:32:28 +0000 (13:32 -0400)
commit857f7ad690c3941a0821a3cae4628ce020704241
treeb3dc0d49b7e3b437cf7305aaaa68f821053266bf
parent6fd6ca3ea276a88b7af64838d45588aca02026f8
net/mlx5e: Fix IPv6 tunnel checksum offload

The mlx5 driver exposes support for TSO6 but not IPv6 csum for hardware
encapsulated tunnels.  This leads to issues as it triggers warnings in
skb_checksum_help as it ends up being called as we report supporting the
segmentation but not the checksumming for IPv6 frames.

This patch corrects that and drops 2 features that don't actually need to
be supported in hw_enc_features since they are Rx features and don't
actually impact anything by being present in hw_enc_features.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c