]> git.baikalelectronics.ru Git - kernel.git/commit
net/socket: factor out helpers for memory and queue manipulation
authorPaolo Abeni <pabeni@redhat.com>
Fri, 21 Oct 2016 11:55:45 +0000 (13:55 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Oct 2016 21:05:05 +0000 (17:05 -0400)
commitb6142aa4e4be073166f51e842634cce796a7e642
treec8f36d06774569ef6cc73ad51651d98f25d1cadb
parentc1d1a18b88580a221bcca6ab5864ca848333ee1f
net/socket: factor out helpers for memory and queue manipulation

Basic sock operations that udp code can use with its own
memory accounting schema. No functional change is introduced
in the existing APIs.

v4 -> v5:
  - avoid whitespace changes

v2 -> v4:
  - avoid exporting __sock_enqueue_skb

v1 -> v2:
  - avoid export sock_rmem_free

Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/datagram.c
net/core/sock.c