Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dmroute_base.h216 struct mr_table;
246 struct mr_table { struct
278 struct mr_table * argument
282 void (*table_set)(struct mr_table *mrt,
288 void *mr_mfc_find_parent(struct mr_table *mrt,
290 void *mr_mfc_find_any_parent(struct mr_table *mrt, int vifi);
291 void *mr_mfc_find_any(struct mr_table *mrt, int vifi, void *hasharg);
293 int mr_fill_mroute(struct mr_table *mrt, struct sk_buff *skb,
295 int mr_table_dump(struct mr_table *mrt, struct sk_buff *skb,
297 int (*fill)(struct mr_table *mrt, struct sk_buff *skb,
[all …]
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c197 if (mthca_table_get_range(dev, dev->mr_table.mtt_table, seg, in mthca_alloc_mtt_range()
235 return __mthca_alloc_mtt(dev, size, &dev->mr_table.mtt_buddy); in mthca_alloc_mtt()
245 mthca_table_put_range(dev, dev->mr_table.mtt_table, in mthca_free_mtt()
266 mtt_entry[0] = cpu_to_be64(dev->mr_table.mtt_base + in __mthca_write_mtt()
299 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt_size()
320 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg()
341 mtts = mthca_table_find(dev->mr_table.mtt_table, mtt->first_seg + in mthca_arbel_write_mtt_seg()
362 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt()
438 key = mthca_alloc(&dev->mr_table.mpt_alloc); in mthca_mr_alloc()
445 err = mthca_table_get(dev, dev->mr_table.mpt_table, key); in mthca_mr_alloc()
[all …]
H 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()
H 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()
H A Dmthca_dev.h340 struct mthca_mr_table mr_table; member
/linux/drivers/net/ethernet/mellanox/mlxsw/
H 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);
/linux/net/ipv4/
H A Dipmr_base.c31 struct mr_table *
35 void (*table_set)(struct mr_table *mrt, in mr_table_alloc()
38 struct mr_table *mrt; in mr_table_alloc()
64 void *mr_mfc_find_parent(struct mr_table *mrt, void *hasharg, int parent) in mr_mfc_find_parent()
78 void *mr_mfc_find_any_parent(struct mr_table *mrt, int vifi) in mr_mfc_find_any_parent()
93 void *mr_mfc_find_any(struct mr_table *mrt, int vifi, void *hasharg) in mr_mfc_find_any()
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()
[all …]
/linux/net/ipv6/
H A Dip6mr.c58 struct mr_table *mrt;
87 static struct mr_table *ip6mr_new_table(struct net *net, u32 id);
88 static void ip6mr_free_table(struct mr_table *mrt);
90 static void ip6_mr_forward(struct net *net, struct mr_table *mrt,
93 static int ip6mr_cache_report(const struct mr_table *mrt, struct sk_buff *pkt,
95 static void mr6_netlink_event(struct mr_table *mrt, struct mfc6_cache *mfc,
97 static void mrt6msg_netlink_event(const struct mr_table *mrt, struct sk_buff *pkt);
102 static void mroute_clean_tables(struct mr_table *mrt, int flags);
111 static struct mr_table *ip6mr_mr_table_iter(struct net *net, in ip6mr_mr_table_iter()
112 struct mr_table *mrt) in ip6mr_mr_table_iter()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H 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()
H A Dmlx4.h902 struct mlx4_mr_table mr_table; member
H A Dresource_tracker.c2896 &mlx4_priv(dev)->mr_table.dmpt_table, in mlx4_QUERY_MPT_wrapper()
/linux/include/net/netns/
H A Dipv6.h106 struct mr_table *mrt6;
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_alloc.c184 ida_destroy(&hr_dev->mr_table.mtpt_ida.ida); in hns_roce_cleanup_bitmap()
H A Dhns_roce_main.c898 ret = hns_roce_init_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table, in hns_roce_init_hem()
1041 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table); in hns_roce_init_hem()
H A Dhns_roce_device.h997 struct hns_roce_mr_table mr_table; member