diff options
| author | Alexandra Winter <wintera@linux.ibm.com> | 2025-09-18 13:04:58 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2025-09-23 11:13:22 +0200 |
| commit | 719c3b67bb7ea95bb8158b03c75641c8fc8f94a0 (patch) | |
| tree | 54d471a7530874c30692c09f7415e1ed9c39d258 /include/linux | |
| parent | 92a0f7bb081dde6e88368816b8ba51352ddabb1d (diff) | |
dibs: Move query_remote_gid() to dibs_dev_ops
Provide the dibs_dev_ops->query_remote_gid() in ism and dibs_loopback
dibs_devices. And call it in smc dibs_client.
Reviewed-by: Julian Ruess <julianr@linux.ibm.com>
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Link: https://patch.msgid.link/20250918110500.1731261-13-wintera@linux.ibm.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dibs.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/dibs.h b/include/linux/dibs.h index 166148fb8d76..c75a40fe3039 100644 --- a/include/linux/dibs.h +++ b/include/linux/dibs.h @@ -134,6 +134,20 @@ struct dibs_dev_ops { */ u16 (*get_fabric_id)(struct dibs_dev *dev); /** + * query_remote_gid() + * @dev: local dibs device + * @rgid: gid of remote dibs device + * @vid_valid: if zero, vid will be ignored; + * deprecated, ignored if device does not support vlan + * @vid: VLAN id; deprecated, ignored if device does not support vlan + * + * Query whether a remote dibs device is reachable via this local device + * and this vlan id. + * Return: 0 if remote gid is reachable. + */ + int (*query_remote_gid)(struct dibs_dev *dev, const uuid_t *rgid, + u32 vid_valid, u32 vid); + /** * add_vlan_id() - add dibs device to vlan (optional, deprecated) * @dev: dibs device * @vlan_id: vlan id |
