Skip to content

Commit

Permalink
WAN: Fix NAPI interface in IXP4xx HSS driver.
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Krzysztof Hałasa authored and David S. Miller committed Jan 13, 2009
1 parent 37a76bd commit d973674
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/wan/ixp4xx_hss.c
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ static void hss_hdlc_rx_irq(void *pdev)
printk(KERN_DEBUG "%s: hss_hdlc_rx_irq\n", dev->name);
#endif
qmgr_disable_irq(queue_ids[port->id].rx);
netif_rx_schedule(dev, &port->napi);
netif_rx_schedule(&port->napi);
}

static int hss_hdlc_poll(struct napi_struct *napi, int budget)
Expand Down Expand Up @@ -651,7 +651,7 @@ static int hss_hdlc_poll(struct napi_struct *napi, int budget)
printk(KERN_DEBUG "%s: hss_hdlc_poll"
" netif_rx_complete\n", dev->name);
#endif
netif_rx_complete(dev, napi);
netif_rx_complete(napi);
qmgr_enable_irq(rxq);
if (!qmgr_stat_empty(rxq) &&
netif_rx_reschedule(napi)) {
Expand Down Expand Up @@ -1069,7 +1069,7 @@ static int hss_hdlc_open(struct net_device *dev)
hss_start_hdlc(port);

/* we may already have RX data, enables IRQ */
netif_rx_schedule(dev, &port->napi);
netif_rx_schedule(&port->napi);
return 0;

err_unlock:
Expand Down

0 comments on commit d973674

Please sign in to comment.