net/sock: factor out dequeue/peek with offset code
authorPaolo Abeni <pabeni@redhat.com>
Tue, 16 May 2017 09:20:13 +0000 (11:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 May 2017 19:41:29 +0000 (15:41 -0400)
commit65101aeca52241a05e66f23c96eb896c9412718d
tree3f2a5568415ab23f7d026d51c2a634427f268598
parent9dca599b7fa44f01f3635380767da1a5782e4c65
net/sock: factor out dequeue/peek with offset code

And update __sk_queue_drop_skb() to work on the specified queue.
This will help the udp protocol to use an additional private
rx queue in a later patch.

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/linux/skbuff.h
include/net/sock.h
net/core/datagram.c