diff options
author | Ursula Braun <ubraun@linux.ibm.com> | 2020-09-26 13:44:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-29 01:19:03 +0300 |
commit | 8caaccf521c160d231587091f1f5e8aef2dd0a5e (patch) | |
tree | d77bf9ff836bc76915cfc2280e3d3dbd74a93e42 /net/smc/smc_ism.c | |
parent | 201091ebb2a161a0e10aab36186690b332941f6a (diff) | |
download | linux-8caaccf521c160d231587091f1f5e8aef2dd0a5e.tar.xz |
net/smc: introduce CHID callback for ISM devices
With SMCD version 2 the CHIDs of ISM devices are needed for the
CLC handshake.
This patch provides the new callback to retrieve the CHID of an
ISM device.
Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Signed-off-by: Karsten Graul <kgraul@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_ism.c')
-rw-r--r-- | net/smc/smc_ism.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c index 63c3dd5578bf..c5a5b70251b6 100644 --- a/net/smc/smc_ism.c +++ b/net/smc/smc_ism.c @@ -46,6 +46,11 @@ void smc_ism_get_system_eid(struct smcd_dev *smcd, u8 **eid) smcd->ops->get_system_eid(smcd, eid); } +u16 smc_ism_get_chid(struct smcd_dev *smcd) +{ + return smcd->ops->get_chid(smcd); +} + /* Set a connection using this DMBE. */ void smc_ism_set_conn(struct smc_connection *conn) { |