ath10k.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH 1/4] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule
@ 2023-10-02 15:10 Christian Marangi
  2023-10-02 15:10 ` [net-next PATCH 2/4] netdev: make napi_schedule return bool on NAPI successful schedule Christian Marangi
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Christian Marangi @ 2023-10-02 15:10 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,
	Wei Fang, Alex Elder, Simon Horman, Rob Herring, Bailey Forrest,
	Gustavo A. R. Silva, Junfeng Guo, Ziwei Xiao, Thomas Gleixner,
	Rushil Gupta, Uwe Kleine-König, Yuri Karpov, Zhengchao Shao,
	Andrew Lunn, Zheng Zengkai, Rafael J. Wysocki, Lee Jones,
	Dawei Li, Hans de Goede, Benjamin Berg, Anjaneyulu, 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>
---
 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..5613fd6a9f0a 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] 13+ messages in thread

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

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-02 15:10 [net-next PATCH 1/4] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule Christian Marangi
2023-10-02 15:10 ` [net-next PATCH 2/4] netdev: make napi_schedule return bool on NAPI successful schedule Christian Marangi
2023-10-02 16:08   ` Jeff Johnson
2023-10-03  5:21   ` Eric Dumazet
2023-10-03 10:25     ` Christian Marangi
2023-10-02 15:10 ` [net-next PATCH 3/4] netdev: replace napi_reschedule with napi_schedule Christian Marangi
2023-10-02 16:12   ` Jeff Johnson
2023-10-02 21:41   ` Nick Child
2023-10-03  7:16   ` Marc Kleine-Budde
2023-10-03 11:18     ` Christian Marangi
2023-10-03 11:26       ` Marc Kleine-Budde
2023-10-02 15:10 ` [net-next PATCH 4/4] netdev: use napi_schedule bool instead of napi_schedule_prep/__napi_schedule Christian Marangi
2023-10-02 22:21 ` [net-next PATCH 1/4] netdev: replace simple napi_schedule_prep/__napi_schedule to napi_schedule Jakub Kicinski

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