mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-21 05:44:14 +00:00
mirred_nest_level 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 mirred_nest_level to struct netdev_xmit as u8, provide wrappers. Cc: Jamal Hadi Salim <jhs@mojatatu.com> Cc: Cong Wang <xiyou.wangcong@gmail.com> Cc: Jiri Pirko <jiri@resnulli.us> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Juri Lelli <juri.lelli@redhat.com> Link: https://patch.msgid.link/20250512092736.229935-11-bigeasy@linutronix.de Signed-off-by: Paolo Abeni <pabeni@redhat.com>
17 lines
291 B
C
17 lines
291 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
|
|
};
|
|
|
|
#endif
|