/linux/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 | 773 !!vr->mr_table[MLXSW_SP_L3_PROTO_IPV4] || in mlxsw_sp_vr_is_used() 774 !!vr->mr_table[MLXSW_SP_L3_PROTO_IPV6]; in mlxsw_sp_vr_is_used() 904 vr->mr_table[MLXSW_SP_L3_PROTO_IPV4] = mr4_table; in mlxsw_sp_vr_create() 922 vr->mr_table[MLXSW_SP_L3_PROTO_IPV6] = NULL; in mlxsw_sp_vr_destroy() 924 vr->mr_table[MLXSW_SP_L3_PROTO_IPV4] = NULL; in mlxsw_sp_vr_destroy() 7347 return vr->mr_table[MLXSW_SP_L3_PROTO_IPV4]; in mlxsw_sp_router_fibmr_family_to_table() 7349 return vr->mr_table[MLXSW_SP_L3_PROTO_IPV6]; in mlxsw_sp_router_fibmr_family_to_table() 7481 mlxsw_sp_mr_table_flush(vr->mr_table[j]); in mlxsw_sp_router_fib_flush() 8213 mlxsw_sp_mr_rif_del(vr->mr_table[i], rif); in mlxsw_sp_rif_create() 8242 mlxsw_sp_mr_rif_del(vr->mr_table[i], rif); in mlxsw_sp_rif_destroy() [all …]
|
/linux/include/linux/ |
A D | mroute_base.h | 211 struct mr_table; 241 struct mr_table { struct 268 struct mr_table * argument 293 struct mr_table *mrt), 305 struct mr_table *mrt), 344 struct mr_table *mrt), in mr_rtm_dumproute() 345 int (*fill)(struct mr_table *mrt, in mr_rtm_dumproute() 360 struct mr_table *mrt), in mr_dump() 375 struct mr_table *mrt; 381 struct mr_table *mrt; [all …]
|
/linux/drivers/infiniband/hw/mthca/ |
A D | mthca_mr.c | 301 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt_size() 364 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt() 615 dev->mr_table.mpt_base); in mthca_init_mr_table() 617 dev->mr_table.tavor_fmr.mpt_base = in mthca_init_mr_table() 628 dev->mr_table.mtt_base); in mthca_init_mr_table() 630 dev->mr_table.tavor_fmr.mtt_base = in mthca_init_mr_table() 649 dev->mr_table.fmr_mtt_buddy = in mthca_init_mr_table() 650 &dev->mr_table.tavor_fmr.mtt_buddy; in mthca_init_mr_table() 652 dev->mr_table.fmr_mtt_buddy = &dev->mr_table.mtt_buddy; in mthca_init_mr_table() 675 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 | 223 dev->mr_table.mpt_base = profile[i].start; in mthca_make_profile() 229 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/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() 346 struct mr_table *mrt), in mr_rtm_dumproute() 347 int (*fill)(struct mr_table *mrt, in mr_rtm_dumproute() 355 struct mr_table *mrt; in mr_rtm_dumproute() 392 struct mr_table *mrt), in mr_dump() [all …]
|
A D | ipmr.c | 73 struct mr_table *mrt; 120 struct mr_table *ret; in ipmr_mr_table_iter() 136 struct mr_table *mrt; in ipmr_get_table() 170 struct mr_table *mrt; in ipmr_rule_action() 241 struct mr_table *mrt; in ipmr_rules_init() 325 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() 1325 struct mr_table *mrt; in mrtsock_destruct() 1353 struct mr_table *mrt; in ip_mroute_setsockopt() [all …]
|
/linux/net/ipv6/ |
A D | ip6mr.c | 58 struct mr_table *mrt; 107 struct mr_table *ret; in ip6mr_mr_table_iter() 123 struct mr_table *mrt; in ip6mr_get_table() 157 struct mr_table *mrt; in ip6mr_rule_action() 228 struct mr_table *mrt; in ip6mr_rules_init() 313 struct mr_table *mrt; in ip6mr_rules_init() 381 struct mr_table *mrt; in ip6mr_new_table() 410 struct mr_table *mrt; in ip6mr_vif_seq_start() 460 struct mr_table *mrt; in ipmr_mfc_seq_start() 527 struct mr_table *mrt; in pim6_rcv() [all …]
|
/linux/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/drivers/infiniband/hw/hns/ |
A D | hns_roce_mr.c | 71 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in alloc_mr_key() 86 err = hns_roce_table_get(hr_dev, &hr_dev->mr_table.mtpt_table, in alloc_mr_key() 103 hns_roce_table_put(hr_dev, &hr_dev->mr_table.mtpt_table, obj); in free_mr_key() 104 ida_free(&hr_dev->mr_table.mtpt_ida.ida, (int)obj); in free_mr_key() 202 struct hns_roce_ida *mtpt_ida = &hr_dev->mr_table.mtpt_ida; in hns_roce_init_mr_table() 495 hns_roce_table_put(hr_dev, &hr_dev->mr_table.mtpt_table, in hns_roce_mw_free() 499 ida_free(&hr_dev->mr_table.mtpt_ida.ida, in hns_roce_mw_free() 506 struct hns_roce_mr_table *mr_table = &hr_dev->mr_table; in hns_roce_mw_enable() local 513 ret = hns_roce_table_get(hr_dev, &mr_table->mtpt_table, mtpt_idx); in hns_roce_mw_enable() 546 hns_roce_table_put(hr_dev, &mr_table->mtpt_table, mtpt_idx); in hns_roce_mw_enable() [all …]
|
A D | hns_roce_alloc.c | 184 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
|
A D | hns_roce_main.c | 660 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table, in hns_roce_init_hem() 803 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table); in hns_roce_init_hem()
|
A D | hns_roce_device.h | 988 struct hns_roce_mr_table mr_table; member
|
A D | hns_roce_hem.c | 968 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table); in hns_roce_cleanup_hem()
|
A D | hns_roce_hw_v1.c | 1201 ida_free(&hr_dev->mr_table.mtpt_ida.ida, (int)key_to_hw_index(mr->key)); in hns_roce_v1_dereg_mr()
|
/linux/include/net/netns/ |
A D | ipv6.h | 98 struct mr_table *mrt6;
|
A D | ipv4.h | 206 struct mr_table *mrt;
|