Home
last modified time | relevance | path

Searched refs:gid_attr (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/core/
Droce_gid_mgmt.c55 struct ib_gid_attr gid_attr; member
100 struct ib_gid_attr *gid_attr) in update_gid() argument
107 gid_attr->gid_type = i; in update_gid()
111 gid, gid_attr); in update_gid()
115 gid, gid_attr); in update_gid()
287 struct ib_gid_attr gid_attr; in update_gid_ip() local
290 memset(&gid_attr, 0, sizeof(gid_attr)); in update_gid_ip()
291 gid_attr.ndev = ndev; in update_gid_ip()
293 update_gid(gid_op, ib_dev, port, &gid, &gid_attr); in update_gid_ip()
385 struct ib_gid_attr gid_attr = {.ndev = ndev}; in enum_netdev_ipv6_ips() local
[all …]
Duverbs_std_types_device.c371 const struct ib_gid_attr *gid_attr; in UVERBS_HANDLER() local
403 gid_attr = rdma_get_gid_attr(ib_dev, port_num, gid_index); in UVERBS_HANDLER()
404 if (IS_ERR(gid_attr)) in UVERBS_HANDLER()
405 return PTR_ERR(gid_attr); in UVERBS_HANDLER()
407 memcpy(&entry.gid, &gid_attr->gid, sizeof(gid_attr->gid)); in UVERBS_HANDLER()
408 entry.gid_index = gid_attr->index; in UVERBS_HANDLER()
409 entry.port_num = gid_attr->port_num; in UVERBS_HANDLER()
410 entry.gid_type = gid_attr->gid_type; in UVERBS_HANDLER()
413 ndev = rdma_read_gid_attr_ndev_rcu(gid_attr); in UVERBS_HANDLER()
429 rdma_put_gid_attr(gid_attr); in UVERBS_HANDLER()
Dcache.c843 struct ib_gid_attr gid_attr; in ib_cache_gid_set_default_gid() local
850 memset(&gid_attr, 0, sizeof(gid_attr)); in ib_cache_gid_set_default_gid()
851 gid_attr.ndev = ndev; in ib_cache_gid_set_default_gid()
857 gid_attr.gid_type = gid_type; in ib_cache_gid_set_default_gid()
862 &gid_attr, mask, true); in ib_cache_gid_set_default_gid()
865 &gid_attr, mask, true); in ib_cache_gid_set_default_gid()
1264 const struct ib_gid_attr *gid_attr; in rdma_query_gid_table() local
1282 gid_attr = &table->data_vec[i]->attr; in rdma_query_gid_table()
1284 memcpy(&entries->gid, &gid_attr->gid, in rdma_query_gid_table()
1285 sizeof(gid_attr->gid)); in rdma_query_gid_table()
[all …]
Dsysfs.c361 static size_t print_ndev(const struct ib_gid_attr *gid_attr, char *buf) in print_ndev() argument
367 ndev = rcu_dereference(gid_attr->ndev); in print_ndev()
374 static size_t print_gid_type(const struct ib_gid_attr *gid_attr, char *buf) in print_gid_type() argument
376 return sprintf(buf, "%s\n", ib_cache_gid_type_str(gid_attr->gid_type)); in print_gid_type()
381 size_t (*print)(const struct ib_gid_attr *gid_attr, char *buf)) in _show_port_gid_attr() argument
385 const struct ib_gid_attr *gid_attr; in _show_port_gid_attr() local
388 gid_attr = rdma_get_gid_attr(p->ibdev, p->port_num, tab_attr->index); in _show_port_gid_attr()
389 if (IS_ERR(gid_attr)) in _show_port_gid_attr()
393 ret = print(gid_attr, buf); in _show_port_gid_attr()
394 rdma_put_gid_attr(gid_attr); in _show_port_gid_attr()
[all …]
Dsa_query.c1220 const struct ib_gid_attr *gid_attr) in init_ah_attr_grh_fields() argument
1224 if (!gid_attr) { in init_ah_attr_grh_fields()
1225 gid_attr = rdma_find_gid_by_port(device, &rec->sgid, type, in init_ah_attr_grh_fields()
1227 if (IS_ERR(gid_attr)) in init_ah_attr_grh_fields()
1228 return PTR_ERR(gid_attr); in init_ah_attr_grh_fields()
1230 rdma_hold_gid_attr(gid_attr); in init_ah_attr_grh_fields()
1235 gid_attr); in init_ah_attr_grh_fields()
1258 const struct ib_gid_attr *gid_attr) in ib_init_ah_attr_from_path() argument
1269 ret = roce_resolve_route_from_path(rec, gid_attr); in ib_init_ah_attr_from_path()
1287 rec, ah_attr, gid_attr); in ib_init_ah_attr_from_path()
Dverbs.c683 const struct ib_gid_attr *gid_attr, in find_gid_index() argument
690 if (ctx->gid_type != gid_attr->gid_type) in find_gid_index()
693 ret = rdma_read_gid_l2_fields(gid_attr, &vlan_id, NULL); in find_gid_index()
Dcm.c2079 const struct ib_gid_attr *gid_attr; in cm_req_handler() local
2149 gid_attr = grh->sgid_attr; in cm_req_handler()
2151 if (gid_attr && in cm_req_handler()
2155 sa_conv_gid_to_pathrec_type(gid_attr->gid_type); in cm_req_handler()
2171 ret = cm_init_av_by_path(&work->path[0], gid_attr, &cm_id_priv->av, in cm_req_handler()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dah.c81 const struct ib_gid_attr *gid_attr; in create_iboe_ah() local
100 gid_attr = ah_attr->grh.sgid_attr; in create_iboe_ah()
101 if (gid_attr) { in create_iboe_ah()
102 ret = rdma_read_gid_l2_fields(gid_attr, &vlan_tag, in create_iboe_ah()
107 ret = mlx4_ib_gid_index_to_real_index(ibdev, gid_attr); in create_iboe_ah()
Dqp.c2078 const struct ib_gid_attr *gid_attr = NULL; in __mlx4_ib_modify_qp() local
2264 gid_attr = attr->ah_attr.grh.sgid_attr; in __mlx4_ib_modify_qp()
2265 err = rdma_read_gid_l2_fields(gid_attr, &vlan, in __mlx4_ib_modify_qp()
2280 u8 qpc_roce_mode = gid_type_to_qpc(gid_attr->gid_type); in __mlx4_ib_modify_qp()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_recv.c315 const struct ib_gid_attr *gid_attr; in rxe_chk_dgid() local
333 gid_attr = rdma_find_gid_by_port(&rxe->ib_dev, pdgid, in rxe_chk_dgid()
336 if (IS_ERR(gid_attr)) in rxe_chk_dgid()
337 return PTR_ERR(gid_attr); in rxe_chk_dgid()
339 rdma_put_gid_attr(gid_attr); in rxe_chk_dgid()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qedr/
Dverbs.c1136 const struct ib_gid_attr *gid_attr; in get_gid_info_from_table() local
1143 gid_attr = grh->sgid_attr; in get_gid_info_from_table()
1144 ret = rdma_read_gid_l2_fields(gid_attr, &qp_params->vlan_id, NULL); in get_gid_info_from_table()
1148 nw_type = rdma_gid_attr_network_type(gid_attr); in get_gid_info_from_table()
1151 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1161 memcpy(&qp_params->sgid.bytes[0], &gid_attr->gid.raw[0], in get_gid_info_from_table()
1171 ipv4_addr = qedr_get_ipv4_from_gid(gid_attr->gid.raw); in get_gid_info_from_table()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c4412 const struct ib_gid_attr *gid_attr = NULL; in hns_roce_v2_set_path() local
4426 gid_attr = attr->ah_attr.grh.sgid_attr; in hns_roce_v2_set_path()
4427 ret = rdma_read_gid_l2_fields(gid_attr, &vlan_id, NULL); in hns_roce_v2_set_path()
4431 if (gid_attr) in hns_roce_v2_set_path()
4432 is_udp = (gid_attr->gid_type == in hns_roce_v2_set_path()