Home
last modified time | relevance | path

Searched refs:mrt (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/net/ipv4/
Dipmr_base.c35 void (*table_set)(struct mr_table *mrt, in mr_table_alloc() argument
38 struct mr_table *mrt; in mr_table_alloc() local
41 mrt = kzalloc(sizeof(*mrt), GFP_KERNEL); in mr_table_alloc()
42 if (!mrt) in mr_table_alloc()
44 mrt->id = id; in mr_table_alloc()
45 write_pnet(&mrt->net, net); in mr_table_alloc()
47 mrt->ops = *ops; in mr_table_alloc()
48 err = rhltable_init(&mrt->mfc_hash, mrt->ops.rht_params); in mr_table_alloc()
50 kfree(mrt); in mr_table_alloc()
53 INIT_LIST_HEAD(&mrt->mfc_cache_list); in mr_table_alloc()
[all …]
Dipmr.c73 struct mr_table *mrt; member
103 static void ipmr_free_table(struct mr_table *mrt);
105 static void ip_mr_forward(struct net *net, struct mr_table *mrt,
108 static int ipmr_cache_report(const struct mr_table *mrt,
110 static void mroute_netlink_event(struct mr_table *mrt, struct mfc_cache *mfc,
112 static void igmpmsg_netlink_event(const struct mr_table *mrt, struct sk_buff *pkt);
113 static void mroute_clean_tables(struct mr_table *mrt, int flags);
117 #define ipmr_for_each_table(mrt, net) \ argument
118 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list, \
123 struct mr_table *mrt) in ipmr_mr_table_iter() argument
[all …]
/Linux-v6.6/net/ipv6/
Dip6mr.c58 struct mr_table *mrt; member
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);
106 #define ip6mr_for_each_table(mrt, net) \ argument
107 list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list, \
112 struct mr_table *mrt) in ip6mr_mr_table_iter() argument
[all …]
Daddrconf.c112 static inline s32 rfc3315_s14_backoff_update(s32 rt, s32 mrt) in rfc3315_s14_backoff_update() argument
117 if ((s32)tmp > mrt) { in rfc3315_s14_backoff_update()
119 tmp = get_random_u32_inclusive(900000, 1100000) * (u64)mrt; in rfc3315_s14_backoff_update()
/Linux-v6.6/include/linux/
Dmroute_base.h277 void (*table_set)(struct mr_table *mrt,
283 void *mr_mfc_find_parent(struct mr_table *mrt,
285 void *mr_mfc_find_any_parent(struct mr_table *mrt, int vifi);
286 void *mr_mfc_find_any(struct mr_table *mrt, int vifi, void *hasharg);
288 int mr_fill_mroute(struct mr_table *mrt, struct sk_buff *skb,
290 int mr_table_dump(struct mr_table *mrt, struct sk_buff *skb,
292 int (*fill)(struct mr_table *mrt, struct sk_buff *skb,
298 struct mr_table *mrt),
299 int (*fill)(struct mr_table *mrt,
310 struct mr_table *mrt),
[all …]
/Linux-v6.6/include/net/netns/
Dipv4.h222 struct mr_table *mrt; member
/Linux-v6.6/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c7406 struct mlxsw_sp_mr_table *mrt; in mlxsw_sp_router_fibmr_add() local
7413 mrt = mlxsw_sp_router_fibmr_family_to_table(vr, men_info->info.family); in mlxsw_sp_router_fibmr_add()
7414 return mlxsw_sp_mr_route_add(mrt, men_info->mfc, replace); in mlxsw_sp_router_fibmr_add()
7420 struct mlxsw_sp_mr_table *mrt; in mlxsw_sp_router_fibmr_del() local
7427 mrt = mlxsw_sp_router_fibmr_family_to_table(vr, men_info->info.family); in mlxsw_sp_router_fibmr_del()
7428 mlxsw_sp_mr_route_del(mrt, men_info->mfc); in mlxsw_sp_router_fibmr_del()
7436 struct mlxsw_sp_mr_table *mrt; in mlxsw_sp_router_fibmr_vif_add() local
7444 mrt = mlxsw_sp_router_fibmr_family_to_table(vr, ven_info->info.family); in mlxsw_sp_router_fibmr_vif_add()
7446 return mlxsw_sp_mr_vif_add(mrt, ven_info->dev, in mlxsw_sp_router_fibmr_vif_add()
7455 struct mlxsw_sp_mr_table *mrt; in mlxsw_sp_router_fibmr_vif_del() local
[all …]