]> git.baikalelectronics.ru Git - kernel.git/commit
net: allow per netns sysctl_rmem and sysctl_wmem for protos
authorEric Dumazet <edumazet@google.com>
Tue, 7 Nov 2017 08:29:27 +0000 (00:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Nov 2017 05:34:58 +0000 (14:34 +0900)
commitd1fc960ef8239c05cf08f681f621eb3031ec12cf
treeead847c4636ae85b77a1a415b53b8bf737000f4e
parent0d5737b669ec076033c9e5ef6a8da07254fddf10
net: allow per netns sysctl_rmem and sysctl_wmem for protos

As we want to gradually implement per netns sysctl_rmem and sysctl_wmem
on per protocol basis, add two new fields in struct proto,
and two new helpers : sk_get_wmem0() and sk_get_rmem0()

First user will be TCP. Then UDP and SCTP can be easily converted,
while DECNET probably wont get this support.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
include/trace/events/sock.h
net/core/sock.c