include/net/tc_act/tc_ctinfo.h

Source file repositories/reference/linux-study-clean/include/net/tc_act/tc_ctinfo.h

File Facts

System
Linux kernel
Corpus path
include/net/tc_act/tc_ctinfo.h
Extension
.h
Size
619 bytes
Lines
35
Domain
Networking Core
Bucket
Sockets, Protocols, Packet Path, And Network Policy
Inferred role
Networking Core: implementation source
Status
source implementation candidate

Why This File Exists

Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.

Dependency Surface

Detected Declarations

Annotated Snippet

struct tcf_ctinfo_params {
	struct rcu_head rcu;
	struct net *net;
	int action;
	u32 dscpmask;
	u32 dscpstatemask;
	u32 cpmarkmask;
	u16 zone;
	u8 mode;
	u8 dscpmaskshift;
};

struct tcf_ctinfo {
	struct tc_action common;
	struct tcf_ctinfo_params __rcu *params;
	atomic64_t stats_dscp_set;
	atomic64_t stats_dscp_error;
	atomic64_t stats_cpmark_set;
};

enum {
	CTINFO_MODE_DSCP	= BIT(0),
	CTINFO_MODE_CPMARK	= BIT(1)
};

#define to_ctinfo(a) ((struct tcf_ctinfo *)a)

#endif /* __NET_TC_CTINFO_H */

Annotation

Implementation Notes