Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328117
b: refs/heads/master
c: e2bcabe
h: refs/heads/master
i:
  328115: 4dcd243
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 27, 2012
1 parent 4fa87b0 commit 9b196d6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f54ba7798848ce1385a71b36a2c997422c82220a
refs/heads/master: e2bcabec6ea5ba30dd2097dc1566e9957d14117c
2 changes: 0 additions & 2 deletions trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -2229,8 +2229,6 @@ extern int net_msg_warn;
extern __u32 sysctl_wmem_max;
extern __u32 sysctl_rmem_max;

extern void sk_init(void);

extern int sysctl_optmem_max;

extern __u32 sysctl_wmem_default;
Expand Down
13 changes: 0 additions & 13 deletions trunk/net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1464,19 +1464,6 @@ void sk_setup_caps(struct sock *sk, struct dst_entry *dst)
}
EXPORT_SYMBOL_GPL(sk_setup_caps);

void __init sk_init(void)
{
if (totalram_pages <= 4096) {
sysctl_wmem_max = 32767;
sysctl_rmem_max = 32767;
sysctl_wmem_default = 32767;
sysctl_rmem_default = 32767;
} else if (totalram_pages >= 131072) {
sysctl_wmem_max = 131071;
sysctl_rmem_max = 131071;
}
}

/*
* Simple resource managers for sockets.
*/
Expand Down
6 changes: 0 additions & 6 deletions trunk/net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -2600,12 +2600,6 @@ static int __init sock_init(void)
if (err)
goto out;

/*
* Initialize sock SLAB cache.
*/

sk_init();

/*
* Initialize skbuff SLAB cache
*/
Expand Down

0 comments on commit 9b196d6

Please sign in to comment.