| /linux/Documentation/devicetree/bindings/infiniband/ |
| H A D | hisilicon-hns-roce.txt | 10 - compatible: Should contain "hisilicon,hns-roce-v1". 24 - interrupt-names:should be one of 34 irqs for roce device 25 - hns-roce-comp-0 ~ hns-roce-comp-31: 32 complete event irq 26 - hns-roce-async: 1 async event irq 27 - hns-roce-common: named common exception warning irq 30 compatible = "hisilicon,hns-roce-v1"; 74 interrupt-names = "hns-roce-comp-0", 75 "hns-roce-comp-1", 76 "hns-roce-comp-2", 77 "hns-roce-comp-3", [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | gid.c | 43 ida_init(&dev->roce.reserved_gids.ida); in mlx5_init_reserved_gids() 44 dev->roce.reserved_gids.start = tblsz; in mlx5_init_reserved_gids() 45 dev->roce.reserved_gids.count = 0; in mlx5_init_reserved_gids() 50 WARN_ON(!ida_is_empty(&dev->roce.reserved_gids.ida)); in mlx5_cleanup_reserved_gids() 51 dev->roce.reserved_gids.start = 0; in mlx5_cleanup_reserved_gids() 52 dev->roce.reserved_gids.count = 0; in mlx5_cleanup_reserved_gids() 53 ida_destroy(&dev->roce.reserved_gids.ida); in mlx5_cleanup_reserved_gids() 58 if (dev->roce.reserved_gids.start < count) { in mlx5_core_reserve_gids() 63 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { in mlx5_core_reserve_gids() 68 dev->roce.reserved_gids.start -= count; in mlx5_core_reserve_gids() [all …]
|
| H A D | ipsec_fs_roce.c | 133 struct mlx5_ipsec_rx_roce *roce) in ipsec_fs_roce_rx_rule_setup() argument 151 dst.ft = roce->goto_alias_ft; in ipsec_fs_roce_rx_rule_setup() 154 dst.ft = roce->ft_rdma; in ipsec_fs_roce_rx_rule_setup() 156 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, &dst, 1); in ipsec_fs_roce_rx_rule_setup() 164 roce->rule = rule; in ipsec_fs_roce_rx_rule_setup() 169 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, default_dst, 1); in ipsec_fs_roce_rx_rule_setup() 177 roce->roce_miss.rule = rule; in ipsec_fs_roce_rx_rule_setup() 186 dst.ft = roce->ft_rdma; in ipsec_fs_roce_rx_rule_setup() 187 rule = mlx5_add_flow_rules(roce->nic_master_ft, NULL, &flow_act, &dst, in ipsec_fs_roce_rx_rule_setup() 195 roce->nic_master_rule = rule; in ipsec_fs_roce_rx_rule_setup() [all …]
|
| H A D | macsec_fs.c | 154 struct mlx5_macsec_rx_roce roce; member 984 static void macsec_fs_rdma_rx_destroy(struct mlx5_macsec_rx_roce *roce, struct mlx5_core_dev *mdev) in macsec_fs_rdma_rx_destroy() argument 989 mlx5_del_flow_rules(roce->nic_miss.rule); in macsec_fs_rdma_rx_destroy() 990 mlx5_del_flow_rules(roce->rule); in macsec_fs_rdma_rx_destroy() 991 mlx5_modify_header_dealloc(mdev, roce->copy_modify_hdr); in macsec_fs_rdma_rx_destroy() 992 mlx5_destroy_flow_group(roce->nic_miss.g); in macsec_fs_rdma_rx_destroy() 993 mlx5_destroy_flow_group(roce->g); in macsec_fs_rdma_rx_destroy() 994 mlx5_destroy_flow_table(roce->ft); in macsec_fs_rdma_rx_destroy() 996 macsec_fs_rx_roce_miss_destroy(&roce->miss); in macsec_fs_rdma_rx_destroy() 997 mlx5_destroy_flow_table(roce->ft_macsec_op_check); in macsec_fs_rdma_rx_destroy() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | rdma.c | 15 struct mlx5_core_roce *roce = &dev->priv.roce; in mlx5_rdma_disable_roce_steering() local 17 mlx5_del_flow_rules(roce->allow_rule); in mlx5_rdma_disable_roce_steering() 18 mlx5_destroy_flow_group(roce->fg); in mlx5_rdma_disable_roce_steering() 19 mlx5_destroy_flow_table(roce->ft); in mlx5_rdma_disable_roce_steering() 25 struct mlx5_core_roce *roce = &dev->priv.roce; in mlx5_rdma_enable_roce_steering() local 88 roce->ft = ft; in mlx5_rdma_enable_roce_steering() 89 roce->fg = fg; in mlx5_rdma_enable_roce_steering() 90 roce->allow_rule = flow_rule; in mlx5_rdma_enable_roce_steering() 133 struct mlx5_core_roce *roce = &dev->priv.roce; in mlx5_rdma_disable_roce() local 135 if (!roce->ft) in mlx5_rdma_disable_roce() [all …]
|
| H A D | vport.c | 1037 if (!mdev->roce.roce_en) in mlx5_nic_vport_enable_roce() 1041 mdev->roce.roce_en++; in mlx5_nic_vport_enable_roce() 1053 if (mdev->roce.roce_en) { in mlx5_nic_vport_disable_roce() 1054 mdev->roce.roce_en--; in mlx5_nic_vport_disable_roce() 1055 if (mdev->roce.roce_en == 0) in mlx5_nic_vport_disable_roce() 1059 mdev->roce.roce_en++; in mlx5_nic_vport_disable_roce()
|
| H A D | devlink.c | 468 if (new_state && !MLX5_CAP_GEN(dev, roce) && in mlx5_devlink_enable_roce_validate() 469 !(MLX5_CAP_GEN(dev, roce_rw_supported) && MLX5_CAP_GEN_MAX(dev, roce))) { in mlx5_devlink_enable_roce_validate() 600 value.vbool = MLX5_CAP_GEN(dev, roce) && !mlx5_dev_is_lightweight(dev); in mlx5_devlink_set_params_init_values()
|
| H A D | main.c | 486 return MLX5_CAP_GEN(dev, roce); in mlx5_is_roce_on() 609 if (MLX5_CAP_GEN(dev, roce_rw_supported) && MLX5_CAP_GEN_MAX(dev, roce)) in handle_hca_cap() 610 MLX5_SET(cmd_hca_cap, set_hca_cap, roce, in handle_hca_cap() 642 (!MLX5_CAP_GEN(dev, roce_rw_supported) && !MLX5_CAP_GEN(dev, roce)); in is_roce_fw_disabled()
|
| /linux/arch/arm64/boot/dts/hisilicon/ |
| H A D | hip07.dtsi | 1195 mbigen_dsa_roce: intc-roce { 1523 compatible = "hisilicon,hns-roce-v1"; 1567 interrupt-names = "hns-roce-comp-0", 1568 "hns-roce-comp-1", 1569 "hns-roce-comp-2", 1570 "hns-roce-comp-3", 1571 "hns-roce-comp-4", 1572 "hns-roce-comp-5", 1573 "hns-roce-comp-6", 1574 "hns-roce-comp-7", [all …]
|
| /linux/drivers/infiniband/hw/hns/ |
| H A D | Makefile | 11 hns-roce-hw-v2-objs := hns_roce_main.o hns_roce_cmd.o hns_roce_pd.o \ 16 obj-$(CONFIG_INFINIBAND_HNS_HIP08) += hns-roce-hw-v2.o
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | ah.c | 83 memcpy(ah->av.rmac, ah_attr->roce.dmac, in create_ib_ah() 84 sizeof(ah_attr->roce.dmac)); in create_ib_ah() 123 memcpy(resp.dmac, ah_attr->roce.dmac, ETH_ALEN); in mlx5_ib_create_ah()
|
| H A D | cong.c | 463 if (!MLX5_CAP_GEN(mdev, roce) || in mlx5_ib_init_cong_debugfs()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_main.c | 105 return container_of(handle, struct hclgevf_dev, roce); in hclgevf_ae_get_hdev() 406 struct hnae3_handle *rhandle = &hdev->roce; in hclgevf_update_link_status() 1392 struct hnae3_handle *handle = &hdev->roce; in hclgevf_notify_roce_client() 2142 struct hnae3_handle *roce = &hdev->roce; in hclgevf_init_roce_base_info() local 2145 roce->rinfo.num_vectors = hdev->num_roce_msix; in hclgevf_init_roce_base_info() 2147 if (hdev->num_msi_left < roce->rinfo.num_vectors || in hclgevf_init_roce_base_info() 2151 roce->rinfo.base_vector = hdev->roce_base_msix_offset; in hclgevf_init_roce_base_info() 2153 roce->rinfo.netdev = nic->kinfo.netdev; in hclgevf_init_roce_base_info() 2154 roce->rinfo.roce_io_base = hdev->hw.hw.io_base; in hclgevf_init_roce_base_info() 2155 roce->rinfo.roce_mem_base = hdev->hw.hw.mem_base; in hclgevf_init_roce_base_info() [all …]
|
| H A D | hclgevf_main.h | 270 struct hnae3_handle roce; member
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_fs.c | 621 mlx5_ipsec_fs_roce_rx_create(ipsec->mdev, ipsec->roce, ns, &old_dest, family, in handle_ipsec_rx_bringup() 624 new_dest.ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, family); in handle_ipsec_rx_bringup() 635 old_dest.ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, family); in handle_ipsec_rx_cleanup() 640 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, ipsec->mdev); in handle_ipsec_rx_cleanup() 652 mlx5_ipsec_fs_roce_tx_create(ipsec->mdev, ipsec->roce, ipsec->tx->ft.pol, in ipsec_mpv_work_handler() 669 mlx5_ipsec_fs_roce_tx_destroy(ipsec->roce, ipsec->mdev); in ipsec_mpv_work_handler() 742 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, mdev); in rx_destroy() 786 err = mlx5_ipsec_fs_roce_rx_create(ipsec->mdev, ipsec->roce, attr->ns, dest, in ipsec_rx_status_pass_dest_get() 792 ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, attr->family); in ipsec_rx_status_pass_dest_get() 1118 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, mdev); in rx_create() [all …]
|
| H A D | ipsec.h | 257 struct mlx5_ipsec_fs *roce; member
|
| /linux/Documentation/networking/devlink/ |
| H A D | bnxt.rst | 82 * - ``fw.roce``
|
| H A D | devlink-port.rst | 126 `devlink port function set roce` command. 198 hw_addr 00:00:00:00:00:00 roce enable 202 $ devlink port function set pci/0000:06:00.0/2 roce disable 207 hw_addr 00:00:00:00:00:00 roce disable
|
| /linux/drivers/infiniband/core/ |
| H A D | lag.c | 75 memcpy(eth->h_dest, ah_attr->roce.dmac, ETH_ALEN); in rdma_build_skb()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | mlx5dr.h | 157 return MLX5_CAP_GEN(dev, roce) && in mlx5dr_is_supported()
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_av.c | 14 memcpy(av->dmac, attr->roce.dmac, ETH_ALEN); in rxe_init_av()
|
| /linux/drivers/infiniband/hw/mlx4/ |
| H A D | ah.c | 93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); in create_iboe_ah()
|
| /linux/net/smc/ |
| H A D | smc_clc.h | 140 u8 roce[16]; /* RoCEv2 GID */
|
| H A D | smc_ib.c | 80 memcpy(&qp_attr.ah_attr.roce.dmac, lnk->lgr->nexthop_mac, in smc_ib_modify_qp_rtr() 83 memcpy(&qp_attr.ah_attr.roce.dmac, lnk->peer_mac, in smc_ib_modify_qp_rtr()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_main.c | 2484 struct hnae3_handle *roce = &vport->roce; in hclge_init_roce_base_info() local 2488 roce->rinfo.num_vectors = vport->back->num_roce_msi; in hclge_init_roce_base_info() 2493 roce->rinfo.base_vector = hdev->num_nic_msi; in hclge_init_roce_base_info() 2495 roce->rinfo.netdev = nic->kinfo.netdev; in hclge_init_roce_base_info() 2496 roce->rinfo.roce_io_base = hdev->hw.hw.io_base; in hclge_init_roce_base_info() 2497 roce->rinfo.roce_mem_base = hdev->hw.hw.mem_base; in hclge_init_roce_base_info() 2499 roce->pdev = nic->pdev; in hclge_init_roce_base_info() 2500 roce->ae_algo = nic->ae_algo; in hclge_init_roce_base_info() 2501 bitmap_copy(roce->numa_node_mask.bits, nic->numa_node_mask.bits, in hclge_init_roce_base_info() 3119 struct hnae3_handle *rhandle = &hdev->vport[0].roce; in hclge_update_link_status() [all …]
|