/Linux-v5.10/net/ipv4/ |
D | ipmr_base.c | 35 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 …]
|
D | ipmr.c | 73 struct mr_table *mrt; member 98 static void ipmr_free_table(struct mr_table *mrt); 100 static void ip_mr_forward(struct net *net, struct mr_table *mrt, 103 static int ipmr_cache_report(struct mr_table *mrt, 105 static void mroute_netlink_event(struct mr_table *mrt, struct mfc_cache *mfc, 107 static void igmpmsg_netlink_event(struct mr_table *mrt, struct sk_buff *pkt); 108 static void mroute_clean_tables(struct mr_table *mrt, int flags); 112 #define ipmr_for_each_table(mrt, net) \ argument 113 list_for_each_entry_rcu(mrt, &net->ipv4.mr_tables, list, \ 118 struct mr_table *mrt) in ipmr_mr_table_iter() argument [all …]
|
/Linux-v5.10/net/ipv6/ |
D | ip6mr.c | 58 struct mr_table *mrt; member 83 static void ip6mr_free_table(struct mr_table *mrt); 85 static void ip6_mr_forward(struct net *net, struct mr_table *mrt, 88 static int ip6mr_cache_report(struct mr_table *mrt, struct sk_buff *pkt, 90 static void mr6_netlink_event(struct mr_table *mrt, struct mfc6_cache *mfc, 92 static void mrt6msg_netlink_event(struct mr_table *mrt, struct sk_buff *pkt); 95 static void mroute_clean_tables(struct mr_table *mrt, int flags); 99 #define ip6mr_for_each_table(mrt, net) \ argument 100 list_for_each_entry_rcu(mrt, &net->ipv6.mr6_tables, list, \ 105 struct mr_table *mrt) in ip6mr_mr_table_iter() argument [all …]
|
D | addrconf.c | 111 static inline s32 rfc3315_s14_backoff_update(s32 rt, s32 mrt) in rfc3315_s14_backoff_update() argument 116 if ((s32)tmp > mrt) { in rfc3315_s14_backoff_update() 118 tmp = (900000 + prandom_u32() % 200001) * (u64)mrt; in rfc3315_s14_backoff_update()
|
/Linux-v5.10/include/linux/ |
D | mroute_base.h | 272 void (*table_set)(struct mr_table *mrt, 278 void *mr_mfc_find_parent(struct mr_table *mrt, 280 void *mr_mfc_find_any_parent(struct mr_table *mrt, int vifi); 281 void *mr_mfc_find_any(struct mr_table *mrt, int vifi, void *hasharg); 283 int mr_fill_mroute(struct mr_table *mrt, struct sk_buff *skb, 285 int mr_table_dump(struct mr_table *mrt, struct sk_buff *skb, 287 int (*fill)(struct mr_table *mrt, struct sk_buff *skb, 293 struct mr_table *mrt), 294 int (*fill)(struct mr_table *mrt, 305 struct mr_table *mrt), [all …]
|
/Linux-v5.10/include/net/netns/ |
D | ipv4.h | 211 struct mr_table *mrt; member
|
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 5712 struct mlxsw_sp_mr_table *mrt; in mlxsw_sp_router_fibmr_add() local 5722 mrt = mlxsw_sp_router_fibmr_family_to_table(vr, men_info->info.family); in mlxsw_sp_router_fibmr_add() 5723 return mlxsw_sp_mr_route_add(mrt, men_info->mfc, replace); in mlxsw_sp_router_fibmr_add() 5729 struct mlxsw_sp_mr_table *mrt; in mlxsw_sp_router_fibmr_del() local 5739 mrt = mlxsw_sp_router_fibmr_family_to_table(vr, men_info->info.family); in mlxsw_sp_router_fibmr_del() 5740 mlxsw_sp_mr_route_del(mrt, men_info->mfc); in mlxsw_sp_router_fibmr_del() 5748 struct mlxsw_sp_mr_table *mrt; in mlxsw_sp_router_fibmr_vif_add() local 5759 mrt = mlxsw_sp_router_fibmr_family_to_table(vr, ven_info->info.family); in mlxsw_sp_router_fibmr_vif_add() 5761 return mlxsw_sp_mr_vif_add(mrt, ven_info->dev, in mlxsw_sp_router_fibmr_vif_add() 5770 struct mlxsw_sp_mr_table *mrt; in mlxsw_sp_router_fibmr_vif_del() local [all …]
|