Skip to content

Commit

Permalink
ARM: IXP4xx Ethernet NAPI fix
Browse files Browse the repository at this point in the history
This patch removes some weirdness from IXP4xx Ethernet driver.

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Krzysztof Halasa authored and Jeff Garzik committed Jul 11, 2008
1 parent e35259a commit 9076689
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/arm/ixp4xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,6 @@ static int eth_poll(struct napi_struct *napi, int budget)
#endif

if ((n = queue_get_desc(rxq, port, 0)) < 0) {
received = 0; /* No packet received */
#if DEBUG_RX
printk(KERN_DEBUG "%s: eth_poll netif_rx_complete\n",
dev->name);
Expand All @@ -543,7 +542,7 @@ static int eth_poll(struct napi_struct *napi, int budget)
printk(KERN_DEBUG "%s: eth_poll all done\n",
dev->name);
#endif
return 0; /* all work done */
return received; /* all work done */
}

desc = rx_desc_ptr(port, n);
Expand Down

0 comments on commit 9076689

Please sign in to comment.