projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccb6e98
)
netprio_cgroup: define sk_cgrp_prioidx only if NETPRIO_CGROUP is enabled
author
Li Zefan
<lizefan@huawei.com>
Tue, 25 Dec 2012 20:48:24 +0000
(20:48 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 26 Dec 2012 22:16:23 +0000
(14:16 -0800)
sock->sk_cgrp_prioidx won't be used at all if CONFIG_NETPRIO_CGROUP=n.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
patch
|
blob
|
history
diff --git
a/include/net/sock.h
b/include/net/sock.h
index
93a6745
..
182ca99
100644
(file)
--- a/
include/net/sock.h
+++ b/
include/net/sock.h
@@
-367,7
+367,7
@@
struct sock {
unsigned short sk_ack_backlog;
unsigned short sk_max_ack_backlog;
__u32 sk_priority;
-#if
def CONFIG_CGROUPS
+#if
IS_ENABLED(CONFIG_NETPRIO_CGROUP)
__u32 sk_cgrp_prioidx;
#endif
struct pid *sk_peer_pid;