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)
commitf8c3bf00d440df2bc2c3f669d460868d9ba67226
treec8f36d06774569ef6cc73ad51651d98f25d1cadb
parent8b1efc0f83f1f75b8f85c70d2211007de8fd7633
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