diff options
author | Stefan Raspl <raspl@linux.ibm.com> | 2023-01-23 19:17:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-25 10:46:48 +0100 |
commit | 9de4df7b6be1cfca500f8ba21137d53eec45418a (patch) | |
tree | 85ed634e832e467d61bcfdda026031bdd2cccc3a /include/net/smc.h | |
parent | net/smc: Register SMC-D as ISM client (diff) | |
download | linux-9de4df7b6be1cfca500f8ba21137d53eec45418a.tar.xz linux-9de4df7b6be1cfca500f8ba21137d53eec45418a.zip |
net/smc: Separate SMC-D and ISM APIs
We separate the code implementing the struct smcd_ops API in the ISM
device driver from the functions that may be used by other exploiters of
ISM devices.
Note: We start out small, and don't offer the whole breadth of the ISM
device for public use, as many functions are specific to or likely only
ever used in the context of SMC-D.
This is the third part of a bigger overhaul of the interfaces between SMC
and ISM.
Signed-off-by: Stefan Raspl <raspl@linux.ibm.com>
Signed-off-by: Jan Karcher <jaka@linux.ibm.com>
Signed-off-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/smc.h')
-rw-r--r-- | include/net/smc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/smc.h b/include/net/smc.h index 151aa54d9ad2..d5f8f18169d7 100644 --- a/include/net/smc.h +++ b/include/net/smc.h @@ -66,14 +66,15 @@ struct smcd_ops { bool sf, unsigned int offset, void *data, unsigned int size); u8* (*get_system_eid)(void); + u64 (*get_local_gid)(struct smcd_dev *dev); u16 (*get_chid)(struct smcd_dev *dev); }; struct smcd_dev { const struct smcd_ops *ops; struct device dev; + struct ism_dev *ism; void *priv; - u64 local_gid; struct list_head list; spinlock_t lock; struct smc_connection **conn; |