diff options
author | Mathias Krause <minipli@googlemail.com> | 2015-07-19 22:21:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-21 16:04:30 -0700 |
commit | e181a5430491f038c198f0eacc3142d6e871c2da (patch) | |
tree | b7ecc635b367907c44248b97ba4169ffcb75429e /include | |
parent | e69724f32e62502a6e686eae36b7aadfeea60dca (diff) |
net: #ifdefify sk_classid member of struct sock
The sk_classid member is only required when CONFIG_CGROUP_NET_CLASSID is
enabled. #ifdefify it to reduce the size of struct sock on 32 bit
systems, at least.
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 05a8c1aea251..4353ef70bf48 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -429,7 +429,9 @@ struct sock { void *sk_security; #endif __u32 sk_mark; +#ifdef CONFIG_CGROUP_NET_CLASSID u32 sk_classid; +#endif struct cg_proto *sk_cgrp; void (*sk_state_change)(struct sock *sk); void (*sk_data_ready)(struct sock *sk); |