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
@@ -1612,7 +1612,7 @@ int t1_poll(struct napi_struct *napi, int budget)
|
||||
int work_done = process_responses(adapter, budget);
|
||||
|
||||
if (likely(work_done < budget)) {
|
||||
netif_rx_complete(napi);
|
||||
napi_complete(napi);
|
||||
writel(adapter->sge->respQ.cidx,
|
||||
adapter->regs + A_SG_SLEEPING);
|
||||
}
|
||||
@@ -1630,7 +1630,7 @@ irqreturn_t t1_interrupt(int irq, void *data)
|
||||
|
||||
if (napi_schedule_prep(&adapter->napi)) {
|
||||
if (process_pure_responses(adapter))
|
||||
__netif_rx_schedule(&adapter->napi);
|
||||
__napi_schedule(&adapter->napi);
|
||||
else {
|
||||
/* no data, no NAPI needed */
|
||||
writel(sge->respQ.cidx, adapter->regs + A_SG_SLEEPING);
|
||||
|
Reference in New Issue
Block a user