net: Remove redundant NAPI functions
Following the removal of the unused struct net_device * parameter from
the NAPI functions named *netif_rx_* in commit 908a7a1
, they are
exactly equivalent to the corresponding *napi_* functions and are
therefore redundant.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-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
627af770c6
commit
288379f050
@@ -921,7 +921,7 @@ static int gem_poll(struct napi_struct *napi, int budget)
|
||||
gp->status = readl(gp->regs + GREG_STAT);
|
||||
} while (gp->status & GREG_STAT_NAPI);
|
||||
|
||||
__netif_rx_complete(napi);
|
||||
__napi_complete(napi);
|
||||
gem_enable_ints(gp);
|
||||
|
||||
spin_unlock_irqrestore(&gp->lock, flags);
|
||||
@@ -944,7 +944,7 @@ static irqreturn_t gem_interrupt(int irq, void *dev_id)
|
||||
|
||||
spin_lock_irqsave(&gp->lock, flags);
|
||||
|
||||
if (netif_rx_schedule_prep(&gp->napi)) {
|
||||
if (napi_schedule_prep(&gp->napi)) {
|
||||
u32 gem_status = readl(gp->regs + GREG_STAT);
|
||||
|
||||
if (gem_status == 0) {
|
||||
@@ -954,7 +954,7 @@ static irqreturn_t gem_interrupt(int irq, void *dev_id)
|
||||
}
|
||||
gp->status = gem_status;
|
||||
gem_disable_ints(gp);
|
||||
__netif_rx_schedule(&gp->napi);
|
||||
__napi_schedule(&gp->napi);
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore(&gp->lock, flags);
|
||||
|
Reference in New Issue
Block a user