]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sky2: fix checksum bit management on some chips
authorstephen hemminger <shemminger@vyatta.com>
Wed, 6 Jun 2012 10:01:30 +0000 (10:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:03:46 +0000 (09:03 -0700)
commit019984b4454af824ff1c23aa6f53010b54b5c683
treea67680fc36a8c2741267a29846c2e2139a609a42
parentf9909f77764c6e7d9f6067ac58bf3f68a02ed266
sky2: fix checksum bit management on some chips

[ Upstream commit 5ff0feac88ced864f44adb145142269196fa79d9 ]

The newer flavors of Yukon II use a different method for receive
checksum offload. This is indicated in the driver by the SKY2_HW_NEW_LE
flag. On these newer chips, the BMU_ENA_RX_CHKSUM should not be set.

The driver would get incorrectly toggle the bit, enabling the old
checksum logic on these chips and cause a BUG_ON() assertion. If
receive checksum was toggled via ethtool.

Reported-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/sky2.c