]> git.baikalelectronics.ru Git - kernel.git/commit
sky2: receive checksum refactoring
authorstephen hemminger <shemminger@vyatta.com>
Sun, 7 Feb 2010 06:28:36 +0000 (06:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Feb 2010 01:56:28 +0000 (17:56 -0800)
commit5ec33dfe278b8dce95e4a54d8f432063735089a0
treeb34b93a191692d7cf0d28b6d3a1d3e8957dbcfa2
parentd45cb2b7e7a72c5edc5735a1dde297fffee921e3
sky2: receive checksum refactoring

Break the largish case for handling receive checksum into a separate
function, and if there is a problem use dev_XXX routines to
show which hardware is the problem.

Turn one corner case into a BUG().  This only happens if the driver
is expecting one behavior but the chip does the old behavior;
only ever saw this when bringing up a new chip type and driver
was buggy.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sky2.c