]> git.openfabrics.org - ~shefty/rdma-dev.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)
commitfe09bb619096a0aa139210748ddc668c2dbe2308
tree6bc8488ee4941aeae05faf75d6522b491b4a24f1
parent6f92c66f7190b1677ea666249b72298723392115
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