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
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); }
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
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!
b.a.t.m.a.n@lists.open-mesh.org