]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Calculate serial skew on packet reception
authorDavid Howells <dhowells@redhat.com>
Tue, 23 Aug 2016 14:27:25 +0000 (15:27 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 23 Aug 2016 15:02:35 +0000 (16:02 +0100)
commit859c2962fba01e394d170a60afc9356b068597c5
tree0a440b2f02e5a16d30058aa8b0f8fb10e8584b35
parent40cbf56633a2d15fa2425fe9b5a7e1c65bfaf95f
rxrpc: Calculate serial skew on packet reception

Calculate the serial number skew in the data_ready handler when a packet
has been received and a connection looked up.  The skew is cached in the
sk_buff's priority field.

The connection highest received serial number is updated at this time also.
This can be done without locks or atomic instructions because, at this
point, the code is serialised by the socket.

This generates more accurate skew data because if the packet is offloaded
to a work queue before this is determined, more packets may come in,
bumping the highest serial number and thereby increasing the apparent skew.

This also removes some unnecessary atomic ops.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-internal.h
net/rxrpc/call_event.c
net/rxrpc/input.c
net/rxrpc/proc.c
net/rxrpc/skbuff.c