From 61e0ba459f086301c472be9467fec4a61e786b48 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Tue, 28 Dec 2010 21:16:13 +0100 Subject: snull: Change netif_rx_[complete | schedule] to napi_[complete | schedule] --- snull/snull.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'snull/snull.c') diff --git a/snull/snull.c b/snull/snull.c index 5874c8b..a5b0e08 100644 --- a/snull/snull.c +++ b/snull/snull.c @@ -318,7 +318,7 @@ static int snull_poll(struct napi_struct *napi, int budget) } /* If we processed all packets, we're done; tell the kernel and reenable ints */ if (! priv->rx_queue) { - netif_rx_complete(dev); + napi_complete(napi); snull_rx_ints(dev, 1); return 0; } @@ -403,7 +403,7 @@ static void snull_napi_interrupt(int irq, void *dev_id, struct pt_regs *regs) priv->status = 0; if (statusword & SNULL_RX_INTR) { snull_rx_ints(dev, 0); /* Disable further interrupts */ - netif_rx_schedule(dev, &priv->napi); + napi_schedule(&priv->napi); } if (statusword & SNULL_TX_INTR) { /* a transmission is over: free the skb */ -- cgit v1.2.1-18-gbd029