Message ID | 20231009133754.9834-1-ansuelsmth@gmail.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Johannes Berg |
Headers | show |
Series | [net-next,v3,1/5] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule | expand |
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Mon, 9 Oct 2023 15:37:50 +0200 you wrote: > Replace drivers that still use napi_schedule_prep/__napi_schedule > with napi_schedule helper as it does the same exact check and call. > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > Reviewed-by: Eric Dumazet <edumazet@google.com> > --- > Changes v3: > - Add Reviewed-by tag > Changes v2: > - Add missing semicolon > > [...] Here is the summary with links: - [net-next,v3,1/5] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule https://git.kernel.org/netdev/net-next/c/ef724517b596 - [net-next,v3,2/5] netdev: make napi_schedule return bool on NAPI successful schedule https://git.kernel.org/netdev/net-next/c/0a779003213b - [net-next,v3,3/5] netdev: replace napi_reschedule with napi_schedule https://git.kernel.org/netdev/net-next/c/73382e919f3d - [net-next,v3,4/5] net: tc35815: rework network interface interrupt logic https://git.kernel.org/netdev/net-next/c/be176234d0a8 - [net-next,v3,5/5] netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule https://git.kernel.org/netdev/net-next/c/d1fea38f01ac You are awesome, thank you!
diff --git a/drivers/net/ethernet/ni/nixge.c b/drivers/net/ethernet/ni/nixge.c index 97f4798f4b42..f71a4f8bbb89 100644 --- a/drivers/net/ethernet/ni/nixge.c +++ b/drivers/net/ethernet/ni/nixge.c @@ -755,8 +755,7 @@ static irqreturn_t nixge_rx_irq(int irq, void *_ndev) cr &= ~(XAXIDMA_IRQ_IOC_MASK | XAXIDMA_IRQ_DELAY_MASK); nixge_dma_write_reg(priv, XAXIDMA_RX_CR_OFFSET, cr); - if (napi_schedule_prep(&priv->napi)) - __napi_schedule(&priv->napi); + napi_schedule(&priv->napi); goto out; } if (!(status & XAXIDMA_IRQ_ALL_MASK)) { diff --git a/drivers/net/ethernet/wiznet/w5100.c b/drivers/net/ethernet/wiznet/w5100.c index 341ee2f249fd..b26fd15c25ae 100644 --- a/drivers/net/ethernet/wiznet/w5100.c +++ b/drivers/net/ethernet/wiznet/w5100.c @@ -930,8 +930,8 @@ static irqreturn_t w5100_interrupt(int irq, void *ndev_instance) if (priv->ops->may_sleep) queue_work(priv->xfer_wq, &priv->rx_work); - else if (napi_schedule_prep(&priv->napi)) - __napi_schedule(&priv->napi); + else + napi_schedule(&priv->napi); } return IRQ_HANDLED;