• D
    rxrpc: Calculate serial skew on packet reception · 563ea7d5
    David Howells 提交于
    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: NDavid Howells <dhowells@redhat.com>
    563ea7d5
call_event.c 32.5 KB