]> git.baikalelectronics.ru Git - kernel.git/commit
net: Disable segmentation if checksumming is not supported
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 2 May 2016 16:25:10 +0000 (09:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2016 20:00:54 +0000 (16:00 -0400)
commit26a4bd398056e140d21c833eae8cdc9fdf89ac3f
tree19e9e66c3014702dc294d9f8ca1fb7d7662f8244
parent0e60c054dea9508b9364eef633cde05f1b370eab
net: Disable segmentation if checksumming is not supported

In the case of the mlx4 and mlx5 driver they do not support IPv6 checksum
offload for tunnels.  With this being the case we should disable GSO in
addition to the checksum offload features when we find that a device cannot
perform a checksum on a given packet type.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c