]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: rxrpc: change call to sock_recv_ts_and_drops() on rxrpc recvmsg to sock_recv_tim...
authorEyal Birger <eyal.birger@gmail.com>
Sun, 1 Mar 2015 12:58:27 +0000 (14:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2015 05:19:29 +0000 (00:19 -0500)
commit2cfdf9fcb85bf6c0bb4556384ba800b9f443f601
tree7a465e8f0cfb8cf26b4601348038e0a24bece904
parent6368c235777456ddaeaa61360186d8d03a61cb18
net: rxrpc: change call to sock_recv_ts_and_drops() on rxrpc recvmsg to sock_recv_timestamp()

Commit 3b885787ea4112 ("net: Generalize socket rx gap / receive queue overflow cmsg")
allowed receiving packet dropcount information as a socket level option.
RXRPC sockets recvmsg function was changed to support this by calling
sock_recv_ts_and_drops() instead of sock_recv_timestamp().

However, protocol families wishing to receive dropcount should call
sock_queue_rcv_skb() or set the dropcount specifically (as done
in packet_rcv()). This was not done for rxrpc and thus this feature
never worked on these sockets.

Formalizing this by not calling sock_recv_ts_and_drops() in rxrpc as
part of an effort to move skb->dropcount into skb->cb[]

Signed-off-by: Eyal Birger <eyal.birger@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/ar-recvmsg.c