Home
last modified time | relevance | path

Searched refs:roce (Results 1 – 25 of 33) sorted by relevance

12

/linux/Documentation/devicetree/bindings/infiniband/
H A Dhisilicon-hns-roce.txt10 - 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 Dgid.c43 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 Dmacsec_fs.c154 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 Drdma.c15 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 Dvport.c1077 if (!mdev->roce.roce_en) in mlx5_nic_vport_enable_roce()
1081 mdev->roce.roce_en++; in mlx5_nic_vport_enable_roce()
1093 if (mdev->roce.roce_en) { in mlx5_nic_vport_disable_roce()
1094 mdev->roce.roce_en--; in mlx5_nic_vport_disable_roce()
1095 if (mdev->roce.roce_en == 0) in mlx5_nic_vport_disable_roce()
1099 mdev->roce.roce_en++; in mlx5_nic_vport_disable_roce()
H A Ddevlink.c469 if (new_state && !MLX5_CAP_GEN(dev, roce) && in mlx5_devlink_enable_roce_validate()
470 !(MLX5_CAP_GEN(dev, roce_rw_supported) && MLX5_CAP_GEN_MAX(dev, roce))) { in mlx5_devlink_enable_roce_validate()
601 value.vbool = MLX5_CAP_GEN(dev, roce) && !mlx5_dev_is_lightweight(dev); in mlx5_devlink_set_params_init_values()
H A Dmain.c486 return MLX5_CAP_GEN(dev, roce); in mlx5_is_roce_on()
611 if (MLX5_CAP_GEN(dev, roce_rw_supported) && MLX5_CAP_GEN_MAX(dev, roce)) in handle_hca_cap()
612 MLX5_SET(cmd_hca_cap, set_hca_cap, roce, in handle_hca_cap()
647 (!MLX5_CAP_GEN(dev, roce_rw_supported) && !MLX5_CAP_GEN(dev, roce)); in is_roce_fw_disabled()
H A Dfw.c188 if (MLX5_CAP_GEN(dev, roce)) { in mlx5_query_hca_caps()
/linux/arch/arm64/boot/dts/hisilicon/
H A Dhip07.dtsi1195 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 DMakefile11 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/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c621 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 Dipsec.h257 struct mlx5_ipsec_fs *roce; member
/linux/Documentation/networking/devlink/
H A Dbnxt.rst82 * - ``fw.roce``
H A Ddevlink-port.rst135 `devlink port function set roce` command.
210 hw_addr 00:00:00:00:00:00 roce enable
214 $ devlink port function set pci/0000:06:00.0/2 roce disable
219 hw_addr 00:00:00:00:00:00 roce disable
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Dmlx5dr.h157 return MLX5_CAP_GEN(dev, roce) && in mlx5dr_is_supported()
/linux/drivers/infiniband/core/
H A Dlag.c75 memcpy(eth->h_dest, ah_attr->roce.dmac, ETH_ALEN); in rdma_build_skb()
/linux/drivers/infiniband/sw/rxe/
H A Drxe_av.c14 memcpy(av->dmac, attr->roce.dmac, ETH_ALEN); in rxe_init_av()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_main.h270 struct hnae3_handle roce; member
/linux/drivers/infiniband/hw/mlx4/
H A Dah.c93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN); in create_iboe_ah()
/linux/include/linux/mlx5/
H A Ddriver.h623 struct mlx5_core_roce roce; member
779 } roce; member
1331 return MLX5_CAP_GEN(dev, roce); in mlx5_get_roce_state()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c2416 struct hnae3_handle *roce = &vport->roce; in hclge_init_roce_base_info() local
2420 roce->rinfo.num_vectors = vport->back->num_roce_msi; in hclge_init_roce_base_info()
2425 roce->rinfo.base_vector = hdev->num_nic_msi; in hclge_init_roce_base_info()
2427 roce->rinfo.netdev = nic->kinfo.netdev; in hclge_init_roce_base_info()
2428 roce->rinfo.roce_io_base = hdev->hw.hw.io_base; in hclge_init_roce_base_info()
2429 roce->rinfo.roce_mem_base = hdev->hw.hw.mem_base; in hclge_init_roce_base_info()
2431 roce->pdev = nic->pdev; in hclge_init_roce_base_info()
2432 roce->ae_algo = nic->ae_algo; in hclge_init_roce_base_info()
2433 bitmap_copy(roce->numa_node_mask.bits, nic->numa_node_mask.bits, in hclge_init_roce_base_info()
3044 struct hnae3_handle *rhandle = &hdev->vport[0].roce; in hclge_update_link_status()
[all …]
/linux/net/smc/
H A Dsmc_clc.h140 u8 roce[16]; /* RoCEv2 GID */
H A Dsmc_ib.c80 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/qlogic/qed/
H A Dqed_dcbx.c421 p_prio->roce = QED_DCBX_INVALID_PRIORITY; in qed_dcbx_get_priority_info()
428 p_prio->roce = p_results->arr[DCBX_PROTOCOL_ROCE].priority; in qed_dcbx_get_priority_info()
450 p_prio->iscsi, p_prio->roce, p_prio->roce_v2, p_prio->fcoe, in qed_dcbx_get_priority_info()
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_roce_cm.c433 ether_addr_copy(udh->eth.dmac_h, ah_attr->roce.dmac); in qedr_gsi_build_header()

12