ath10k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [net-next v3 1/5] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule
@ 2023-10-09 13:37 Christian Marangi
  2023-10-09 13:37 ` [net-next v3 2/5] netdev: make napi_schedule return bool on NAPI successful schedule Christian Marangi
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Christian Marangi @ 2023-10-09 13:37 UTC (permalink / raw)
  To: Jason Gunthorpe, Leon Romanovsky, Wolfgang Grandegger,
	Marc Kleine-Budde, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Chris Snook, Raju Rangoju, Jeroen de Borst,
	Praveen Kaligineedi, Shailend Chand, Douglas Miller, Nick Child,
	Michael Ellerman, Nicholas Piggin, Christophe Leroy,
	Haren Myneni, Rick Lindsley, Dany Madden, Thomas Falcon,
	Tariq Toukan, Alexandre Torgue, Jose Abreu, Maxime Coquelin,
	Krzysztof Halasa, Kalle Valo, Jeff Johnson, Gregory Greenman,
	Chandrashekar Devegowda, Intel Corporation, Chiranjeevi Rapolu,
	Liu Haijun, M Chetan Kumar, Ricardo Martinez, Loic Poulain,
	Sergey Ryazanov, Johannes Berg, Christian Marangi, Yuanjun Gong,
	Alex Elder, Bhupesh Sharma, Simon Horman, Rob Herring,
	Bailey Forrest, Junfeng Guo, Gustavo A. R. Silva, Ziwei Xiao,
	Rushil Gupta, Thomas Gleixner, Uwe Kleine-König,
	Krzysztof Kozlowski, Yuri Karpov, Andrew Lunn, Zheng Zengkai,
	Dawei Li, Anjaneyulu, Benjamin Berg, linux-rdma, linux-kernel,
	linux-can, netdev, linuxppc-dev, linux-stm32, linux-arm-kernel,
	ath10k, linux-wireless

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
---
 drivers/net/ethernet/ni/nixge.c     | 3 +--
 drivers/net/ethernet/wiznet/w5100.c | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

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;
-- 
2.40.1


_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-12  0:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-09 13:37 [net-next v3 1/5] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule Christian Marangi
2023-10-09 13:37 ` [net-next v3 2/5] netdev: make napi_schedule return bool on NAPI successful schedule Christian Marangi
2023-10-09 13:37 ` [net-next v3 3/5] netdev: replace napi_reschedule with napi_schedule Christian Marangi
2023-10-10  7:54   ` Tariq Toukan
2023-10-09 13:37 ` [net-next v3 4/5] net: tc35815: rework network interface interrupt logic Christian Marangi
2023-10-09 13:37 ` [net-next v3 5/5] netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule Christian Marangi
2023-10-12  0:40 ` [net-next v3 1/5] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).