/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_mr.c | 143 if (mr_route->mr_table->ops->is_route_starg(mr_route->mr_table, in mlxsw_sp_mr_route_action() 165 return mr_route->mr_table->ops->is_route_starg(mr_route->mr_table, in mlxsw_sp_mr_route_prio() 317 mr_table->ops->key_create(mr_table, &mr_route->key, mr_route->mfc); in mlxsw_sp_mr_route_create() 319 mr_route->mr_table = mr_table; in mlxsw_sp_mr_route_create() 393 if (!mr_table->ops->is_route_valid(mr_table, mfc)) in mlxsw_sp_mr_route_add() 468 mr_table->ops->key_create(mr_table, &key, mfc); in mlxsw_sp_mr_route_del() 914 mr_table = kzalloc(sizeof(*mr_table) + mr->mr_ops->route_priv_size, in mlxsw_sp_mr_table_create() 916 if (!mr_table) in mlxsw_sp_mr_table_create() 945 return mr_table; in mlxsw_sp_mr_table_create() 951 kfree(mr_table); in mlxsw_sp_mr_table_create() [all …]
|
A D | spectrum_mr.h | 73 int mlxsw_sp_mr_route_add(struct mlxsw_sp_mr_table *mr_table, 75 void mlxsw_sp_mr_route_del(struct mlxsw_sp_mr_table *mr_table, 77 int mlxsw_sp_mr_vif_add(struct mlxsw_sp_mr_table *mr_table, 81 void mlxsw_sp_mr_vif_del(struct mlxsw_sp_mr_table *mr_table, vifi_t vif_index); 82 int mlxsw_sp_mr_rif_add(struct mlxsw_sp_mr_table *mr_table, 84 void mlxsw_sp_mr_rif_del(struct mlxsw_sp_mr_table *mr_table, 86 void mlxsw_sp_mr_rif_mtu_update(struct mlxsw_sp_mr_table *mr_table, 91 void mlxsw_sp_mr_table_destroy(struct mlxsw_sp_mr_table *mr_table); 92 void mlxsw_sp_mr_table_flush(struct mlxsw_sp_mr_table *mr_table); 93 bool mlxsw_sp_mr_table_empty(const struct mlxsw_sp_mr_table *mr_table);
|
A D | spectrum_router.c | 745 !!vr->mr_table[MLXSW_SP_L3_PROTO_IPV4] || in mlxsw_sp_vr_is_used() 746 !!vr->mr_table[MLXSW_SP_L3_PROTO_IPV6]; in mlxsw_sp_vr_is_used() 876 vr->mr_table[MLXSW_SP_L3_PROTO_IPV4] = mr4_table; in mlxsw_sp_vr_create() 894 vr->mr_table[MLXSW_SP_L3_PROTO_IPV6] = NULL; in mlxsw_sp_vr_destroy() 896 vr->mr_table[MLXSW_SP_L3_PROTO_IPV4] = NULL; in mlxsw_sp_vr_destroy() 7176 return vr->mr_table[MLXSW_SP_L3_PROTO_IPV4]; in mlxsw_sp_router_fibmr_family_to_table() 7178 return vr->mr_table[MLXSW_SP_L3_PROTO_IPV6]; in mlxsw_sp_router_fibmr_family_to_table() 7310 mlxsw_sp_mr_table_flush(vr->mr_table[j]); in mlxsw_sp_router_fib_flush() 8169 mlxsw_sp_mr_rif_del(vr->mr_table[i], rif); in mlxsw_sp_rif_create() 8210 mlxsw_sp_mr_rif_del(vr->mr_table[i], rif); in mlxsw_sp_rif_destroy() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | mroute_base.h | 216 struct mr_table; 246 struct mr_table { struct 273 struct mr_table * argument 298 struct mr_table *mrt), 310 struct mr_table *mrt), 349 struct mr_table *mrt), in mr_rtm_dumproute() 350 int (*fill)(struct mr_table *mrt, in mr_rtm_dumproute() 365 struct mr_table *mrt), in mr_dump() 380 struct mr_table *mrt; 386 struct mr_table *mrt; [all …]
|
/linux-6.3-rc2/drivers/infiniband/hw/mthca/ |
A D | mthca_mr.c | 299 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt_size() 362 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt() 612 dev->mr_table.mpt_base); in mthca_init_mr_table() 614 dev->mr_table.tavor_fmr.mpt_base = in mthca_init_mr_table() 625 dev->mr_table.mtt_base); in mthca_init_mr_table() 627 dev->mr_table.tavor_fmr.mtt_base = in mthca_init_mr_table() 646 dev->mr_table.fmr_mtt_buddy = in mthca_init_mr_table() 647 &dev->mr_table.tavor_fmr.mtt_buddy; in mthca_init_mr_table() 649 dev->mr_table.fmr_mtt_buddy = &dev->mr_table.mtt_buddy; in mthca_init_mr_table() 672 if (dev->mr_table.tavor_fmr.mtt_base) in mthca_init_mr_table() [all …]
|
A D | mthca_main.c | 421 mdev->mr_table.mtt_table = mthca_alloc_icm_table(mdev, init_hca->mtt_base, in mthca_init_icm() 426 if (!mdev->mr_table.mtt_table) { in mthca_init_icm() 432 mdev->mr_table.mpt_table = mthca_alloc_icm_table(mdev, init_hca->mpt_base, in mthca_init_icm() 437 if (!mdev->mr_table.mpt_table) { in mthca_init_icm() 539 mthca_free_icm_table(mdev, mdev->mr_table.mpt_table); in mthca_init_icm() 542 mthca_free_icm_table(mdev, mdev->mr_table.mtt_table); in mthca_init_icm() 566 mthca_free_icm_table(mdev, mdev->mr_table.mpt_table); in mthca_free_icms() 567 mthca_free_icm_table(mdev, mdev->mr_table.mtt_table); in mthca_free_icms()
|
A D | mthca_profile.c | 221 dev->mr_table.mpt_base = profile[i].start; in mthca_make_profile() 227 dev->mr_table.mtt_base = profile[i].start; in mthca_make_profile()
|
A D | mthca_dev.h | 340 struct mthca_mr_table mr_table; member
|
/linux-6.3-rc2/net/ipv4/ |
A D | ipmr_base.c | 31 struct mr_table * 38 struct mr_table *mrt; in mr_table_alloc() 116 struct mr_table *mrt = iter->mrt; in mr_vif_seq_idx() 132 struct mr_table *mrt = iter->mrt; in mr_vif_seq_next() 150 struct mr_table *mrt = it->mrt; in mr_mfc_seq_idx() 177 struct mr_table *mrt = it->mrt; in mr_mfc_seq_next() 355 struct mr_table *mrt), in mr_rtm_dumproute() 356 int (*fill)(struct mr_table *mrt, in mr_rtm_dumproute() 364 struct mr_table *mrt; in mr_rtm_dumproute() 401 struct mr_table *mrt), in mr_dump() [all …]
|
A D | ipmr.c | 73 struct mr_table *mrt; 125 struct mr_table *ret; in ipmr_mr_table_iter() 141 struct mr_table *mrt; in ipmr_get_table() 175 struct mr_table *mrt; in ipmr_rule_action() 241 struct mr_table *mrt; in ipmr_rules_init() 326 struct mr_table *mrt; in ipmr_rules_init() 399 struct mr_table *mrt; in ipmr_new_table() 495 struct mr_table *mrt; in reg_vif_xmit() 1335 struct mr_table *mrt; in mrtsock_destruct() 1363 struct mr_table *mrt; in ip_mroute_setsockopt() [all …]
|
/linux-6.3-rc2/net/ipv6/ |
A D | ip6mr.c | 58 struct mr_table *mrt; 114 struct mr_table *ret; in ip6mr_mr_table_iter() 130 struct mr_table *mrt; in ip6mr_get_table() 164 struct mr_table *mrt; in ip6mr_rule_action() 230 struct mr_table *mrt; in ip6mr_rules_init() 316 struct mr_table *mrt; in ip6mr_rules_init() 383 struct mr_table *mrt; in ip6mr_new_table() 412 struct mr_table *mrt; in ip6mr_vif_seq_start() 466 struct mr_table *mrt; in ipmr_mfc_seq_start() 533 struct mr_table *mrt; in pim6_rcv() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/ |
A D | mr.c | 152 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_alloc_mtt_range() local 221 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_free_mtt_range() local 314 &mlx4_priv(dev)->mr_table.dmpt_table, in mlx4_mr_hw_get_mpt() 485 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_mpt_alloc_icm() local 506 struct mlx4_mr_table *mr_table = &mlx4_priv(dev)->mr_table; in __mlx4_mpt_free_icm() local 910 struct mlx4_mr_table *mr_table = &priv->mr_table; in mlx4_init_mr_table() local 926 err = mlx4_buddy_init(&mr_table->mtt_buddy, in mlx4_init_mr_table() 938 mr_table->mtt_buddy.max_order); in mlx4_init_mr_table() 947 mlx4_buddy_cleanup(&mr_table->mtt_buddy); in mlx4_init_mr_table() 958 struct mlx4_mr_table *mr_table = &priv->mr_table; in mlx4_cleanup_mr_table() local [all …]
|
A D | profile.c | 230 priv->mr_table.mpt_base = profile[i].start; in mlx4_make_profile() 239 priv->mr_table.mtt_base = profile[i].start; in mlx4_make_profile()
|
A D | main.c | 1700 err = mlx4_init_icm_table(dev, &priv->mr_table.mtt_table, in mlx4_init_icm() 1710 err = mlx4_init_icm_table(dev, &priv->mr_table.dmpt_table, in mlx4_init_icm() 1823 mlx4_cleanup_icm_table(dev, &priv->mr_table.dmpt_table); in mlx4_init_icm() 1826 mlx4_cleanup_icm_table(dev, &priv->mr_table.mtt_table); in mlx4_init_icm() 1857 mlx4_cleanup_icm_table(dev, &priv->mr_table.dmpt_table); in mlx4_free_icms() 1858 mlx4_cleanup_icm_table(dev, &priv->mr_table.mtt_table); in mlx4_free_icms()
|
A D | mlx4.h | 895 struct mlx4_mr_table mr_table; member
|
A D | resource_tracker.c | 2896 &mlx4_priv(dev)->mr_table.dmpt_table, in mlx4_QUERY_MPT_wrapper()
|
/linux-6.3-rc2/drivers/infiniband/hw/hns/ |
A D | hns_roce_mr.c | 52 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in alloc_mr_key() 67 err = hns_roce_table_get(hr_dev, &hr_dev->mr_table.mtpt_table, in alloc_mr_key() 84 hns_roce_table_put(hr_dev, &hr_dev->mr_table.mtpt_table, obj); in free_mr_key() 85 ida_free(&hr_dev->mr_table.mtpt_ida.ida, (int)obj); in free_mr_key() 179 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in hns_roce_init_mr_table() 471 hns_roce_table_put(hr_dev, &hr_dev->mr_table.mtpt_table, in hns_roce_mw_free() 475 ida_free(&hr_dev->mr_table.mtpt_ida.ida, in hns_roce_mw_free() 482 struct hns_roce_mr_table *mr_table = &hr_dev->mr_table; in hns_roce_mw_enable() local 489 ret = hns_roce_table_get(hr_dev, &mr_table->mtpt_table, mtpt_idx); in hns_roce_mw_enable() 522 hns_roce_table_put(hr_dev, &mr_table->mtpt_table, mtpt_idx); in hns_roce_mw_enable() [all …]
|
A D | hns_roce_alloc.c | 183 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
|
A D | hns_roce_main.c | 687 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table, in hns_roce_init_hem() 830 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table); in hns_roce_init_hem()
|
A D | hns_roce_device.h | 926 struct hns_roce_mr_table mr_table; member
|
A D | hns_roce_hem.c | 961 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table); in hns_roce_cleanup_hem()
|
/linux-6.3-rc2/include/net/netns/ |
A D | ipv6.h | 103 struct mr_table *mrt6;
|
A D | ipv4.h | 220 struct mr_table *mrt;
|