diff options
author | Karsten Graul <kgraul@linux.ibm.com> | 2021-09-14 10:35:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-14 13:49:10 +0200 |
commit | 11a26c59fc510091facd0d80236ac848da844830 (patch) | |
tree | dc4d16c101e0296b1c209679bf4a5c5b29a91de9 /net/smc/smc_ism.h | |
parent | net/smc: add support for user defined EIDs (diff) | |
download | linux-11a26c59fc510091facd0d80236ac848da844830.tar.xz linux-11a26c59fc510091facd0d80236ac848da844830.zip |
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>
Diffstat (limited to 'net/smc/smc_ism.h')
-rw-r--r-- | net/smc/smc_ism.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/smc/smc_ism.h b/net/smc/smc_ism.h index 113efc7352ed..004b22a13ffa 100644 --- a/net/smc/smc_ism.h +++ b/net/smc/smc_ism.h @@ -48,7 +48,7 @@ int smc_ism_unregister_dmb(struct smcd_dev *dev, struct smc_buf_desc *dmb_desc); int smc_ism_write(struct smcd_dev *dev, const struct smc_ism_position *pos, void *data, size_t len); int smc_ism_signal_shutdown(struct smc_link_group *lgr); -void smc_ism_get_system_eid(struct smcd_dev *dev, u8 **eid); +void smc_ism_get_system_eid(u8 **eid); u16 smc_ism_get_chid(struct smcd_dev *dev); bool smc_ism_is_v2_capable(void); void smc_ism_init(void); |