Searched refs:port_gid_table (Results 1 – 2 of 2) sorted by relevance
260 struct mlx4_port_gid_table *port_gid_table; in mlx4_ib_add_gid() local281 port_gid_table = &iboe->gids[attr->port_num - 1]; in mlx4_ib_add_gid()284 if (!memcmp(&port_gid_table->gids[i].gid, in mlx4_ib_add_gid()286 port_gid_table->gids[i].gid_type == attr->gid_type && in mlx4_ib_add_gid()287 port_gid_table->gids[i].vlan_id == vlan_id) { in mlx4_ib_add_gid()291 if (free < 0 && rdma_is_zero_gid(&port_gid_table->gids[i].gid)) in mlx4_ib_add_gid()299 port_gid_table->gids[free].ctx = kmalloc(sizeof(*port_gid_table->gids[free].ctx), GFP_ATOMIC); in mlx4_ib_add_gid()300 if (!port_gid_table->gids[free].ctx) { in mlx4_ib_add_gid()303 *context = port_gid_table->gids[free].ctx; in mlx4_ib_add_gid()304 memcpy(&port_gid_table->gids[free].gid, in mlx4_ib_add_gid()[all …]
2958 struct mlx4_port_gid_table *port_gid_table; in fill_gid_by_hw_index() local2961 port_gid_table = &iboe->gids[port_num - 1]; in fill_gid_by_hw_index()2963 memcpy(gid, &port_gid_table->gids[index].gid, sizeof(*gid)); in fill_gid_by_hw_index()2964 *gid_type = port_gid_table->gids[index].gid_type; in fill_gid_by_hw_index()