diff options
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 |
