RDMA: Use GID from the ib_gid_attr during the add_gid() callback
Now that ib_gid_attr contains the GID, make use of that in the add_gid() callback functions for the provider drivers to simplify the add_gid() implementations. Signed-off-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:

committed by
Jason Gunthorpe

parent
b150c3862d
commit
f4df9a7c34
@@ -510,12 +510,11 @@ static int set_roce_addr(struct mlx5_ib_dev *dev, u8 port_num,
|
||||
vlan_id, port_num);
|
||||
}
|
||||
|
||||
static int mlx5_ib_add_gid(const union ib_gid *gid,
|
||||
const struct ib_gid_attr *attr,
|
||||
static int mlx5_ib_add_gid(const struct ib_gid_attr *attr,
|
||||
__always_unused void **context)
|
||||
{
|
||||
return set_roce_addr(to_mdev(attr->device), attr->port_num,
|
||||
attr->index, gid, attr);
|
||||
attr->index, &attr->gid, attr);
|
||||
}
|
||||
|
||||
static int mlx5_ib_del_gid(const struct ib_gid_attr *attr,
|
||||
|
Reference in New Issue
Block a user