Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=feff348fc0fe06870a8ec05e78af8ed5cc4c2bdf
Commit:     feff348fc0fe06870a8ec05e78af8ed5cc4c2bdf
Parent:     e30d42273bfa907dc06920c53fa3f303783e1e97
Author:     Don Fry <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 15:59:22 2007 -0700
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 20:17:34 2007 -0400

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 drivers/net/pcnet32.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/pcnet32.c b/drivers/net/pcnet32.c
index 5f994b5..159a645 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)
        lp->mii_if.mdio_read = mdio_read;
        lp->mii_if.mdio_write = mdio_write;
 
+       /* napi.weight is used in both the napi and non-napi cases */
+       lp->napi.weight = lp->rx_ring_size / 2;
+
 #ifdef CONFIG_PCNET32_NAPI
        netif_napi_add(dev, &lp->napi, pcnet32_poll, lp->rx_ring_size / 2);
 #endif
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to