aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDon Fry <pcnet32@verizon.net>2007-10-17 18:59:22 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-17 20:17:34 -0400
commitfeff348fc0fe06870a8ec05e78af8ed5cc4c2bdf (patch)
tree0d83851e81f8edeb70812a2ba3654f830b149dcf /drivers
parente30d42273bfa907dc06920c53fa3f303783e1e97 (diff)
pcnet32: fix non-napi packet reception
Recent changes to the driver for the new napi API broke the reception of packets when in non-napi mode. The initialization of napi.weight was removed for the non-napi case leaving the value zero. Tested NAPI and non-NAPI on x86_64. Signed-off-by: Don Fry <pcnet32@verizon.net> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/pcnet32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c
index 5f994b5beda1..159a64586d00 100644
--- a/drivers/net/pcnet32.c
+++ b/drivers/net/pcnet32.c
@@ -1849,6 +1849,9 @@ pcnet32_probe1(unsigned long ioaddr, int shared, struct pci_dev *pdev)
1849 lp->mii_if.mdio_read = mdio_read; 1849 lp->mii_if.mdio_read = mdio_read;
1850 lp->mii_if.mdio_write = mdio_write; 1850 lp->mii_if.mdio_write = mdio_write;
1851 1851
1852 /* napi.weight is used in both the napi and non-napi cases */
1853 lp->napi.weight = lp->rx_ring_size / 2;
1854
1852#ifdef CONFIG_PCNET32_NAPI 1855#ifdef CONFIG_PCNET32_NAPI
1853 netif_napi_add(dev, &lp->napi, pcnet32_poll, lp->rx_ring_size / 2); 1856 netif_napi_add(dev, &lp->napi, pcnet32_poll, lp->rx_ring_size / 2);
1854#endif 1857#endif