]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/igb/igb_main.c
igb: update napi polling to consolidate function and return correct values
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 20 Feb 2009 04:39:04 +0000 (20:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2009 08:22:52 +0000 (00:22 -0800)
commit46544258de71d7e32342ee71a25146ec6e2e6e47
tree5df92559e4ee1ab98590f1ea1cff1b6f72522a5a
parent3c842138c0cf313e906538b89d88ba0d969ce747
igb: update napi polling to consolidate function and return correct values

igb is currently not returning the correct values for napi.  In addition it
is doing more work than necessary since it will not exit polling until
work_done is equal to zero.

This patch makes the following changes:
1.  Consolidates msi-x and non-msi polling routines.
2.  Corrects return values for polling routines.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/igb/igb_main.c