summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorVlad Yasevich <vyasevich@gmail.com>2017-05-05 16:17:41 -0400
committerDavid S. Miller <davem@davemloft.net>2017-05-08 14:39:19 -0400
commit8403debeead8e8b296d7a7db2174af524695ab42 (patch)
treee99d202db8c54a3f32d2b49c174aa5b1cf776210 /drivers/net
parent1b1fc3fddabfb8739ef2c8f04e05a9858b42c1f7 (diff)
downloadlinux-stable-8403debeead8e8b296d7a7db2174af524695ab42.tar.gz
linux-stable-8403debeead8e8b296d7a7db2174af524695ab42.tar.bz2
linux-stable-8403debeead8e8b296d7a7db2174af524695ab42.zip
vlan: Keep NETIF_F_HW_CSUM similar to other software devices
Vlan devices, like all other software devices, enable NETIF_F_HW_CSUM feature. However, unlike all the othe other software devices, vlans will switch to using IP|IPV6_CSUM features, if the underlying devices uses them. In these situations, checksum offload features on the vlan device can't be controlled via ethtool. This patch makes vlans keep HW_CSUM feature if the underlying device supports checksum offloading. This makes vlan devices behave like other software devices, and restores control to the user. A side-effect is that some offload settings (typically UFO) may be enabled on the vlan device while being disabled on the HW. However, the GSO code will correctly process the packets. This actually results in slightly better raw throughput. Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com> Acked-by: Alexander Duyck <alexander.h.duyck@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions