b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/10] net: Convert user to netif_rx(), part 3.
@ 2022-03-06 21:57 Sebastian Andrzej Siewior
  2022-03-06 21:57 ` [PATCH net-next 05/10] batman-adv: Use netif_rx() Sebastian Andrzej Siewior
  2022-03-07 12:00 ` [PATCH net-next 00/10] net: Convert user to netif_rx(), part 3 patchwork-bot+netdevbpf
  0 siblings, 2 replies; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2022-03-06 21:57 UTC (permalink / raw)
  To: netdev
  Cc: David S. Miller, Jakub Kicinski, Thomas Gleixner,
	Alexander Gordeev, Alexandra Winter, Andrew Lunn,
	Antonio Quartulli, b.a.t.m.a.n, Christian Borntraeger,
	Divya Koppera, Greg Kroah-Hartman, Heiko Carstens,
	Heiner Kallweit, Johan Hedberg, Jon Maloy, linux-bluetooth,
	linux-s390, linux-staging, Luiz Augusto von Dentz,
	Marcel Holtmann, Marek Lindner, Remi Denis-Courmont,
	Russell King, Simon Wunderlich, Sven Eckelmann, Sven Schnelle,
	tipc-discussion, Vasily Gorbik, Wenjia Zhang, Ying Xue

This is the third and last batch of converting netif_rx_ni() caller to
netif_rx(). The change making this possible is net-next and
netif_rx_ni() is a wrapper around netif_rx(). This is a clean up in
order to remove netif_rx_ni().

The micrel phy driver is patched twice within this series: the first is
is to replace netif_rx_ni() and second to move netif_rx() outside of the
IRQ-off section. It is probably simpler to keep it within this series.

Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: Alexandra Winter <wintera@linux.ibm.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Antonio Quartulli <a@unstable.cc>
Cc: b.a.t.m.a.n@lists.open-mesh.org
Cc: Christian Borntraeger <borntraeger@linux.ibm.com>
Cc: Divya Koppera <Divya.Koppera@microchip.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Cc: Jon Maloy <jmaloy@redhat.com>
Cc: linux-bluetooth@vger.kernel.org
Cc: linux-s390@vger.kernel.org
Cc: linux-staging@lists.linux.dev
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Marek Lindner <mareklindner@neomailbox.ch>
Cc: Remi Denis-Courmont <courmisch@gmail.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Simon Wunderlich <sw@simonwunderlich.de>
Cc: Sven Eckelmann <sven@narfation.org>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: tipc-discussion@lists.sourceforge.net
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Wenjia Zhang <wenjia@linux.ibm.com>
Cc: Ying Xue <ying.xue@windriver.com>

Sebastian



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

* [PATCH net-next 05/10] batman-adv: Use netif_rx().
  2022-03-06 21:57 [PATCH net-next 00/10] net: Convert user to netif_rx(), part 3 Sebastian Andrzej Siewior
@ 2022-03-06 21:57 ` Sebastian Andrzej Siewior
  2022-03-07  7:26   ` Sven Eckelmann
  2022-03-07 12:00 ` [PATCH net-next 00/10] net: Convert user to netif_rx(), part 3 patchwork-bot+netdevbpf
  1 sibling, 1 reply; 4+ messages in thread
From: Sebastian Andrzej Siewior @ 2022-03-06 21:57 UTC (permalink / raw)
  To: netdev
  Cc: David S. Miller, Jakub Kicinski, Thomas Gleixner,
	Sebastian Andrzej Siewior, Antonio Quartulli, Marek Lindner,
	Simon Wunderlich, Sven Eckelmann, b.a.t.m.a.n

Since commit
   baebdf48c3600 ("net: dev: Makes sure netif_rx() can be invoked in any context.")

the function netif_rx() can be used in preemptible/thread context as
well as in interrupt context.

Use netif_rx().

Cc: Antonio Quartulli <a@unstable.cc>
Cc: Marek Lindner <mareklindner@neomailbox.ch>
Cc: Simon Wunderlich <sw@simonwunderlich.de>
Cc: Sven Eckelmann <sven@narfation.org>
Cc: b.a.t.m.a.n@lists.open-mesh.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
 net/batman-adv/bridge_loop_avoidance.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c
index 337e20b6586d3..7f8a14d99cdb0 100644
--- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -444,7 +444,7 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, const u8 *mac,
 	batadv_add_counter(bat_priv, BATADV_CNT_RX_BYTES,
 			   skb->len + ETH_HLEN);
 
-	netif_rx_any_context(skb);
+	netif_rx(skb);
 out:
 	batadv_hardif_put(primary_if);
 }
-- 
2.35.1


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

* Re: [PATCH net-next 05/10] batman-adv: Use netif_rx().
  2022-03-06 21:57 ` [PATCH net-next 05/10] batman-adv: Use netif_rx() Sebastian Andrzej Siewior
@ 2022-03-07  7:26   ` Sven Eckelmann
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Eckelmann @ 2022-03-07  7:26 UTC (permalink / raw)
  To: netdev, Sebastian Andrzej Siewior
  Cc: David S. Miller, Jakub Kicinski, Thomas Gleixner,
	Sebastian Andrzej Siewior, Antonio Quartulli, Marek Lindner,
	b.a.t.m.a.n

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

On Sunday, 6 March 2022 22:57:48 CET Sebastian Andrzej Siewior wrote:
> Since commit
>    baebdf48c3600 ("net: dev: Makes sure netif_rx() can be invoked in any context.")
> 
> the function netif_rx() can be used in preemptible/thread context as
> well as in interrupt context.
> 
> Use netif_rx().
> 
> Cc: Antonio Quartulli <a@unstable.cc>
> Cc: Marek Lindner <mareklindner@neomailbox.ch>
> Cc: Simon Wunderlich <sw@simonwunderlich.de>
> Cc: Sven Eckelmann <sven@narfation.org>
> Cc: b.a.t.m.a.n@lists.open-mesh.org
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> ---
>  net/batman-adv/bridge_loop_avoidance.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)


Acked-by: Sven Eckelmann <sven@narfation.org>

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: [PATCH net-next 00/10] net: Convert user to netif_rx(), part 3.
  2022-03-06 21:57 [PATCH net-next 00/10] net: Convert user to netif_rx(), part 3 Sebastian Andrzej Siewior
  2022-03-06 21:57 ` [PATCH net-next 05/10] batman-adv: Use netif_rx() Sebastian Andrzej Siewior
@ 2022-03-07 12:00 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-03-07 12:00 UTC (permalink / raw)
  To: Sebastian Andrzej Siewior
  Cc: netdev, davem, kuba, tglx, agordeev, wintera, andrew, a,
	b.a.t.m.a.n, borntraeger, Divya.Koppera, gregkh, hca, hkallweit1,
	johan.hedberg, jmaloy, linux-bluetooth, linux-s390,
	linux-staging, luiz.dentz, marcel, mareklindner, courmisch,
	linux, sw, sven, svens, tipc-discussion, gor, wenjia, ying.xue

Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Sun,  6 Mar 2022 22:57:43 +0100 you wrote:
> This is the third and last batch of converting netif_rx_ni() caller to
> netif_rx(). The change making this possible is net-next and
> netif_rx_ni() is a wrapper around netif_rx(). This is a clean up in
> order to remove netif_rx_ni().
> 
> The micrel phy driver is patched twice within this series: the first is
> is to replace netif_rx_ni() and second to move netif_rx() outside of the
> IRQ-off section. It is probably simpler to keep it within this series.
> 
> [...]

Here is the summary with links:
  - [net-next,01/10] s390: net: Use netif_rx().
    https://git.kernel.org/netdev/net-next/c/a70d20704ad5
  - [net-next,02/10] staging: Use netif_rx().
    https://git.kernel.org/netdev/net-next/c/4bcc4249b4cf
  - [net-next,03/10] tun: vxlan: Use netif_rx().
    https://git.kernel.org/netdev/net-next/c/3d391f6518fd
  - [net-next,04/10] tipc: Use netif_rx().
    https://git.kernel.org/netdev/net-next/c/a0f0db8292e6
  - [net-next,05/10] batman-adv: Use netif_rx().
    https://git.kernel.org/netdev/net-next/c/94da81e2fc42
  - [net-next,06/10] bluetooth: Use netif_rx().
    https://git.kernel.org/netdev/net-next/c/d33d0dc9275d
  - [net-next,07/10] phonet: Use netif_rx().
    https://git.kernel.org/netdev/net-next/c/63d57cd67454
  - [net-next,08/10] net: phy: micrel: Use netif_rx().
    https://git.kernel.org/netdev/net-next/c/e1f9e434617f
  - [net-next,09/10] net: Remove netif_rx_any_context() and netif_rx_ni().
    https://git.kernel.org/netdev/net-next/c/2655926aea9b
  - [net-next,10/10] net: phy: micrel: Move netif_rx() outside of IRQ-off section.
    https://git.kernel.org/netdev/net-next/c/67dbd6c0a2c4

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-03-07 12:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-06 21:57 [PATCH net-next 00/10] net: Convert user to netif_rx(), part 3 Sebastian Andrzej Siewior
2022-03-06 21:57 ` [PATCH net-next 05/10] batman-adv: Use netif_rx() Sebastian Andrzej Siewior
2022-03-07  7:26   ` Sven Eckelmann
2022-03-07 12:00 ` [PATCH net-next 00/10] net: Convert user to netif_rx(), part 3 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).