FILE
tc_csum.h
File preview with syntax highlighting.
linux-6.19.14/include/net/tc_act/tc_csum.h
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef __NET_TC_CSUM_H 3#define __NET_TC_CSUM_H 4 5#include <linux/types.h> 6#include <net/act_api.h> 7#include <linux/tc_act/tc_csum.h> 8 9struct tcf_csum_params { 10 u32 update_flags; 11 int action; 12 struct rcu_head rcu; 13}; 14 15struct tcf_csum { 16 struct tc_action common; 17 18 struct tcf_csum_params __rcu *params; 19}; 20#define to_tcf_csum(a) ((struct tcf_csum *)a) 21 22static inline u32 tcf_csum_update_flags(const struct tc_action *a) 23{ 24 u32 update_flags; 25 26 rcu_read_lock(); 27 update_flags = rcu_dereference(to_tcf_csum(a)->params)->update_flags; 28 rcu_read_unlock(); 29 30 return update_flags; 31} 32 33#endif /* __NET_TC_CSUM_H */
~/
Read-only file preview.