diff options
author | 2025-05-12 12:28:46 +0200 | |
---|---|---|
committer | 2025-05-23 13:57:12 +0200 | |
commit | f37ad91270397a6d053e8623bdb3cf79859691d2 (patch) | |
tree | 846e837993ca1cadaf52af0a3ca5d2e359659806 /include | |
parent | netfilter: nft_inner: Use nested-BH locking for nft_pcpu_tun_ctx (diff) | |
download | wireguard-linux-f37ad91270397a6d053e8623bdb3cf79859691d2.tar.xz wireguard-linux-f37ad91270397a6d053e8623bdb3cf79859691d2.zip |
netfilter: nf_dup_netdev: Move the recursion counter struct netdev_xmit
nf_dup_skb_recursion is a per-CPU variable and relies on disabled BH for its
locking. Without per-CPU locking in local_bh_disable() on PREEMPT_RT
this data structure requires explicit locking.
Move nf_dup_skb_recursion to struct netdev_xmit, provide wrappers.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice_xmit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/netdevice_xmit.h b/include/linux/netdevice_xmit.h index 848735b3a7c0..813a19122ebb 100644 --- a/include/linux/netdevice_xmit.h +++ b/include/linux/netdevice_xmit.h @@ -11,6 +11,9 @@ struct netdev_xmit { #if IS_ENABLED(CONFIG_NET_ACT_MIRRED) u8 sched_mirred_nest; #endif +#if IS_ENABLED(CONFIG_NF_DUP_NETDEV) + u8 nf_dup_skb_recursion; +#endif }; #endif |