roce 730 drivers/infiniband/core/addr.c if (rec->roce.route_resolved) roce 755 drivers/infiniband/core/addr.c rec->roce.route_resolved = true; roce 1603 drivers/infiniband/core/cm.c primary_path->roce.route_resolved = false; roce 1625 drivers/infiniband/core/cm.c alt_path->roce.route_resolved = false; roce 2001 drivers/infiniband/core/cm.c cm_id_priv->av.ah_attr.roce.dmac); roce 2773 drivers/infiniband/core/cma.c route->path_rec->roce.route_resolved = true; roce 1276 drivers/infiniband/core/sa_query.c memcpy(ah_attr->roce.dmac, sa_path_get_dmac(rec), ETH_ALEN); roce 742 drivers/infiniband/core/verbs.c ah_attr->roce.dmac); roce 747 drivers/infiniband/core/verbs.c ah_attr->roce.dmac, roce 1595 drivers/infiniband/core/verbs.c ip_eth_mc_map(addr, (char *)ah_attr->roce.dmac); roce 1598 drivers/infiniband/core/verbs.c (char *)ah_attr->roce.dmac); roce 692 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(ah->qplib_ah.dmac, ah_attr->roce.dmac, ETH_ALEN); roce 728 drivers/infiniband/hw/bnxt_re/ib_verbs.c memcpy(ah_attr->roce.dmac, ah->qplib_ah.dmac, ETH_ALEN); roce 1633 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp_attr->ah_attr.roce.dmac); roce 1807 drivers/infiniband/hw/bnxt_re/ib_verbs.c ether_addr_copy(qp_attr->ah_attr.roce.dmac, qplib_qp->ah.dmac); roce 60 drivers/infiniband/hw/hns/hns_roce_ah.c memcpy(ah->av.mac, ah_attr->roce.dmac, ETH_ALEN); roce 2896 drivers/infiniband/hw/hns/hns_roce_hw_v1.c dmac = (u8 *)attr->ah_attr.roce.dmac; roce 3718 drivers/infiniband/hw/hns/hns_roce_hw_v2.c dmac = (u8 *)attr->ah_attr.roce.dmac; roce 93 drivers/infiniband/hw/mlx4/ah.c memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); roce 1901 drivers/infiniband/hw/mlx4/qp.c memcpy(path->dmac, ah->roce.dmac, 6); roce 56 drivers/infiniband/hw/mlx5/ah.c memcpy(ah->av.rmac, ah_attr->roce.dmac, roce 57 drivers/infiniband/hw/mlx5/ah.c sizeof(ah_attr->roce.dmac)); roce 94 drivers/infiniband/hw/mlx5/ah.c memcpy(resp.dmac, ah_attr->roce.dmac, ETH_ALEN); roce 21 drivers/infiniband/hw/mlx5/ib_rep.c write_lock(&ibdev->port[vport_index].roce.netdev_lock); roce 22 drivers/infiniband/hw/mlx5/ib_rep.c ibdev->port[vport_index].roce.netdev = roce 24 drivers/infiniband/hw/mlx5/ib_rep.c write_unlock(&ibdev->port[vport_index].roce.netdev_lock); roce 56 drivers/infiniband/hw/mlx5/ib_rep.c ibdev->port[vport_index].roce.netdev = roce 76 drivers/infiniband/hw/mlx5/ib_rep.c write_lock(&port->roce.netdev_lock); roce 77 drivers/infiniband/hw/mlx5/ib_rep.c port->roce.netdev = NULL; roce 78 drivers/infiniband/hw/mlx5/ib_rep.c write_unlock(&port->roce.netdev_lock); roce 174 drivers/infiniband/hw/mlx5/main.c read_lock(&port->roce.netdev_lock); roce 178 drivers/infiniband/hw/mlx5/main.c read_unlock(&port->roce.netdev_lock); roce 180 drivers/infiniband/hw/mlx5/main.c return &port->roce; roce 182 drivers/infiniband/hw/mlx5/main.c read_unlock(&port->roce.netdev_lock); roce 191 drivers/infiniband/hw/mlx5/main.c struct mlx5_roce *roce = container_of(this, struct mlx5_roce, nb); roce 193 drivers/infiniband/hw/mlx5/main.c u8 port_num = roce->native_port_num; roce 197 drivers/infiniband/hw/mlx5/main.c ibdev = roce->dev; roce 207 drivers/infiniband/hw/mlx5/main.c write_lock(&roce->netdev_lock); roce 209 drivers/infiniband/hw/mlx5/main.c roce->netdev = ndev; roce 210 drivers/infiniband/hw/mlx5/main.c write_unlock(&roce->netdev_lock); roce 215 drivers/infiniband/hw/mlx5/main.c write_lock(&roce->netdev_lock); roce 216 drivers/infiniband/hw/mlx5/main.c if (roce->netdev == ndev) roce 217 drivers/infiniband/hw/mlx5/main.c roce->netdev = NULL; roce 218 drivers/infiniband/hw/mlx5/main.c write_unlock(&roce->netdev_lock); roce 233 drivers/infiniband/hw/mlx5/main.c roce = mlx5_get_rep_roce(ibdev, ndev, &port_num); roce 234 drivers/infiniband/hw/mlx5/main.c if (!roce) roce 236 drivers/infiniband/hw/mlx5/main.c if ((upper == ndev || (!upper && ndev == roce->netdev)) roce 245 drivers/infiniband/hw/mlx5/main.c if (roce->last_port_state == port_state) roce 248 drivers/infiniband/hw/mlx5/main.c roce->last_port_state = port_state; roce 288 drivers/infiniband/hw/mlx5/main.c read_lock(&ibdev->port[port_num - 1].roce.netdev_lock); roce 289 drivers/infiniband/hw/mlx5/main.c ndev = ibdev->port[port_num - 1].roce.netdev; roce 292 drivers/infiniband/hw/mlx5/main.c read_unlock(&ibdev->port[port_num - 1].roce.netdev_lock); roce 1965 drivers/infiniband/hw/mlx5/main.c 1, &dev->port[port].roce.tx_port_affinity)); roce 5143 drivers/infiniband/hw/mlx5/main.c if ((ll == IB_LINK_LAYER_INFINIBAND) || MLX5_CAP_GEN(dev->mdev, roce)) roce 5225 drivers/infiniband/hw/mlx5/main.c dev->port[port_num].roce.nb.notifier_call = mlx5_netdev_event; roce 5226 drivers/infiniband/hw/mlx5/main.c err = register_netdevice_notifier(&dev->port[port_num].roce.nb); roce 5228 drivers/infiniband/hw/mlx5/main.c dev->port[port_num].roce.nb.notifier_call = NULL; roce 5237 drivers/infiniband/hw/mlx5/main.c if (dev->port[port_num].roce.nb.notifier_call) { roce 5238 drivers/infiniband/hw/mlx5/main.c unregister_netdevice_notifier(&dev->port[port_num].roce.nb); roce 5239 drivers/infiniband/hw/mlx5/main.c dev->port[port_num].roce.nb.notifier_call = NULL; roce 5247 drivers/infiniband/hw/mlx5/main.c if (MLX5_CAP_GEN(dev->mdev, roce)) { roce 5260 drivers/infiniband/hw/mlx5/main.c if (MLX5_CAP_GEN(dev->mdev, roce)) roce 5269 drivers/infiniband/hw/mlx5/main.c if (MLX5_CAP_GEN(dev->mdev, roce)) roce 5886 drivers/infiniband/hw/mlx5/main.c ibdev->port[port_num].roce.last_port_state = IB_PORT_DOWN; roce 6160 drivers/infiniband/hw/mlx5/main.c rwlock_init(&dev->port[i].roce.netdev_lock); roce 6161 drivers/infiniband/hw/mlx5/main.c dev->port[i].roce.dev = dev; roce 6162 drivers/infiniband/hw/mlx5/main.c dev->port[i].roce.native_port_num = i + 1; roce 6163 drivers/infiniband/hw/mlx5/main.c dev->port[i].roce.last_port_state = IB_PORT_DOWN; roce 754 drivers/infiniband/hw/mlx5/mlx5_ib.h struct mlx5_roce roce; roce 2937 drivers/infiniband/hw/mlx5/qp.c memcpy(path->rmac, ah->roce.dmac, sizeof(ah->roce.dmac)); roce 3375 drivers/infiniband/hw/mlx5/qp.c 1, &dev->port[port_num].roce.tx_port_affinity) % roce 540 drivers/infiniband/hw/ocrdma/ocrdma.h memcpy(mac_addr, ah_attr->roce.dmac, ETH_ALEN); roce 437 drivers/infiniband/hw/qedr/qedr_roce_cm.c ether_addr_copy(udh->eth.dmac_h, ah_attr->roce.dmac); roce 286 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c memcpy(dst->roce.dmac, &src->dmac, ETH_ALEN); roce 299 drivers/infiniband/hw/vmw_pvrdma/pvrdma_misc.c memcpy(&dst->dmac, src->roce.dmac, sizeof(dst->dmac)); roce 539 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.c memcpy(ah->av.dmac, ah_attr->roce.dmac, ETH_ALEN); roce 41 drivers/infiniband/sw/rxe/rxe_av.c memcpy(av->dmac, attr->roce.dmac, ETH_ALEN); roce 2277 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c struct hnae3_handle *roce = &vport->roce; roce 2280 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->rinfo.num_vectors = vport->back->num_roce_msi; roce 2282 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (vport->back->num_msi_left < vport->roce.rinfo.num_vectors || roce 2286 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->rinfo.base_vector = vport->back->roce_base_vector; roce 2288 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->rinfo.netdev = nic->kinfo.netdev; roce 2289 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->rinfo.roce_io_base = vport->back->hw.io_base; roce 2291 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->pdev = nic->pdev; roce 2292 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->ae_algo = nic->ae_algo; roce 2293 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->numa_node_mask = nic->numa_node_mask; roce 2726 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c rhandle = &hdev->vport[i].roce; roce 3146 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c struct hnae3_handle *handle = &hdev->vport[i].roce; roce 3928 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c return container_of(handle, struct hclge_vport, roce); roce 8895 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c struct hnae3_client *client = vport->roce.client; roce 8910 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c ret = client->ops->init_instance(&vport->roce); roce 8938 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->roce_client->ops->uninit_instance(&vport->roce, 0); roce 8970 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c vport->roce.client = client; roce 8991 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c vport->roce.client = NULL; roce 9009 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c hdev->roce_client->ops->uninit_instance(&vport->roce, roce 9012 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c vport->roce.client = NULL; roce 915 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h struct hnae3_handle roce; roce 93 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c return container_of(handle, struct hclgevf_dev, roce); roce 438 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c struct hnae3_handle *rhandle = &hdev->roce; roce 2024 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c struct hnae3_handle *roce = &hdev->roce; roce 2027 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->rinfo.num_vectors = hdev->num_roce_msix; roce 2029 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c if (hdev->num_msi_left < roce->rinfo.num_vectors || roce 2033 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->rinfo.base_vector = hdev->roce_base_vector; roce 2035 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->rinfo.netdev = nic->kinfo.netdev; roce 2036 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->rinfo.roce_io_base = hdev->hw.io_base; roce 2038 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->pdev = nic->pdev; roce 2039 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->ae_algo = nic->ae_algo; roce 2040 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->numa_node_mask = nic->numa_node_mask; roce 2395 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c ret = client->ops->init_instance(&hdev->roce); roce 2428 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c hdev->roce.client = client; roce 2448 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c hdev->roce.client = NULL; roce 2459 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c hdev->roce_client->ops->uninit_instance(&hdev->roce, 0); roce 2461 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c hdev->roce.client = NULL; roce 297 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h struct hnae3_handle roce; roce 180 drivers/net/ethernet/mellanox/mlx5/core/fw.c if (MLX5_CAP_GEN(dev, roce)) { roce 43 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c ida_init(&dev->roce.reserved_gids.ida); roce 44 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.start = tblsz; roce 45 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.count = 0; roce 50 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c WARN_ON(!ida_is_empty(&dev->roce.reserved_gids.ida)); roce 51 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.start = 0; roce 52 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.count = 0; roce 53 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c ida_destroy(&dev->roce.reserved_gids.ida); roce 62 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c if (dev->roce.reserved_gids.start < count) { roce 67 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { roce 72 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.start -= count; roce 73 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.count += count; roce 75 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.count, roce 76 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.start); roce 83 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c WARN(count > dev->roce.reserved_gids.count, "Unreserving %u GIDs when only %u reserved", roce 84 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c count, dev->roce.reserved_gids.count); roce 86 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.start += count; roce 87 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.count -= count; roce 89 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.count, roce 90 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.start); roce 95 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c int end = dev->roce.reserved_gids.start + roce 96 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.count; roce 99 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c index = ida_simple_get(&dev->roce.reserved_gids.ida, roce 100 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c dev->roce.reserved_gids.start, end, roce 113 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c ida_simple_remove(&dev->roce.reserved_gids.ida, gid_index); roce 118 drivers/net/ethernet/mellanox/mlx5/core/lib/gid.c return dev->roce.reserved_gids.count; roce 15 drivers/net/ethernet/mellanox/mlx5/core/rdma.c struct mlx5_core_roce *roce = &dev->priv.roce; roce 17 drivers/net/ethernet/mellanox/mlx5/core/rdma.c mlx5_del_flow_rules(roce->allow_rule); roce 18 drivers/net/ethernet/mellanox/mlx5/core/rdma.c mlx5_destroy_flow_group(roce->fg); roce 19 drivers/net/ethernet/mellanox/mlx5/core/rdma.c mlx5_destroy_flow_table(roce->ft); roce 25 drivers/net/ethernet/mellanox/mlx5/core/rdma.c struct mlx5_core_roce *roce = &dev->priv.roce; roce 100 drivers/net/ethernet/mellanox/mlx5/core/rdma.c roce->ft = ft; roce 101 drivers/net/ethernet/mellanox/mlx5/core/rdma.c roce->fg = fg; roce 102 drivers/net/ethernet/mellanox/mlx5/core/rdma.c roce->allow_rule = flow_rule; roce 145 drivers/net/ethernet/mellanox/mlx5/core/rdma.c struct mlx5_core_roce *roce = &dev->priv.roce; roce 147 drivers/net/ethernet/mellanox/mlx5/core/rdma.c if (!roce->ft) roce 941 drivers/net/ethernet/mellanox/mlx5/core/vport.c if (!mdev->roce.roce_en) roce 945 drivers/net/ethernet/mellanox/mlx5/core/vport.c mdev->roce.roce_en++; roce 957 drivers/net/ethernet/mellanox/mlx5/core/vport.c if (mdev->roce.roce_en) { roce 958 drivers/net/ethernet/mellanox/mlx5/core/vport.c mdev->roce.roce_en--; roce 959 drivers/net/ethernet/mellanox/mlx5/core/vport.c if (mdev->roce.roce_en == 0) roce 963 drivers/net/ethernet/mellanox/mlx5/core/vport.c mdev->roce.roce_en++; roce 447 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_prio->roce = QED_DCBX_INVALID_PRIORITY; roce 454 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_prio->roce = p_results->arr[DCBX_PROTOCOL_ROCE].priority; roce 476 drivers/net/ethernet/qlogic/qed/qed_dcbx.c p_prio->iscsi, p_prio->roce, p_prio->roce_v2, p_prio->fcoe, roce 8090 drivers/net/ethernet/qlogic/qed/qed_hsi.h struct roce_init_func_params roce; roce 309 drivers/net/ethernet/qlogic/qed/qed_hw.h } roce; roce 586 include/linux/mlx5/driver.h struct mlx5_core_roce roce; roce 713 include/linux/mlx5/driver.h } roce; roce 1290 include/linux/mlx5/mlx5_ifc.h u8 roce[0x1]; roce 5060 include/linux/mlx5/mlx5_ifc.h u8 roce[0x1]; roce 83 include/linux/qed/qed_if.h u8 roce; roce 212 include/rdma/ib_sa.h struct sa_path_rec_roce roce; roce 647 include/rdma/ib_sa.h memcpy(rec->roce.dmac, dmac, ETH_ALEN); roce 653 include/rdma/ib_sa.h eth_zero_addr(rec->roce.dmac); roce 659 include/rdma/ib_sa.h return rec->roce.dmac; roce 907 include/rdma/ib_verbs.h struct roce_ah_attr roce; roce 4364 include/rdma/ib_verbs.h return attr->roce.dmac; roce 74 net/smc/smc_ib.c memcpy(&qp_attr.ah_attr.roce.dmac, lnk->peer_mac,