]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Cache the congestion window setting
authorDavid Howells <dhowells@redhat.com>
Wed, 14 Jun 2017 16:56:50 +0000 (17:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jun 2017 19:42:45 +0000 (15:42 -0400)
commit635e7bd12d435905154fda50a06c312fbb495856
tree103d3fb8a7c99b6c9ebaeaf20d2c891174d72f48
parent208e4df7f2c28d81355ea0c089d766a559d3bf51
rxrpc: Cache the congestion window setting

Cache the congestion window setting that was determined during a call's
transmission phase when it finishes so that it can be used by the next call
to the same peer, thereby shortcutting the slow-start algorithm.

The value is stored in the rxrpc_peer struct and is accessed without
locking.  Each call takes the value that happens to be there when it starts
and just overwrites the value when it finishes.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/ar-internal.h
net/rxrpc/call_accept.c
net/rxrpc/call_object.c
net/rxrpc/conn_client.c
net/rxrpc/conn_object.c
net/rxrpc/peer_object.c