Home
last modified time | relevance | path

Searched refs:port_gid_table (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/infiniband/hw/mlx4/
Dmain.c259 struct mlx4_port_gid_table *port_gid_table; in mlx4_ib_add_gid() local
280 port_gid_table = &iboe->gids[attr->port_num - 1]; in mlx4_ib_add_gid()
283 if (!memcmp(&port_gid_table->gids[i].gid, in mlx4_ib_add_gid()
285 port_gid_table->gids[i].gid_type == attr->gid_type && in mlx4_ib_add_gid()
286 port_gid_table->gids[i].vlan_id == vlan_id) { in mlx4_ib_add_gid()
290 if (free < 0 && rdma_is_zero_gid(&port_gid_table->gids[i].gid)) in mlx4_ib_add_gid()
298 port_gid_table->gids[free].ctx = kmalloc(sizeof(*port_gid_table->gids[free].ctx), GFP_ATOMIC); in mlx4_ib_add_gid()
299 if (!port_gid_table->gids[free].ctx) { in mlx4_ib_add_gid()
302 *context = port_gid_table->gids[free].ctx; in mlx4_ib_add_gid()
303 port_gid_table->gids[free].gid = attr->gid; in mlx4_ib_add_gid()
[all …]
Dqp.c2998 struct mlx4_port_gid_table *port_gid_table; in fill_gid_by_hw_index() local
3001 port_gid_table = &iboe->gids[port_num - 1]; in fill_gid_by_hw_index()
3003 memcpy(gid, &port_gid_table->gids[index].gid, sizeof(*gid)); in fill_gid_by_hw_index()
3004 *gid_type = port_gid_table->gids[index].gid_type; in fill_gid_by_hw_index()