[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <49214C74.3020303@cosmosbay.com>
Date: Mon, 17 Nov 2008 11:50:28 +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: [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 "af_unix_inuse.patch" of type "text/plain" (680 bytes)
Powered by blists - more mailing lists