[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49214D37.2090502@cosmosbay.com>
Date: Mon, 17 Nov 2008 11:53:43 +0100
From: Eric Dumazet <dada1@...mosbay.com>
To: "David S. Miller" <davem@...emloft.net>
CC: "Denis V. Lunev" <den@...nvz.org>,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [PATCH] net: make /proc/net/protocols namespace aware
Eric Dumazet a écrit :
> Converting /proc/net/protocols to be namespace aware is quite easy
> and permits us to use sock_prot_inuse_get().
>
> This provides seperate counters for each protocol. For example
> we can really count TCPv6 sockets and TCPv4 sockets, while previously,
> we had the same value, and this value was not namespace aware.
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
> ---
> net/core/sock.c | 27 +++++++++++++++++++++++----
> 1 files changed, 23 insertions(+), 4 deletions(-)
>
Oops wrong attached file... sorry
[PATCH] net: make /proc/net/protocols namespace aware
Converting /proc/net/protocols to be namespace aware is quite easy
and permits us to use sock_prot_inuse_get().
This provides seperate counters for each protocol. For example
we can really count TCPv6 sockets and TCPv4 sockets, while previously,
we had the same value, and this value was not namespace aware.
Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
---
net/core/sock.c | 27 +++++++++++++++++++++++----
1 files changed, 23 insertions(+), 4 deletions(-)
View attachment "protocols_pernet.patch" of type "text/plain" (1787 bytes)
Powered by blists - more mailing lists