[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1315363120.3400.54.camel@edumazet-laptop>
Date: Wed, 07 Sep 2011 04:38:40 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: Greg Thelen <gthelen@...gle.com>
Cc: Glauber Costa <glommer@...allels.com>,
linux-kernel@...r.kernel.org, linux-mm@...ck.org,
containers@...ts.osdl.org, netdev@...r.kernel.org,
xemul@...allels.com, "David S. Miller" <davem@...emloft.net>,
Hiroyouki Kamezawa <kamezawa.hiroyu@...fujitsu.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>
Subject: Re: [PATCH] per-cgroup tcp buffer limitation
Le mardi 06 septembre 2011 à 15:12 -0700, Greg Thelen a écrit :
> >>> +#define sk_sockets_allocated(sk) \
> >>> +({ \
> >>> + struct percpu_counter *__p; \
> >>> + __p = (sk)->sk_prot->sockets_allocated(sk->sk_cgrp); \
> >>> + __p; \
> >>> +})
>
> Could this be simplified as (same applies to following few macros):
>
> static inline struct percpu_counter *sk_sockets_allocated(struct sock *sk)
> {
> return sk->sk_prot->sockets_allocated(sk->sk_cgrp);
> }
>
Please Greg, dont copy/paste huge sequence of code if you dont have
anymore comments.
Right before sending your mail, remove all parts that we already got in
previous mails.
Thanks
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists