Lines Matching refs:physical_gid
9 const struct ib_gid_attr *physical_gid; member
222 const struct ib_gid_attr *physical_gid; in mlx5r_add_gid_macsec_operations() local
260 physical_gid = rdma_find_gid(attr->device, &attr->gid, in mlx5r_add_gid_macsec_operations()
262 if (!IS_ERR(physical_gid)) { in mlx5r_add_gid_macsec_operations()
263 ret = set_roce_addr(to_mdev(physical_gid->device), in mlx5r_add_gid_macsec_operations()
264 physical_gid->port_num, in mlx5r_add_gid_macsec_operations()
265 physical_gid->index, NULL, in mlx5r_add_gid_macsec_operations()
266 physical_gid); in mlx5r_add_gid_macsec_operations()
270 mgids = &dev->port[attr->port_num - 1].reserved_gids[physical_gid->index]; in mlx5r_add_gid_macsec_operations()
272 mgids->physical_gid = physical_gid; in mlx5r_add_gid_macsec_operations()
280 if (ret && !IS_ERR(physical_gid)) in mlx5r_add_gid_macsec_operations()
290 set_roce_addr(to_mdev(physical_gid->device), physical_gid->port_num, in mlx5r_add_gid_macsec_operations()
291 physical_gid->index, &physical_gid->gid, physical_gid); in mlx5r_add_gid_macsec_operations()
294 rdma_put_gid_attr(physical_gid); in mlx5r_add_gid_macsec_operations()
320 rdma_put_gid_attr(mgids->physical_gid); in mlx5r_del_gid_macsec_operations()
344 const struct ib_gid_attr *physical_gid = mgids->physical_gid; in mlx5r_del_gid_macsec_operations() local
346 set_roce_addr(to_mdev(physical_gid->device), in mlx5r_del_gid_macsec_operations()
347 physical_gid->port_num, in mlx5r_del_gid_macsec_operations()
348 physical_gid->index, in mlx5r_del_gid_macsec_operations()
349 &physical_gid->gid, physical_gid); in mlx5r_del_gid_macsec_operations()
351 rdma_put_gid_attr(physical_gid); in mlx5r_del_gid_macsec_operations()