]> git.baikalelectronics.ru Git - kernel.git/commit
sock: allocate skbs from optmem
authorWillem de Bruijn <willemb@google.com>
Thu, 3 Aug 2017 20:29:37 +0000 (16:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 04:37:29 +0000 (21:37 -0700)
commite7d6460ea0913492811fd830a990f9796d13b4e2
treee9c2bbb059a118f41a5acf90e2a349ab704d8863
parent0a79c217c26b38d82912dcc9232e1f9fe58c756e
sock: allocate skbs from optmem

Add sock_omalloc and sock_ofree to be able to allocate control skbs,
for instance for looping errors onto sk_error_queue.

The transmit budget (sk_wmem_alloc) is involved in transmit skb
shaping, most notably in TCP Small Queues. Using this budget for
control packets would impact transmission.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c