Skip to contentSkip to conversation

net driver fixes

PATCH New Jeff Garzik 1 participant 1 message Jul 17, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net driver fixes

Frankly, I am surprised at the low volume of complains for 2.6.18-rc1, and now 2.6.18-rc2. I keep worrying, waiting for the tide of complaints to wash in...

Anyway. Here is the next batch of net driver fixes. The e1000 'remove CRC' fix is probably the biggest one; that fixes a recently-introduced bug (though, thankfully, not deadly for the common use case).

Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-linus

to receive the following updates:

 drivers/net/e1000/e1000.h      |    3 
 drivers/net/e1000/e1000_main.c |   52 +--
 drivers/net/sky2.c             |    7 
 drivers/net/spider_net.c       |  580 +++++++++++++++++------------------------
 drivers/net/spider_net.h       |   73 +----
 net/core/ethtool.c             |    2 
 6 files changed, 307 insertions(+), 410 deletions(-)

Auke Kok:
e1000: Redo netpoll fix to address community concerns
e1000: remove CRC bytes from measured packet length
e1000: fix panic on large frame receive when mtu=default
e1000: bump version to 7.1.9-k4

Jeff Garzik:
[NET] ethtool: fix oops by testing correct struct member

Jens Osterkamp:
spidernet: bug fix for init code
spidernet: rework tx queue handling

Stephen Hemminger:
sky2: NAPI poll fix

drivers/net/e1000/e1000.h +3 -0
index f411bbb..d304297 100644
@@ -110,6 +110,9 @@ #define E1000_MAX_RXD                   
 #define E1000_MIN_RXD                       80
 #define E1000_MAX_82544_RXD               4096
 
+/* this is the size past which hardware will drop packets when setting LPE=0 */
+#define MAXIMUM_ETHERNET_VLAN_SIZE 1522
+
 /* Supported Rx Buffer Sizes */
 #define E1000_RXBUFFER_128   128    /* Used for packet split */
 #define E1000_RXBUFFER_256   256    /* Used for packet split */
drivers/net/e1000/e1000_main.c +26 -26

122 lines not on this page · raw message

drivers/net/sky2.c +2 -5
index d98f28c..de91609 100644
@@ -50,7 +50,7 @@ #endif
 #include "sky2.h"
 
 #define DRV_NAME		"sky2"
-#define DRV_VERSION		"1.4"
+#define DRV_VERSION		"1.5"
 #define PFX			DRV_NAME " "
 
 /*
@@ -2204,9 +2204,6 @@ static int sky2_poll(struct net_device *
 	int work_done = 0;
 	u32 status = sky2_read32(hw, B0_Y2_SP_EISR);
 
-	if (!~status)
-		goto out;
-
 	if (status & Y2_IS_HW_ERR)
 		sky2_hw_intr(hw);
 
@@ -2243,7 +2240,7 @@ static int sky2_poll(struct net_device *
 
 	if (sky2_more_work(hw))
 		return 1;
-out:
+
 	netif_rx_complete(dev0);
 
 	sky2_read32(hw, B0_Y2_SP_LISR);
drivers/net/spider_net.c +254 -326

825 lines not on this page · raw message

drivers/net/spider_net.h +21 -52

98 lines not on this page · raw message

net/core/ethtool.c +1 -1
index 27ce168..2797e28 100644
@@ -437,7 +437,7 @@ static int ethtool_set_pauseparam(struct
 {
 	struct ethtool_pauseparam pauseparam;
 
-	if (!dev->ethtool_ops->get_pauseparam)
+	if (!dev->ethtool_ops->set_pauseparam)
 		return -EOPNOTSUPP;
 
 	if (copy_from_user(&pauseparam, useraddr, sizeof(pauseparam)))