Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __NET_TC_CTINFO_H
0003 #define __NET_TC_CTINFO_H
0004 
0005 #include <net/act_api.h>
0006 
0007 struct tcf_ctinfo_params {
0008     struct rcu_head rcu;
0009     struct net *net;
0010     u32 dscpmask;
0011     u32 dscpstatemask;
0012     u32 cpmarkmask;
0013     u16 zone;
0014     u8 mode;
0015     u8 dscpmaskshift;
0016 };
0017 
0018 struct tcf_ctinfo {
0019     struct tc_action common;
0020     struct tcf_ctinfo_params __rcu *params;
0021     u64 stats_dscp_set;
0022     u64 stats_dscp_error;
0023     u64 stats_cpmark_set;
0024 };
0025 
0026 enum {
0027     CTINFO_MODE_DSCP    = BIT(0),
0028     CTINFO_MODE_CPMARK  = BIT(1)
0029 };
0030 
0031 #define to_ctinfo(a) ((struct tcf_ctinfo *)a)
0032 
0033 #endif /* __NET_TC_CTINFO_H */