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
@@ -1783,7 +1783,7 @@ typhoon_poll(struct napi_struct *napi, int budget)
|
||||
}
|
||||
|
||||
if (work_done < budget) {
|
||||
netif_rx_complete(napi);
|
||||
napi_complete(napi);
|
||||
iowrite32(TYPHOON_INTR_NONE,
|
||||
tp->ioaddr + TYPHOON_REG_INTR_MASK);
|
||||
typhoon_post_pci_writes(tp->ioaddr);
|
||||
@@ -1806,10 +1806,10 @@ typhoon_interrupt(int irq, void *dev_instance)
|
||||
|
||||
iowrite32(intr_status, ioaddr + TYPHOON_REG_INTR_STATUS);
|
||||
|
||||
if (netif_rx_schedule_prep(&tp->napi)) {
|
||||
if (napi_schedule_prep(&tp->napi)) {
|
||||
iowrite32(TYPHOON_INTR_ALL, ioaddr + TYPHOON_REG_INTR_MASK);
|
||||
typhoon_post_pci_writes(ioaddr);
|
||||
__netif_rx_schedule(&tp->napi);
|
||||
__napi_schedule(&tp->napi);
|
||||
} else {
|
||||
printk(KERN_ERR "%s: Error, poll already scheduled\n",
|
||||
dev->name);
|
||||
|
Reference in New Issue
Block a user