smsc75xx: fix smsc75xx_set_features()
authorEric Dumazet <[email protected]>
Wed, 21 Feb 2018 05:42:26 +0000 (21:42 -0800)
committerDavid S. Miller <[email protected]>
Thu, 22 Feb 2018 19:05:15 +0000 (14:05 -0500)
commit88e80c62671ceecdbb77c902731ec95a4bfa62f9
tree53e1b8baebc2764ab51353b9ade417272d044f6e
parentb87b6194be631c94785fe93398651e804ed43e28
smsc75xx: fix smsc75xx_set_features()

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 <[email protected]>
Cc: Steve Glendinning <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/usb/smsc75xx.c