]> 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)
commite81e3c884ed0e02d6a09b0ab3a7e52fc1a209141
treedc4d16c101e0296b1c209679bf4a5c5b29a91de9
parentd79a95bd1cc114ea4c0671398f621ef3abf1a223
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