Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_mr.c55 bool (*is_route_valid)(const struct mlxsw_sp_mr_table *mr_table,
57 void (*key_create)(struct mlxsw_sp_mr_table *mr_table,
60 bool (*is_route_starg)(const struct mlxsw_sp_mr_table *mr_table,
86 const struct mlxsw_sp_mr_table *mr_table; member
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()
207 mlxsw_sp_mr_route_info_create(struct mlxsw_sp_mr_table *mr_table, in mlxsw_sp_mr_route_info_create() argument
247 static int mlxsw_sp_mr_route_write(struct mlxsw_sp_mr_table *mr_table,
248 mlxsw_sp_mr_route_write(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route * mr_route,bool replace) mlxsw_sp_mr_route_write() argument
288 mlxsw_sp_mr_route_erase(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route * mr_route) mlxsw_sp_mr_route_erase() argument
299 mlxsw_sp_mr_route_create(struct mlxsw_sp_mr_table * mr_table,struct mr_mfc * mfc) mlxsw_sp_mr_route_create() argument
344 mlxsw_sp_mr_route_destroy(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route * mr_route) mlxsw_sp_mr_route_destroy() argument
373 __mlxsw_sp_mr_route_del(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route * mr_route) __mlxsw_sp_mr_route_del() argument
386 mlxsw_sp_mr_route_add(struct mlxsw_sp_mr_table * mr_table,struct mr_mfc * mfc,bool replace) mlxsw_sp_mr_route_add() argument
464 mlxsw_sp_mr_route_del(struct mlxsw_sp_mr_table * mr_table,struct mr_mfc * mfc) mlxsw_sp_mr_route_del() argument
482 mlxsw_sp_mr_route_ivif_resolve(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route_vif_entry * rve) mlxsw_sp_mr_route_ivif_resolve() argument
517 mlxsw_sp_mr_route_ivif_unresolve(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route_vif_entry * rve) mlxsw_sp_mr_route_ivif_unresolve() argument
531 mlxsw_sp_mr_route_evif_resolve(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route_vif_entry * rve) mlxsw_sp_mr_route_evif_resolve() argument
590 mlxsw_sp_mr_route_evif_unresolve(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route_vif_entry * rve) mlxsw_sp_mr_route_evif_unresolve() argument
623 mlxsw_sp_mr_vif_resolve(struct mlxsw_sp_mr_table * mr_table,struct net_device * dev,struct mlxsw_sp_mr_vif * mr_vif,unsigned long vif_flags,const struct mlxsw_sp_rif * rif) mlxsw_sp_mr_vif_resolve() argument
664 mlxsw_sp_mr_vif_unresolve(struct mlxsw_sp_mr_table * mr_table,struct net_device * dev,struct mlxsw_sp_mr_vif * mr_vif) mlxsw_sp_mr_vif_unresolve() argument
683 mlxsw_sp_mr_vif_add(struct mlxsw_sp_mr_table * mr_table,struct net_device * dev,vifi_t vif_index,unsigned long vif_flags,const struct mlxsw_sp_rif * rif) mlxsw_sp_mr_vif_add() argument
696 mlxsw_sp_mr_vif_del(struct mlxsw_sp_mr_table * mr_table,vifi_t vif_index) mlxsw_sp_mr_vif_del() argument
708 mlxsw_sp_mr_dev_vif_lookup(struct mlxsw_sp_mr_table * mr_table,const struct mlxsw_sp_rif * rif) mlxsw_sp_mr_dev_vif_lookup() argument
719 mlxsw_sp_mr_rif_add(struct mlxsw_sp_mr_table * mr_table,const struct mlxsw_sp_rif * rif) mlxsw_sp_mr_rif_add() argument
734 mlxsw_sp_mr_rif_del(struct mlxsw_sp_mr_table * mr_table,const struct mlxsw_sp_rif * rif) mlxsw_sp_mr_rif_del() argument
748 mlxsw_sp_mr_rif_mtu_update(struct mlxsw_sp_mr_table * mr_table,const struct mlxsw_sp_rif * rif,int mtu) mlxsw_sp_mr_rif_mtu_update() argument
777 mlxsw_sp_mr_route4_validate(const struct mlxsw_sp_mr_table * mr_table,const struct mr_mfc * c) mlxsw_sp_mr_route4_validate() argument
794 mlxsw_sp_mr_route4_key(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route_key * key,struct mr_mfc * c) mlxsw_sp_mr_route4_key() argument
812 mlxsw_sp_mr_route4_starg(const struct mlxsw_sp_mr_table * mr_table,const struct mlxsw_sp_mr_route * mr_route) mlxsw_sp_mr_route4_starg() argument
824 mlxsw_sp_mr_route6_validate(const struct mlxsw_sp_mr_table * mr_table,const struct mr_mfc * c) mlxsw_sp_mr_route6_validate() argument
841 mlxsw_sp_mr_route6_key(struct mlxsw_sp_mr_table * mr_table,struct mlxsw_sp_mr_route_key * key,struct mr_mfc * c) mlxsw_sp_mr_route6_key() argument
858 mlxsw_sp_mr_route6_starg(const struct mlxsw_sp_mr_table * mr_table,const struct mlxsw_sp_mr_route * mr_route) mlxsw_sp_mr_route6_starg() argument
909 struct mlxsw_sp_mr_table *mr_table; mlxsw_sp_mr_table_create() local
954 mlxsw_sp_mr_table_destroy(struct mlxsw_sp_mr_table * mr_table) mlxsw_sp_mr_table_destroy() argument
970 mlxsw_sp_mr_table_flush(struct mlxsw_sp_mr_table * mr_table) mlxsw_sp_mr_table_flush() argument
986 mlxsw_sp_mr_table_empty(const struct mlxsw_sp_mr_table * mr_table) mlxsw_sp_mr_table_empty() argument
1018 struct mlxsw_sp_mr_table *mr_table; mlxsw_sp_mr_stats_update() local
[all...]
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/drivers/infiniband/hw/mthca/
H A Dmthca_mr.c195 if (mthca_table_get_range(dev, dev->mr_table.mtt_table, seg, in mthca_alloc_mtt_range()
233 return __mthca_alloc_mtt(dev, size, &dev->mr_table.mtt_buddy); in mthca_alloc_mtt()
243 mthca_table_put_range(dev, dev->mr_table.mtt_table, in mthca_free_mtt()
264 mtt_entry[0] = cpu_to_be64(dev->mr_table.mtt_base + in __mthca_write_mtt()
297 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table.mtt_buddy || in mthca_write_mtt_size()
318 mtts = dev->mr_table.tavor_fmr.mtt_base + mtt->first_seg * dev->limits.mtt_seg_size + in mthca_tavor_write_mtt_seg()
339 mtts = mthca_table_find(dev->mr_table.mtt_table, mtt->first_seg + in mthca_arbel_write_mtt_seg()
360 if (dev->mr_table.fmr_mtt_buddy != &dev->mr_table in mthca_write_mtt()
[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/net/ipv4/
H A Dipmr_base.c33 struct mr_table *mrt = container_of(to_rcu_work(work), in __mr_free_table()
34 struct mr_table, work); in __mr_free_table()
40 void mr_table_free(struct mr_table *mrt) in mr_table_free()
45 struct mr_table *
49 void (*table_set)(struct mr_table *mrt, in mr_table_alloc()
52 struct mr_table *mrt; in mr_table_alloc()
79 void *mr_mfc_find_parent(struct mr_table *mrt, void *hasharg, int parent) in mr_mfc_find_parent()
92 void *mr_mfc_find_any_parent(struct mr_table *mrt, int vifi) in mr_mfc_find_any_parent()
106 void *mr_mfc_find_any(struct mr_table *mrt, int vifi, void *hasharg) in mr_mfc_find_any()
128 struct mr_table *mrt = iter->mrt; in mr_vif_seq_idx()
[all …]
H A Dipmr.c75 struct mr_table *mrt;
104 static struct mr_table *ipmr_new_table(struct net *net, u32 id);
105 static void ipmr_free_table(struct mr_table *mrt,
108 static void ip_mr_forward(struct net *net, struct mr_table *mrt,
111 static int ipmr_cache_report(const struct mr_table *mrt,
114 static void mroute_netlink_event(struct mr_table *mrt, struct mfc_cache *mfc,
116 static void igmpmsg_netlink_event(const struct mr_table *mrt, struct sk_buff *pkt);
117 static void mroute_clean_tables(struct mr_table *mrt, int flags,
127 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter()
128 struct mr_table *mr in ipmr_mr_table_iter()
[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,
91 static void ip6_mr_forward(struct net *net, struct mr_table *mrt,
94 static int ip6mr_cache_report(const struct mr_table *mrt, struct sk_buff *pkt,
96 static void mr6_netlink_event(struct mr_table *mrt, struct mfc6_cache *mfc,
98 static void mrt6msg_netlink_event(const struct mr_table *mrt, struct sk_buff *pkt);
103 static void mroute_clean_tables(struct mr_table *mrt, int flags,
113 static struct mr_table *ip6mr_mr_table_iter(struct net *net, in ip6mr_mr_table_iter()
114 struct mr_table *mr 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.c2889 &mlx4_priv(dev)->mr_table.dmpt_table, in mlx4_QUERY_MPT_wrapper()
/linux/include/net/netns/
H A Dipv4.h279 struct mr_table __rcu *mrt;
/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_hem.c909 hns_roce_cleanup_hem_table(hr_dev, &hr_dev->mr_table.mtpt_table); in hns_roce_cleanup_hem()