14 #ifndef _NETPRIO_CGROUP_H
15 #define _NETPRIO_CGROUP_H
21 #if IS_ENABLED(CONFIG_NETPRIO_CGROUP)
28 struct cgroup_netprio_state {
29 struct cgroup_subsys_state css;
35 #if IS_BUILTIN(CONFIG_NETPRIO_CGROUP)
39 struct cgroup_netprio_state *
state;
43 state =
container_of(task_subsys_state(p, net_prio_subsys_id),
44 struct cgroup_netprio_state, css);
50 #elif IS_MODULE(CONFIG_NETPRIO_CGROUP)
54 struct cgroup_subsys_state *css;
58 css = task_subsys_state(p, net_prio_subsys_id);
61 struct cgroup_netprio_state, css)->prioidx;
74 #define sock_update_netprioidx(sk, task)