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
@ -830,7 +830,7 @@ static int ehea_poll(struct napi_struct *napi, int budget)
|
||||
while ((rx != budget) || force_irq) {
|
||||
pr->poll_counter = 0;
|
||||
force_irq = 0;
|
||||
netif_rx_complete(napi);
|
||||
napi_complete(napi);
|
||||
ehea_reset_cq_ep(pr->recv_cq);
|
||||
ehea_reset_cq_ep(pr->send_cq);
|
||||
ehea_reset_cq_n1(pr->recv_cq);
|
||||
@ -841,7 +841,7 @@ static int ehea_poll(struct napi_struct *napi, int budget)
|
||||
if (!cqe && !cqe_skb)
|
||||
return rx;
|
||||
|
||||
if (!netif_rx_reschedule(napi))
|
||||
if (!napi_reschedule(napi))
|
||||
return rx;
|
||||
|
||||
cqe_skb = ehea_proc_cqes(pr, EHEA_POLL_MAX_CQES);
|
||||
@ -859,7 +859,7 @@ static void ehea_netpoll(struct net_device *dev)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < port->num_def_qps; i++)
|
||||
netif_rx_schedule(&port->port_res[i].napi);
|
||||
napi_schedule(&port->port_res[i].napi);
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -867,7 +867,7 @@ static irqreturn_t ehea_recv_irq_handler(int irq, void *param)
|
||||
{
|
||||
struct ehea_port_res *pr = param;
|
||||
|
||||
netif_rx_schedule(&pr->napi);
|
||||
napi_schedule(&pr->napi);
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
Reference in New Issue
Block a user