Home
last modified time | relevance | path

Searched refs:mr_table (Results 1 – 23 of 23) sorted by relevance

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum_mr.c143 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 Dspectrum_mr.h73 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 Dspectrum_router.c745 !!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 Dmroute_base.h216 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 Dmthca_mr.c299 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 Dmthca_main.c421 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 Dmthca_profile.c221 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 Dmthca_dev.h340 struct mthca_mr_table mr_table; member
/linux-6.3-rc2/net/ipv4/
A Dipmr_base.c31 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 Dipmr.c73 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 Dip6mr.c58 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 Dmr.c152 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 Dprofile.c230 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 Dmain.c1700 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 Dmlx4.h895 struct mlx4_mr_table mr_table; member
A Dresource_tracker.c2896 &mlx4_priv(dev)->mr_table.dmpt_table, in mlx4_QUERY_MPT_wrapper()
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_mr.c52 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 Dhns_roce_alloc.c183 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
A Dhns_roce_main.c687 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 Dhns_roce_device.h926 struct hns_roce_mr_table mr_table; member
A Dhns_roce_hem.c961 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 Dipv6.h103 struct mr_table *mrt6;
A Dipv4.h220 struct mr_table *mrt;

Completed in 96 milliseconds