mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-29 19:49:10 +00:00

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>
20 lines
361 B
C
20 lines
361 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
#ifndef _LINUX_NETDEVICE_XMIT_H
|
|
#define _LINUX_NETDEVICE_XMIT_H
|
|
|
|
struct netdev_xmit {
|
|
u16 recursion;
|
|
u8 more;
|
|
#ifdef CONFIG_NET_EGRESS
|
|
u8 skip_txqueue;
|
|
#endif
|
|
#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
|