]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit375c568844e49d292885c7485d4a255f71680e56
treeb34b93a191692d7cf0d28b6d3a1d3e8957dbcfa2
parentacd12dde26eef5186a9d2ead9399d136932d2398
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