]> 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)
commite9b2e076bb167232f924998ee731e8ef91c57262
tree6bc8488ee4941aeae05faf75d6522b491b4a24f1
parentc57b2b44b7138f15210d79bf6b52c8493a5612cf
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