]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: optimize consumer cursor updates
authorUrsula Braun <ursula.braun@linux.ibm.com>
Wed, 18 Jul 2018 13:22:49 +0000 (15:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jul 2018 17:58:27 +0000 (10:58 -0700)
commit8297cdf76d5b11c5ca273ec612f5f6d354722e3e
tree0424d44df4eb59b5c47ed9dbfda4a0623ec2a91a
parentcdbcfbfe44552e556e3ac3737e308d462ea5c821
net/smc: optimize consumer cursor updates

The SMC protocol requires to send a separate consumer cursor update,
if it cannot be piggybacked to updates of the producer cursor.
Currently the decision to send a separate consumer cursor update
just considers the amount of data already received by the socket
program. It does not consider the amount of data already arrived, but
not yet consumed by the receiver. Basing the decision on the
difference between already confirmed and already arrived data
(instead of difference between already confirmed and already consumed
data), may lead to a somewhat earlier consumer cursor update send in
fast unidirectional traffic scenarios, and thus to better throughput.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Suggested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_tx.c