]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
smsc75xx: fix smsc75xx_set_features()
authorEric Dumazet <edumazet@google.com>
Wed, 21 Feb 2018 05:42:26 +0000 (21:42 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 27 Aug 2018 14:40:05 +0000 (16:40 +0200)
commit17a64e30f5c2ec78ed32f1b210b199ffb1e1496b
treeb32f31e8b436b233757dd31fdea55e321a3af994
parent450511ae2089d385bec851b5c87e23aeecaea2c5
smsc75xx: fix smsc75xx_set_features()

BugLink: http://bugs.launchpad.net/bugs/1786352
[ Upstream commit 88e80c62671ceecdbb77c902731ec95a4bfa62f9 ]

If an attempt is made to disable RX checksums, USB adapter is changed
but netdev->features is not, because smsc75xx_set_features() returns a
non zero value.

This throws errors from netdev_rx_csum_fault() :
<devname>: hw csum failure

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/usb/smsc75xx.c