Skip to content

Commit

Permalink
igb: clean up a stray fake netdev code left in rx path
Browse files Browse the repository at this point in the history
Remove code that was in place to support fake netdev

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Alexander Duyck authored and Jeff Garzik committed Sep 3, 2008
1 parent fc7d345 commit 1a32bcf
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/igb/igb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3563,10 +3563,6 @@ static int igb_clean_rx_ring_msix(struct napi_struct *napi, int budget)
struct net_device *netdev = adapter->netdev;
int work_done = 0;

/* Keep link state information with original netdev */
if (!netif_carrier_ok(netdev))
goto quit_polling;

#ifdef CONFIG_DCA
if (adapter->flags & IGB_FLAG_DCA_ENABLED)
igb_update_rx_dca(rx_ring);
Expand All @@ -3576,7 +3572,6 @@ static int igb_clean_rx_ring_msix(struct napi_struct *napi, int budget)

/* If not enough Rx work done, exit the polling mode */
if ((work_done == 0) || !netif_running(netdev)) {
quit_polling:
netif_rx_complete(netdev, napi);

if (adapter->itr_setting & 3) {
Expand Down

0 comments on commit 1a32bcf

Please sign in to comment.