mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-04-03 12:05:13 +02:00
[ Upstream commit0d75287770] Also storing tcf_action into struct tcf_connmark_parms makes sure there is no discrepancy in tcf_connmark_act(). Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://patch.msgid.link/20250709090204.797558-3-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Stable-dep-of:62b656e43e("net: sched: act_connmark: initialize struct tc_ife to fix kernel leak") Signed-off-by: Sasha Levin <sashal@kernel.org>
22 lines
405 B
C
22 lines
405 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __NET_TC_CONNMARK_H
|
|
#define __NET_TC_CONNMARK_H
|
|
|
|
#include <net/act_api.h>
|
|
|
|
struct tcf_connmark_parms {
|
|
struct net *net;
|
|
u16 zone;
|
|
int action;
|
|
struct rcu_head rcu;
|
|
};
|
|
|
|
struct tcf_connmark_info {
|
|
struct tc_action common;
|
|
struct tcf_connmark_parms __rcu *parms;
|
|
};
|
|
|
|
#define to_connmark(a) ((struct tcf_connmark_info *)a)
|
|
|
|
#endif /* __NET_TC_CONNMARK_H */
|