ath10k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH v2 1/4] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule
@ 2023-10-03 14:51 Christian Marangi
  2023-10-03 14:51 ` [net-next PATCH v2 2/4] netdev: make napi_schedule return bool on NAPI successful schedule Christian Marangi
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Christian Marangi @ 2023-10-03 14:51 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,
	Michael Ellerman, Nicholas Piggin, Christophe Leroy, Nick Child,
	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,
	Simon Horman, Rob Herring, Ziwei Xiao, Rushil Gupta, Coco Li,
	Thomas Gleixner, Junfeng Guo, Uwe Kleine-König, Wei Fang,
	Krzysztof Kozlowski, Yuri Karpov, Zhengchao Shao, Andrew Lunn,
	Zheng Zengkai, Lee Jones, Maximilian Luz, Rafael J. Wysocki,
	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>
---
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] 15+ messages in thread

end of thread, other threads:[~2023-10-09  8:28 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 14:51 [net-next PATCH v2 1/4] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule Christian Marangi
2023-10-03 14:51 ` [net-next PATCH v2 2/4] netdev: make napi_schedule return bool on NAPI successful schedule Christian Marangi
2023-10-03 14:51 ` [net-next PATCH v2 3/4] netdev: replace napi_reschedule with napi_schedule Christian Marangi
2023-10-05 16:11   ` Eric Dumazet
2023-10-05 16:32     ` Jakub Kicinski
2023-10-05 16:41       ` Eric Dumazet
2023-10-06 18:52         ` Christian Marangi
2023-10-08  7:00           ` Eric Dumazet
2023-10-03 14:51 ` [net-next PATCH v2 4/4] netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule Christian Marangi
2023-10-05 16:16   ` Eric Dumazet
2023-10-06 18:49     ` Christian Marangi
2023-10-08  7:08       ` Eric Dumazet
2023-10-08 18:27         ` Christian Marangi
2023-10-09  8:27           ` Eric Dumazet
2023-10-05 16:09 ` [net-next PATCH v2 1/4] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule Eric Dumazet

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).