]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: reduce amount of status updates to peer
authorKarsten Graul <kgraul@linux.ibm.com>
Tue, 12 Feb 2019 15:29:53 +0000 (16:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 16:59:45 +0000 (11:59 -0500)
commit842b875398bda9bad9aa4a8d81c82c3fe10c593b
treec2331f49500785629623e61abc28fb2ea85037dd
parent98d39cb22798ec16ac62d984308411bdc484a0b0
net/smc: reduce amount of status updates to peer

In smc_cdc_msg_recv_action() the received cdc message is evaluated.
To reduce the number of messaged triggered by this evaluation the logic
is streamlined. For the write_blocked condition we do not need to send
a response immediately. The remaining conditions can be put together
into one if clause.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_cdc.c