/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | gid.c | 43 ida_init(&dev->roce.reserved_gids.ida); 44 dev->roce.reserved_gids.start = tblsz; 45 dev->roce.reserved_gids.count = 0; 50 WARN_ON(!ida_is_empty(&dev->roce.reserved_gids.ida)); 51 dev->roce.reserved_gids.start = 0; 52 dev->roce.reserved_gids.count = 0; 53 ida_destroy(&dev->roce.reserved_gids.ida); 58 if (dev->roce.reserved_gids.start < count) { 63 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { 68 dev->roce [all...] |
H A D | ipsec_fs_roce.c | 133 struct mlx5_ipsec_rx_roce *roce) 151 dst.ft = roce->goto_alias_ft; 154 dst.ft = roce->ft_rdma; 156 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, &dst, 1); 164 roce->rule = rule; 167 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, default_dst, 1); 175 roce->roce_miss.rule = rule; 182 dst.ft = roce->ft_rdma; 183 rule = mlx5_add_flow_rules(roce->nic_master_ft, NULL, &flow_act, &dst, 191 roce 131 ipsec_fs_roce_rx_rule_setup(struct mlx5_core_dev *mdev, struct mlx5_flow_destination *default_dst, struct mlx5_ipsec_rx_roce *roce) argument 205 ipsec_fs_roce_tx_rule_setup(struct mlx5_core_dev *mdev, struct mlx5_ipsec_tx_roce *roce, struct mlx5_flow_table *pol_ft) argument 231 ipsec_fs_roce_tx_mpv_rule_setup(struct mlx5_core_dev *mdev, struct mlx5_ipsec_tx_roce *roce, struct mlx5_flow_table *pol_ft) argument 276 ipsec_fs_roce_tx_mpv_create_ft(struct mlx5_core_dev *mdev, struct mlx5_ipsec_tx_roce *roce, struct mlx5_flow_table *pol_ft, struct mlx5e_priv *peer_priv, bool from_event) argument 337 ipsec_fs_roce_tx_mpv_create_group_rules(struct mlx5_core_dev *mdev, struct mlx5_ipsec_tx_roce *roce, struct mlx5_flow_table *pol_ft, u32 *in) argument 381 struct mlx5_ipsec_tx_roce *roce; local 421 roce_rx_mpv_destroy_tables(struct mlx5_core_dev *mdev, struct mlx5_ipsec_rx_roce *roce) argument 442 struct mlx5_ipsec_rx_roce *roce; local 600 struct mlx5_ipsec_tx_roce *roce; local 710 struct mlx5_ipsec_rx_roce *roce; local [all...] |
H A D | macsec_fs.c | 158 struct mlx5_macsec_rx_roce roce; member in struct:mlx5_macsec_rx 988 static void macsec_fs_rdma_rx_destroy(struct mlx5_macsec_rx_roce *roce, struct mlx5_core_dev *mdev) argument 993 mlx5_del_flow_rules(roce->nic_miss.rule); 994 mlx5_del_flow_rules(roce->rule); 995 mlx5_modify_header_dealloc(mdev, roce->copy_modify_hdr); 996 mlx5_destroy_flow_group(roce->nic_miss.g); 997 mlx5_destroy_flow_group(roce->g); 998 mlx5_destroy_flow_table(roce->ft); 1000 macsec_fs_rx_roce_miss_destroy(&roce->miss); 1001 mlx5_destroy_flow_table(roce 1217 macsec_fs_rx_roce_miss_create(struct mlx5_core_dev *mdev, struct mlx5_macsec_rx_roce *roce) argument 1267 macsec_fs_rx_roce_jump_to_rdma_groups_create(struct mlx5_core_dev *mdev, struct mlx5_macsec_rx_roce *roce) argument 1322 macsec_fs_rx_roce_jump_to_rdma_rules_create(struct mlx5_macsec_fs *macsec_fs, struct mlx5_macsec_rx_roce *roce) argument 1398 macsec_fs_rx_roce_jump_to_rdma_create(struct mlx5_macsec_fs *macsec_fs, struct mlx5_macsec_rx_roce *roce) argument [all...] |
/linux-master/drivers/infiniband/hw/hns/ |
H A D | Makefile | 8 hns-roce-objs := hns_roce_main.o hns_roce_cmd.o hns_roce_pd.o \ 14 hns-roce-hw-v2-objs := hns_roce_hw_v2.o $(hns-roce-objs) 15 obj-$(CONFIG_INFINIBAND_HNS) += hns-roce-hw-v2.o
|
H A D | hns_roce_ah.c | 89 memcpy(ah->av.mac, ah_attr->roce.dmac, ETH_ALEN); 102 memcpy(resp.dmac, ah_attr->roce.dmac, ETH_ALEN);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | rdma.c | 15 struct mlx5_core_roce *roce = &dev->priv.roce; local 17 mlx5_del_flow_rules(roce->allow_rule); 18 mlx5_destroy_flow_group(roce->fg); 19 mlx5_destroy_flow_table(roce->ft); 25 struct mlx5_core_roce *roce = &dev->priv.roce; local 88 roce->ft = ft; 89 roce->fg = fg; 90 roce 133 struct mlx5_core_roce *roce = &dev->priv.roce; local [all...] |
H A D | devlink.c | 410 if (new_state && !MLX5_CAP_GEN(dev, roce) && 411 !(MLX5_CAP_GEN(dev, roce_rw_supported) && MLX5_CAP_GEN_MAX(dev, roce))) { 523 value.vbool = MLX5_CAP_GEN(dev, roce) && !mlx5_dev_is_lightweight(dev);
|
H A D | vport.c | 955 if (!mdev->roce.roce_en) 959 mdev->roce.roce_en++; 971 if (mdev->roce.roce_en) { 972 mdev->roce.roce_en--; 973 if (mdev->roce.roce_en == 0) 977 mdev->roce.roce_en++;
|
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | ib_rep.c | 23 write_lock(&ibdev->port[vport_index].roce.netdev_lock); 24 ibdev->port[vport_index].roce.netdev = 26 write_unlock(&ibdev->port[vport_index].roce.netdev_lock); 107 ibdev->port[vport_index].roce.netdev = 163 write_lock(&port->roce.netdev_lock); 164 port->roce.netdev = NULL; 165 write_unlock(&port->roce.netdev_lock);
|
H A D | ah.c | 79 memcpy(ah->av.rmac, ah_attr->roce.dmac, 80 sizeof(ah_attr->roce.dmac)); 117 memcpy(resp.dmac, ah_attr->roce.dmac, ETH_ALEN);
|
H A D | main.c | 144 return &port->roce; 150 read_lock(&port->roce.netdev_lock); 154 read_unlock(&port->roce.netdev_lock); 156 return &port->roce; 158 read_unlock(&port->roce.netdev_lock); 167 struct mlx5_roce *roce = container_of(this, struct mlx5_roce, nb); local 169 u32 port_num = roce->native_port_num; 173 ibdev = roce->dev; 183 write_lock(&roce->netdev_lock); 185 roce 3058 mlx5_netdev_notifier_register(struct mlx5_roce *roce, struct net_device *netdev) argument 3071 mlx5_netdev_notifier_unregister(struct mlx5_roce *roce) argument 3083 struct mlx5_roce *roce = container_of(nb, struct mlx5_roce, mdev_nb); local 3102 struct mlx5_roce *roce = &dev->port[port_num].roce; local 3111 struct mlx5_roce *roce = &dev->port[port_num].roce; local [all...] |
H A D | mem.c | 219 if (!dev->mdev->roce.roce_en &&
|
/linux-master/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_hw.h | 308 u8 qpid; /* roce relative */ 309 } roce; member in union:qed_qm_pq_params
|
/linux-master/include/rdma/ |
H A D | ib_sa.h | 185 struct sa_path_rec_roce roce; member in union:sa_path_rec::__anon1257 594 memcpy(rec->roce.dmac, dmac, ETH_ALEN); 600 eth_zero_addr(rec->roce.dmac); 606 return rec->roce.dmac;
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_fs.c | 505 mlx5_ipsec_fs_roce_rx_create(ipsec->mdev, ipsec->roce, ns, &old_dest, family, 508 new_dest.ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, family); 519 old_dest.ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, family); 526 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, ipsec->mdev); 538 mlx5_ipsec_fs_roce_tx_create(ipsec->mdev, ipsec->roce, ipsec->tx->ft.pol, 555 mlx5_ipsec_fs_roce_tx_destroy(ipsec->roce, ipsec->mdev); 603 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, family, mdev); 640 err = mlx5_ipsec_fs_roce_rx_create(ipsec->mdev, ipsec->roce, attr->ns, dest, 646 ft = mlx5_ipsec_fs_roce_ft_get(ipsec->roce, attr->family); 758 mlx5_ipsec_fs_roce_rx_destroy(ipsec->roce, famil 895 tx_destroy(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx *tx, struct mlx5_ipsec_fs *roce) argument 934 tx_create(struct mlx5e_ipsec *ipsec, struct mlx5e_ipsec_tx *tx, struct mlx5_ipsec_fs *roce) argument [all...] |
H A D | ipsec.h | 242 struct mlx5_ipsec_fs *roce; member in struct:mlx5e_ipsec
|
/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe_av.c | 14 memcpy(av->dmac, attr->roce.dmac, ETH_ALEN);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | mlx5dr.h | 164 return MLX5_CAP_GEN(dev, roce) &&
|
/linux-master/drivers/infiniband/core/ |
H A D | lag.c | 75 memcpy(eth->h_dest, ah_attr->roce.dmac, ETH_ALEN);
|
/linux-master/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_misc.c | 285 memcpy(dst->roce.dmac, &src->dmac, ETH_ALEN); 298 memcpy(&dst->dmac, src->roce.dmac, sizeof(dst->dmac));
|
/linux-master/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
H A D | hclgevf_main.c | 68 return container_of(handle, struct hclgevf_dev, roce); 371 struct hnae3_handle *rhandle = &hdev->roce; 1344 struct hnae3_handle *handle = &hdev->roce; 1355 dev_err(&hdev->pdev->dev, "notify roce client failed %d(%d)", 2068 struct hnae3_handle *roce = &hdev->roce; local 2071 roce->rinfo.num_vectors = hdev->num_roce_msix; 2073 if (hdev->num_msi_left < roce->rinfo.num_vectors || 2077 roce->rinfo.base_vector = hdev->roce_base_msix_offset; 2079 roce [all...] |
H A D | hclgevf_main.h | 101 /* in the bar4, the first half is for roce, and the second half is for nic */ 250 u16 num_roce_msix; /* Num of roce vectors for this VF */ 269 struct hnae3_handle roce; member in struct:hclgevf_dev
|
/linux-master/drivers/infiniband/hw/mlx4/ |
H A D | ah.c | 93 memcpy(ah->av.eth.mac, ah_attr->roce.dmac, ETH_ALEN);
|
/linux-master/net/smc/ |
H A D | smc_clc.h | 138 u8 roce[16]; /* RoCEv2 GID */ member in struct:smc_clc_v2_extension
|
/linux-master/include/linux/mlx5/ |
H A D | driver.h | 630 struct mlx5_core_roce roce; member in struct:mlx5_priv 807 } roce; member in struct:mlx5_core_dev 1320 return MLX5_CAP_GEN(dev, roce);
|