Re: [PATCH] per-cgroup tcp buffer limitation

From: Eric Dumazet
Date: Tue Sep 06 2011 - 22:39:02 EST


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 linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/