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)
commit11a26c59fc510091facd0d80236ac848da844830
treedc4d16c101e0296b1c209679bf4a5c5b29a91de9
parentfa0866625543b4d8b3d026e4e0ef5ec25a453920
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