]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: keep static copy of system EID
authorKarsten Graul <kgraul@linux.ibm.com>
Tue, 14 Sep 2021 08:35:06 +0000 (10:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Sep 2021 11:49:10 +0000 (12:49 +0100)
commit508502e87c5811f618308ee3e7375cf68692c28d
treedc4d16c101e0296b1c209679bf4a5c5b29a91de9
parentc5ff3f43fb08465a69fb4f8c54f52735ce8f4ec2
net/smc: keep static copy of system EID

The system EID is retrieved using an registered ISM device each time
when needed. This adds some unnecessary complexity at all places where
the system EID is needed, but no ISM device is at hand.
Simplify the code and save the system EID in a static variable in
smc_ism.c.

Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Reviewed-by: Guvenc Gulce <guvenc@linux.ibm.com>
Signed-off-by: Guvenc Gulce <guvenc@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c
net/smc/smc_clc.c
net/smc/smc_core.c
net/smc/smc_ism.c
net/smc/smc_ism.h