]> 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)
commit04c574686fa5cfd797c3b59a09e1a5c3c4c0c529
treec2331f49500785629623e61abc28fb2ea85037dd
parent0bf3b3b76b998a5e271d26ca1ab7747c44239542
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