mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[NETNS]: Introduce a netns_core structure.
There's already some stuff on the struct net, that should better be folded into netns_core structure. I'm making the per-proto inuse counter be per-net also, which is also a candidate for this, so introduce this structure and populate it a bit. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3edf8fa5cc
commit
8efa6e93cb
4 changed files with 22 additions and 11 deletions
|
@ -1375,7 +1375,7 @@ asmlinkage long sys_listen(int fd, int backlog)
|
|||
|
||||
sock = sockfd_lookup_light(fd, &err, &fput_needed);
|
||||
if (sock) {
|
||||
somaxconn = sock_net(sock->sk)->sysctl_somaxconn;
|
||||
somaxconn = sock_net(sock->sk)->core.sysctl_somaxconn;
|
||||
if ((unsigned)backlog > somaxconn)
|
||||
backlog = somaxconn;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue