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
@@ -1301,7 +1301,7 @@ static int spider_net_poll(struct napi_struct *napi, int budget)
|
||||
/* if all packets are in the stack, enable interrupts and return 0 */
|
||||
/* if not, return 1 */
|
||||
if (packets_done < budget) {
|
||||
netif_rx_complete(napi);
|
||||
napi_complete(napi);
|
||||
spider_net_rx_irq_on(card);
|
||||
card->ignore_rx_ramfull = 0;
|
||||
}
|
||||
@@ -1528,7 +1528,7 @@ spider_net_handle_error_irq(struct spider_net_card *card, u32 status_reg,
|
||||
spider_net_refill_rx_chain(card);
|
||||
spider_net_enable_rxdmac(card);
|
||||
card->num_rx_ints ++;
|
||||
netif_rx_schedule(&card->napi);
|
||||
napi_schedule(&card->napi);
|
||||
}
|
||||
show_error = 0;
|
||||
break;
|
||||
@@ -1548,7 +1548,7 @@ spider_net_handle_error_irq(struct spider_net_card *card, u32 status_reg,
|
||||
spider_net_refill_rx_chain(card);
|
||||
spider_net_enable_rxdmac(card);
|
||||
card->num_rx_ints ++;
|
||||
netif_rx_schedule(&card->napi);
|
||||
napi_schedule(&card->napi);
|
||||
show_error = 0;
|
||||
break;
|
||||
|
||||
@@ -1562,7 +1562,7 @@ spider_net_handle_error_irq(struct spider_net_card *card, u32 status_reg,
|
||||
spider_net_refill_rx_chain(card);
|
||||
spider_net_enable_rxdmac(card);
|
||||
card->num_rx_ints ++;
|
||||
netif_rx_schedule(&card->napi);
|
||||
napi_schedule(&card->napi);
|
||||
show_error = 0;
|
||||
break;
|
||||
|
||||
@@ -1656,11 +1656,11 @@ spider_net_interrupt(int irq, void *ptr)
|
||||
|
||||
if (status_reg & SPIDER_NET_RXINT ) {
|
||||
spider_net_rx_irq_off(card);
|
||||
netif_rx_schedule(&card->napi);
|
||||
napi_schedule(&card->napi);
|
||||
card->num_rx_ints ++;
|
||||
}
|
||||
if (status_reg & SPIDER_NET_TXINT)
|
||||
netif_rx_schedule(&card->napi);
|
||||
napi_schedule(&card->napi);
|
||||
|
||||
if (status_reg & SPIDER_NET_LINKINT)
|
||||
spider_net_link_reset(netdev);
|
||||
|
Reference in New Issue
Block a user