* [PATCH] netprio_cgroup: define sk_cgrp_prioidx only if NETPRIO_CGROUP is enabled
@ 2012-12-26 6:48 Li Zefan
[not found] ` <50DA9DB8.6080506-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Li Zefan @ 2012-12-26 6:48 UTC (permalink / raw)
To: David Miller; +Cc: Neil Horman, LKML, netdev-u79uwXL29TY76Z2rM5mHXA, Cgroups
sock->sk_cgrp_prioidx won't be used at all if CONFIG_NETPRIO_CGROUP=n.
Signed-off-by: Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
---
include/net/sock.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/net/sock.h b/include/net/sock.h
index 93a6745..182ca99 100644
--- 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;
-#ifdef CONFIG_CGROUPS
+#if IS_ENABLED(CONFIG_NETPRIO_CGROUP)
__u32 sk_cgrp_prioidx;
#endif
struct pid *sk_peer_pid;
--
1.8.0.2
^ permalink raw reply related [flat|nested] 3+ messages in thread[parent not found: <50DA9DB8.6080506-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH] netprio_cgroup: define sk_cgrp_prioidx only if NETPRIO_CGROUP is enabled [not found] ` <50DA9DB8.6080506-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> @ 2012-12-26 18:03 ` Neil Horman [not found] ` <20121226180339.GB10793-0o1r3XBGOEbbgkc5XkKeNuvMHUBZFtU3YPYVAmT7z5s@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Neil Horman @ 2012-12-26 18:03 UTC (permalink / raw) To: Li Zefan; +Cc: David Miller, LKML, netdev-u79uwXL29TY76Z2rM5mHXA, Cgroups On Wed, Dec 26, 2012 at 02:48:24PM +0800, Li Zefan wrote: > sock->sk_cgrp_prioidx won't be used at all if CONFIG_NETPRIO_CGROUP=n. > > Signed-off-by: Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> Acked-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> > --- > include/net/sock.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/net/sock.h b/include/net/sock.h > index 93a6745..182ca99 100644 > --- 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; > -#ifdef CONFIG_CGROUPS > +#if IS_ENABLED(CONFIG_NETPRIO_CGROUP) > __u32 sk_cgrp_prioidx; > #endif > struct pid *sk_peer_pid; > -- > 1.8.0.2 > > ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20121226180339.GB10793-0o1r3XBGOEbbgkc5XkKeNuvMHUBZFtU3YPYVAmT7z5s@public.gmane.org>]
* Re: [PATCH] netprio_cgroup: define sk_cgrp_prioidx only if NETPRIO_CGROUP is enabled [not found] ` <20121226180339.GB10793-0o1r3XBGOEbbgkc5XkKeNuvMHUBZFtU3YPYVAmT7z5s@public.gmane.org> @ 2012-12-26 22:16 ` David Miller 0 siblings, 0 replies; 3+ messages in thread From: David Miller @ 2012-12-26 22:16 UTC (permalink / raw) To: nhorman-2XuSBdqkA4R54TAoqtyWWQ Cc: lizefan-hv44wF8Li93QT0dZR+AlfA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, cgroups-u79uwXL29TY76Z2rM5mHXA From: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> Date: Wed, 26 Dec 2012 13:03:39 -0500 > On Wed, Dec 26, 2012 at 02:48:24PM +0800, Li Zefan wrote: >> sock->sk_cgrp_prioidx won't be used at all if CONFIG_NETPRIO_CGROUP=n. >> >> Signed-off-by: Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> > Acked-by: Neil Horman <nhorman-2XuSBdqkA4R54TAoqtyWWQ@public.gmane.org> Applied, thanks. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-12-26 22:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-26 6:48 [PATCH] netprio_cgroup: define sk_cgrp_prioidx only if NETPRIO_CGROUP is enabled Li Zefan
[not found] ` <50DA9DB8.6080506-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2012-12-26 18:03 ` Neil Horman
[not found] ` <20121226180339.GB10793-0o1r3XBGOEbbgkc5XkKeNuvMHUBZFtU3YPYVAmT7z5s@public.gmane.org>
2012-12-26 22:16 ` David Miller
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).