Lines Matching refs:mgids
223 struct mlx5_reserved_gids *mgids; in mlx5r_add_gid_macsec_operations() local
270 mgids = &dev->port[attr->port_num - 1].reserved_gids[physical_gid->index]; in mlx5r_add_gid_macsec_operations()
271 mgids->macsec_index = attr->index; in mlx5r_add_gid_macsec_operations()
272 mgids->physical_gid = physical_gid; in mlx5r_add_gid_macsec_operations()
292 mgids->macsec_index = -1; in mlx5r_add_gid_macsec_operations()
306 struct mlx5_reserved_gids *mgids; in mlx5r_del_gid_macsec_operations() local
318 mgids = &dev->port[attr->port_num - 1].reserved_gids[attr->index]; in mlx5r_del_gid_macsec_operations()
319 if (mgids->macsec_index != -1) { /* Checking if physical gid has ambiguous IP */ in mlx5r_del_gid_macsec_operations()
320 rdma_put_gid_attr(mgids->physical_gid); in mlx5r_del_gid_macsec_operations()
321 mgids->macsec_index = -1; in mlx5r_del_gid_macsec_operations()
342 mgids = &dev->port[attr->port_num - 1].reserved_gids[i]; in mlx5r_del_gid_macsec_operations()
343 if (mgids->macsec_index == attr->index) { in mlx5r_del_gid_macsec_operations()
344 const struct ib_gid_attr *physical_gid = mgids->physical_gid; in mlx5r_del_gid_macsec_operations()
352 mgids->macsec_index = -1; in mlx5r_del_gid_macsec_operations()