]> git.baikalelectronics.ru Git - kernel.git/commit
sungem: Spring cleaning and GRO support
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 1 Jun 2011 07:17:10 +0000 (17:17 +1000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jun 2011 05:06:42 +0000 (22:06 -0700)
commitef7cba7d1a792be0faf1234d32e640886aebbab0
tree6bc8488ee4941aeae05faf75d6522b491b4a24f1
parentb75f918692610bb48ee9b03f6928f167fa08b6e4
sungem: Spring cleaning and GRO support

This patch simplifies the logic and locking in sungem significantly:

 - LLTX is gone, all private locks are gone, mutex is gone
 - We don't poll the PHY while the interface is down
 - The above allowed me to get rid of a pile of state flags
   using the proper interface state provided by the networking
   stack when needed and overall simplify the driver a lot
 - Allocate the bulk of RX skbs at init time using GFP_KERNEL
 - Fix a bug where the dev->features were set after register_netdev()
 - Added GRO while at it

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sungem.c
drivers/net/sungem.h