projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf52eb
)
net/smc: drop messages when link state is inactive
author
Karsten Graul
<kgraul@linux.ibm.com>
Tue, 15 May 2018 15:05:02 +0000
(17:05 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 16 May 2018 15:49:20 +0000
(11:49 -0400)
Drop incoming messages when the link is flagged as inactive.
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_llc.c
patch
|
blob
|
blame
|
history
diff --git
a/net/smc/smc_llc.c
b/net/smc/smc_llc.c
index 5d7926cc472c79d71b9ec35920b12e2fa2a18eec..5800a6b43d830018ffc91a4272190508e8c9f233 100644
(file)
--- a/
net/smc/smc_llc.c
+++ b/
net/smc/smc_llc.c
@@
-548,6
+548,8
@@
static void smc_llc_rx_handler(struct ib_wc *wc, void *buf)
return; /* short message */
if (llc->raw.hdr.length != sizeof(*llc))
return; /* invalid message */
+ if (link->state == SMC_LNK_INACTIVE)
+ return; /* link not active, drop msg */
switch (llc->raw.hdr.common.type) {
case SMC_LLC_TEST_LINK: