| /linux/Documentation/devicetree/bindings/infiniband/ |
| H A D | hisilicon-hns-roce.txt | |
| /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 | macsec_fs.c | 155 struct mlx5_macsec_rx_roce roce; 990 static void macsec_fs_rdma_rx_destroy(struct mlx5_macsec_rx_roce *roce, struct mlx5_core_dev *mdev) in macsec_fs_rdma_rx_destroy() 995 mlx5_del_flow_rules(roce->nic_miss.rule); in macsec_fs_rdma_rx_destroy() 996 mlx5_del_flow_rules(roce->rule); in macsec_fs_rdma_rx_destroy() 997 mlx5_modify_header_dealloc(mdev, roce->copy_modify_hdr); in macsec_fs_rdma_rx_destroy() 998 mlx5_destroy_flow_group(roce->nic_miss.g); in macsec_fs_rdma_rx_destroy() 999 mlx5_destroy_flow_group(roce->g); in macsec_fs_rdma_rx_destroy() 1000 mlx5_destroy_flow_table(roce->ft); 1002 macsec_fs_rx_roce_miss_destroy(&roce->miss); in macsec_fs_rx_destroy() 1003 mlx5_destroy_flow_table(roce in macsec_fs_rx_destroy() 154 struct mlx5_macsec_rx_roce roce; global() member 984 macsec_fs_rdma_rx_destroy(struct mlx5_macsec_rx_roce * roce,struct mlx5_core_dev * mdev) macsec_fs_rdma_rx_destroy() argument 1214 macsec_fs_rx_roce_miss_create(struct mlx5_core_dev * mdev,struct mlx5_macsec_rx_roce * roce) macsec_fs_rx_roce_miss_create() argument 1264 macsec_fs_rx_roce_jump_to_rdma_groups_create(struct mlx5_core_dev * mdev,struct mlx5_macsec_rx_roce * roce) macsec_fs_rx_roce_jump_to_rdma_groups_create() argument 1319 macsec_fs_rx_roce_jump_to_rdma_rules_create(struct mlx5_macsec_fs * macsec_fs,struct mlx5_macsec_rx_roce * roce) macsec_fs_rx_roce_jump_to_rdma_rules_create() argument 1395 macsec_fs_rx_roce_jump_to_rdma_create(struct mlx5_macsec_fs * macsec_fs,struct mlx5_macsec_rx_roce * roce) macsec_fs_rx_roce_jump_to_rdma_create() argument [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 | 1081 if (!mdev->roce.roce_en) in mlx5_nic_vport_enable_roce() 1085 mdev->roce.roce_en++; in mlx5_nic_vport_enable_roce() 1097 if (mdev->roce.roce_en) { in mlx5_nic_vport_disable_roce() 1098 mdev->roce.roce_en--; in mlx5_nic_vport_disable_roce() 1099 if (mdev->roce.roce_en == 0) in mlx5_nic_vport_disable_roce() 1103 mdev->roce.roce_en++; in mlx5_nic_vport_disable_roce()
|
| H A D | devlink.c | 469 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() 607 value.vbool = MLX5_CAP_GEN(dev, roce) && !mlx5_dev_is_lightweight(dev); in mlx5_devlink_set_params_init_values()
|
| H A D | main.c | 483 return MLX5_CAP_GEN(dev, roce); in mlx5_is_roce_on() 608 if (MLX5_CAP_GEN(dev, roce_rw_supported) && MLX5_CAP_GEN_MAX(dev, roce)) in handle_hca_cap() 609 MLX5_SET(cmd_hca_cap, set_hca_cap, roce, in handle_hca_cap() 627 /* Cached MLX5_CAP_GEN(dev, roce) can be out of sync this early in the in handle_hca_cap() 644 (!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 | 1127 mbigen_dsa_roce: intc-roce { 1407 compatible = "hisilicon,hns-roce-v1"; 1451 interrupt-names = "hns-roce-comp-0", 1452 "hns-roce-comp-1", 1453 "hns-roce-comp-2", 1454 "hns-roce-comp-3", 1455 "hns-roce-comp-4", 1456 "hns-roce-comp-5", 1457 "hns-roce-comp-6", 1458 "hns-roce [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 | main.c | 149 return &port->roce; in mlx5_get_rep_roce() 158 return &port->roce; in mlx5_get_rep_roce() 208 struct mlx5_roce *roce = container_of(this, struct mlx5_roce, nb); in mlx5_netdev_event() local 210 u32 port_num = roce->native_port_num; in mlx5_netdev_event() 215 ibdev = roce->dev; in mlx5_netdev_event() 270 roce = mlx5_get_rep_roce(ibdev, ndev, upper, &port_num); in mlx5_netdev_event() 271 if (!roce) in mlx5_netdev_event() 284 if (roce->last_port_state == port_state) in mlx5_netdev_event() 287 roce->last_port_state = port_state; in mlx5_netdev_event() 590 if (!dev->is_rep && dev->mdev->roce in mlx5_query_port_roce() 3762 mlx5_netdev_notifier_register(struct mlx5_roce * roce,struct net_device * netdev) mlx5_netdev_notifier_register() argument 3775 mlx5_netdev_notifier_unregister(struct mlx5_roce * roce) mlx5_netdev_notifier_unregister() argument 3787 struct mlx5_roce *roce = container_of(nb, struct mlx5_roce, mdev_nb); mlx5e_mdev_notifier_event() local 3806 struct mlx5_roce *roce = &dev->port[port_num].roce; mlx5_mdev_netdev_track() local 3815 struct mlx5_roce *roce = &dev->port[port_num].roce; mlx5_mdev_netdev_untrack() local [all...] |
| /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() 728 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, ipsec->mdev); in rx_destroy() 790 err = mlx5_ipsec_fs_roce_rx_create(ipsec->mdev, ipsec->roce, attr->ns, dest, in ipsec_rx_status_pass_dest_get() 796 ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, attr->family); in ipsec_rx_status_pass_dest_get() 1263 struct mlx5_ipsec_fs *roce) in tx_destroy() 1256 tx_destroy(struct mlx5e_ipsec * ipsec,struct mlx5e_ipsec_tx * tx,struct mlx5_ipsec_fs * roce) tx_destroy() argument 1295 tx_create(struct mlx5e_ipsec * ipsec,struct mlx5e_ipsec_tx * tx,struct mlx5_ipsec_fs * roce) tx_create() argument [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 | 135 `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 D | mlx5dr.h | 157 return MLX5_CAP_GEN(dev, roce) && in mlx5dr_is_supported()
|
| /linux/drivers/infiniband/core/ |
| H A D | lag.c | 79 memcpy(eth->h_dest, ah_attr->roce.dmac, ETH_ALEN);
|
| H A D | verbs.c | 826 ah_attr->roce.dmac); in ib_resolve_unicast_gid_dmac() 831 ah_attr->roce.dmac, in ib_resolve_unicast_gid_dmac() 1810 ip_eth_mc_map(addr, (char *)ah_attr->roce.dmac); in ib_resolve_eth_dmac() 1813 (char *)ah_attr->roce.dmac); in ib_resolve_eth_dmac() 1887 * for IB. Ban them in roce mode. in _ib_modify_qp()
|
| /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/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_main.h | 270 struct hnae3_handle roce; member
|
| /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/include/linux/mlx5/ |
| H A D | driver.h | 623 struct mlx5_core_roce roce; member 780 } roce; 1337 return MLX5_CAP_GEN(dev, roce); in mlx5_get_roce_state() 779 } roce; global() member
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_main.c | 2415 struct hnae3_handle *roce = &vport->roce; in hclge_init_roce_base_info() 2419 roce->rinfo.num_vectors = vport->back->num_roce_msi; in hclge_init_roce_base_info() 2424 roce->rinfo.base_vector = hdev->num_nic_msi; in hclge_init_roce_base_info() 2426 roce->rinfo.netdev = nic->kinfo.netdev; in hclge_init_roce_base_info() 2427 roce->rinfo.roce_io_base = hdev->hw.hw.io_base; in hclge_init_roce_base_info() 2428 roce->rinfo.roce_mem_base = hdev->hw.hw.mem_base; in hclge_init_roce_base_info() 2430 roce->pdev = nic->pdev; in hclge_init_roce_base_info() 2431 roce->ae_algo = nic->ae_algo; in hclge_init_roce_base_info() 2432 bitmap_copy(roce in hclge_init_roce_base_info() 2416 struct hnae3_handle *roce = &vport->roce; hclge_init_roce_base_info() local [all...] |
| /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/qlogic/qed/ |
| H A D | qed_dcbx.c | 421 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()
|