]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfb10e122bcc2e5cc83339090a8c25a3e99c3ea9
tree5df92559e4ee1ab98590f1ea1cff1b6f72522a5a
parentbbc6fd0c93276bafb29458c6e7bac2340d507876
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