]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: optimize consumer cursor updates
authorUrsula Braun <ursula.braun@de.ibm.com>
Thu, 28 Jun 2018 17:05:06 +0000 (19:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Jun 2018 11:42:25 +0000 (20:42 +0900)
commitec6dcf33c79b46b7a418fe8dcb96e31f1da92b49
treec9926ddd6e37961804a2ee7e9966ddeb5281d4e7
parentd2fb07e14e1d85eecf7a8ccb2145f58a3025d328
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