Skip to content

Commit

Permalink
batman-adv: Use netif_rx_any_context() any.
Browse files Browse the repository at this point in the history
This reverts the stable commit
   e65d78b ("batman-adv: Use netif_rx().")

The commit message says:

| Since commit
|    baebdf4 ("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.

This commit (baebdf4) has not been backported to the 5.15 stable
series and therefore, the commit which builds upon it, must not be
backported either.

Revert the backport and use netif_rx_any_context() again.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sebastian Andrzej Siewior authored and gregkh committed Jul 29, 2022
1 parent be56f00 commit 0cac1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/bridge_loop_avoidance.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ static void batadv_bla_send_claim(struct batadv_priv *bat_priv, u8 *mac,
batadv_add_counter(bat_priv, BATADV_CNT_RX_BYTES,
skb->len + ETH_HLEN);

netif_rx(skb);
netif_rx_any_context(skb);
out:
batadv_hardif_put(primary_if);
}
Expand Down

0 comments on commit 0cac1c8

Please sign in to comment.