net: Remove unused netdev arg from some NAPI interfaces.
When the napi api was changed to separate its 1:1 binding to the net_device struct, the netif_rx_[prep|schedule|complete] api failed to remove the now vestigual net_device structure parameter. This patch cleans up that api by properly removing it.. Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
889bd9b6db
commit
908a7a16b8
@@ -196,7 +196,7 @@ static void rx_refill_timeout(unsigned long data)
|
||||
{
|
||||
struct net_device *dev = (struct net_device *)data;
|
||||
struct netfront_info *np = netdev_priv(dev);
|
||||
netif_rx_schedule(dev, &np->napi);
|
||||
netif_rx_schedule(&np->napi);
|
||||
}
|
||||
|
||||
static int netfront_tx_slot_available(struct netfront_info *np)
|
||||
@@ -328,7 +328,7 @@ static int xennet_open(struct net_device *dev)
|
||||
xennet_alloc_rx_buffers(dev);
|
||||
np->rx.sring->rsp_event = np->rx.rsp_cons + 1;
|
||||
if (RING_HAS_UNCONSUMED_RESPONSES(&np->rx))
|
||||
netif_rx_schedule(dev, &np->napi);
|
||||
netif_rx_schedule(&np->napi);
|
||||
}
|
||||
spin_unlock_bh(&np->rx_lock);
|
||||
|
||||
@@ -979,7 +979,7 @@ err:
|
||||
|
||||
RING_FINAL_CHECK_FOR_RESPONSES(&np->rx, more_to_do);
|
||||
if (!more_to_do)
|
||||
__netif_rx_complete(dev, napi);
|
||||
__netif_rx_complete(napi);
|
||||
|
||||
local_irq_restore(flags);
|
||||
}
|
||||
@@ -1310,7 +1310,7 @@ static irqreturn_t xennet_interrupt(int irq, void *dev_id)
|
||||
xennet_tx_buf_gc(dev);
|
||||
/* Under tx_lock: protects access to rx shared-ring indexes. */
|
||||
if (RING_HAS_UNCONSUMED_RESPONSES(&np->rx))
|
||||
netif_rx_schedule(dev, &np->napi);
|
||||
netif_rx_schedule(&np->napi);
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore(&np->tx_lock, flags);
|
||||
|
Reference in New Issue
Block a user