Searched refs:nh (Results 1 - 25 of 93) sorted by relevance

1234

/linux-master/kernel/
H A Dnotifier.c142 * @nh: Pointer to head of the atomic notifier chain
149 int atomic_notifier_chain_register(struct atomic_notifier_head *nh, argument
155 spin_lock_irqsave(&nh->lock, flags);
156 ret = notifier_chain_register(&nh->head, n, false);
157 spin_unlock_irqrestore(&nh->lock, flags);
164 * @nh: Pointer to head of the atomic notifier chain
172 int atomic_notifier_chain_register_unique_prio(struct atomic_notifier_head *nh, argument
178 spin_lock_irqsave(&nh->lock, flags);
179 ret = notifier_chain_register(&nh->head, n, true);
180 spin_unlock_irqrestore(&nh
194 atomic_notifier_chain_unregister(struct atomic_notifier_head *nh, struct notifier_block *n) argument
225 atomic_notifier_call_chain(struct atomic_notifier_head *nh, unsigned long val, void *v) argument
247 atomic_notifier_call_chain_is_empty(struct atomic_notifier_head *nh) argument
257 __blocking_notifier_chain_register(struct blocking_notifier_head *nh, struct notifier_block *n, bool unique_priority) argument
287 blocking_notifier_chain_register(struct blocking_notifier_head *nh, struct notifier_block *n) argument
304 blocking_notifier_chain_register_unique_prio(struct blocking_notifier_head *nh, struct notifier_block *n) argument
321 blocking_notifier_chain_unregister(struct blocking_notifier_head *nh, struct notifier_block *n) argument
341 blocking_notifier_call_chain_robust(struct blocking_notifier_head *nh, unsigned long val_up, unsigned long val_down, void *v) argument
376 blocking_notifier_call_chain(struct blocking_notifier_head *nh, unsigned long val, void *v) argument
410 raw_notifier_chain_register(struct raw_notifier_head *nh, struct notifier_block *n) argument
427 raw_notifier_chain_unregister(struct raw_notifier_head *nh, struct notifier_block *n) argument
434 raw_notifier_call_chain_robust(struct raw_notifier_head *nh, unsigned long val_up, unsigned long val_down, void *v) argument
458 raw_notifier_call_chain(struct raw_notifier_head *nh, unsigned long val, void *v) argument
480 srcu_notifier_chain_register(struct srcu_notifier_head *nh, struct notifier_block *n) argument
510 srcu_notifier_chain_unregister(struct srcu_notifier_head *nh, struct notifier_block *n) argument
547 srcu_notifier_call_chain(struct srcu_notifier_head *nh, unsigned long val, void *v) argument
572 srcu_init_notifier_head(struct srcu_notifier_head *nh) argument
[all...]
/linux-master/include/net/
H A Dnexthop.h106 struct nexthop *nh; member in struct:nh_grp_entry
144 struct list_head fi_list; /* v4 entries using nh */
145 struct list_head f6i_list; /* v6 entries using nh */
146 struct list_head fdb_list; /* fdb entries using this nh */
147 struct list_head grp_list; /* nh group entries using this nh */
152 u8 protocol; /* app managing this nh */
196 struct nh_notifier_single_info nh; member in struct:nh_notifier_grp_entry_info
237 struct nh_notifier_single_info *nh; member in union:nh_notifier_info::__anon2508
262 static inline bool nexthop_get(struct nexthop *nh) argument
267 nexthop_put(struct nexthop *nh) argument
279 nexthop_is_fdb(const struct nexthop *nh) argument
294 nexthop_has_v4(const struct nexthop *nh) argument
305 nexthop_is_multipath(const struct nexthop *nh) argument
318 nexthop_num_path(const struct nexthop *nh) argument
346 nexthop_mpath_fill_node(struct sk_buff *skb, struct nexthop *nh, u8 rt_family) argument
366 nexthop_is_blackhole(const struct nexthop *nh) argument
387 struct nexthop *nh; local
396 nexthop_fib_nhc(struct nexthop *nh, int nhsel) argument
420 nexthop_get_nhc_lookup(const struct nexthop *nh, int fib_flags, const struct flowi4 *flp, int *nhsel) argument
451 nexthop_uses_dev(const struct nexthop *nh, const struct net_device *dev) argument
510 nexthop_fib6_nh(struct nexthop *nh) argument
540 struct nexthop *nh = res->f6i->nh; local
559 nexthop_get_family(struct nexthop *nh) argument
567 nexthop_fdb_nhc(struct nexthop *nh) argument
574 nexthop_path_fdb_result(struct nexthop *nh, int hash) argument
[all...]
/linux-master/tools/testing/selftests/net/tcp_ao/lib/
H A Dnetlink.c60 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) argument
62 return (struct rtattr *)((char *)(nh) + RTA_ALIGN((nh)->nlmsg_len));
65 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz, argument
69 struct rtattr *attr = rtattr_hdr(nh);
70 size_t nl_size = RTA_ALIGN(nh->nlmsg_len) + RTA_LENGTH(size);
76 nh->nlmsg_len = nl_size;
85 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, argument
88 struct rtattr *ret = rtattr_hdr(nh);
90 if (rtattr_pack(nh, req_s
96 rtattr_begin(struct nlmsghdr *nh, size_t req_sz, unsigned short rta_type) argument
102 rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) argument
109 veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz, const char *peer, int ns) argument
139 struct nlmsghdr nh; member in struct:__anon4484
202 struct nlmsghdr nh; member in struct:__anon4485
249 struct nlmsghdr nh; member in struct:__anon4486
311 struct nlmsghdr nh; member in struct:__anon4487
353 struct nlmsghdr nh; member in struct:__anon4488
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dxfrm_info.c171 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, argument
175 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len));
178 nh->nlmsg_len = RTA_ALIGN(nh->nlmsg_len) + RTA_ALIGN(rta->rta_len);
182 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, argument
185 struct rtattr *rta = rtattr_add(nh, type, strlen(s));
191 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) argument
193 return rtattr_add(nh, type, 0);
196 static void rtattr_end(struct nlmsghdr *nh, struc argument
206 struct nlmsghdr nh; member in struct:__anon4425
213 struct nlmsghdr *nh; local
[all...]
/linux-master/include/linux/
H A Dnotifier.h94 extern void srcu_init_notifier_head(struct srcu_notifier_head *nh);
146 extern int atomic_notifier_chain_register(struct atomic_notifier_head *nh,
148 extern int blocking_notifier_chain_register(struct blocking_notifier_head *nh,
150 extern int raw_notifier_chain_register(struct raw_notifier_head *nh,
152 extern int srcu_notifier_chain_register(struct srcu_notifier_head *nh,
156 struct atomic_notifier_head *nh, struct notifier_block *nb);
158 struct blocking_notifier_head *nh, struct notifier_block *nb);
160 extern int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh,
162 extern int blocking_notifier_chain_unregister(struct blocking_notifier_head *nh,
164 extern int raw_notifier_chain_unregister(struct raw_notifier_head *nh,
[all...]
/linux-master/tools/testing/selftests/net/
H A Dtap.c33 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, argument
37 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len));
40 nh->nlmsg_len = RTA_ALIGN(nh->nlmsg_len) + RTA_ALIGN(rta->rta_len);
44 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) argument
46 return rtattr_add(nh, type, 0);
49 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) argument
51 uint8_t *end = (uint8_t *)nh + nh
56 rtattr_add_str(struct nlmsghdr *nh, unsigned short type, const char *s) argument
65 rtattr_add_strsz(struct nlmsghdr *nh, unsigned short type, const char *s) argument
74 rtattr_add_any(struct nlmsghdr *nh, unsigned short type, const void *arr, size_t len) argument
83 dev_create(const char *dev, const char *link_type, int (*fill_rtattr)(struct nlmsghdr *nh), int (*fill_info_data)(struct nlmsghdr *nh)) argument
88 struct nlmsghdr nh; member in struct:__anon206
146 struct nlmsghdr nh; member in struct:__anon207
177 macvtap_fill_rtattr(struct nlmsghdr *nh) argument
[all...]
H A Dipsec.c210 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) argument
212 return (struct rtattr *)((char *)(nh) + RTA_ALIGN((nh)->nlmsg_len));
215 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz, argument
219 struct rtattr *attr = rtattr_hdr(nh);
220 size_t nl_size = RTA_ALIGN(nh->nlmsg_len) + RTA_LENGTH(size);
226 nh->nlmsg_len = nl_size;
235 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, argument
238 struct rtattr *ret = rtattr_hdr(nh);
240 if (rtattr_pack(nh, req_s
246 rtattr_begin(struct nlmsghdr *nh, size_t req_sz, unsigned short rta_type) argument
252 rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) argument
259 veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz, const char *peer, int ns) argument
312 struct nlmsghdr nh; member in struct:__anon226
362 struct nlmsghdr nh; member in struct:__anon227
402 struct nlmsghdr nh; member in struct:__anon228
429 struct nlmsghdr nh; member in struct:__anon229
826 xfrm_state_pack_algo(struct nlmsghdr *nh, size_t req_sz, struct xfrm_desc *desc) argument
919 struct nlmsghdr nh; member in struct:__anon234
1008 struct nlmsghdr nh; member in struct:__anon235
1012 struct nlmsghdr nh; member in struct:__anon236
1101 struct nlmsghdr nh; member in struct:__anon238
1176 struct nlmsghdr nh; member in struct:__anon239
1226 struct nlmsghdr nh; member in struct:__anon240
1277 struct nlmsghdr nh; member in struct:__anon241
1281 struct nlmsghdr nh; member in struct:__anon242
1367 struct nlmsghdr nh; member in struct:__anon244
1438 struct nlmsghdr nh; member in struct:__anon246
1510 struct nlmsghdr nh; member in struct:__anon248
1591 struct nlmsghdr nh; member in struct:__anon250
1648 struct nlmsghdr nh; member in struct:__anon252
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_ipv6_route.c19 struct nexthop *nh; local
28 nh = rt->nh;
29 if (rt->nh)
30 fib6_nh = &nh->nh_info->fib6_nh;
/linux-master/net/ipv4/
H A Dnexthop.c23 static void remove_nexthop(struct net *net, struct nexthop *nh,
114 const struct nexthop *nh)
116 struct nh_info *nhi = rtnl_dereference(nh->nh_info);
119 info->nh = kzalloc(sizeof(*info->nh), GFP_KERNEL);
120 if (!info->nh)
123 __nh_notifier_single_info_init(info->nh, nhi);
130 kfree(info->nh);
153 nhi = rtnl_dereference(nhge->nh->nh_info);
155 __nh_notifier_single_info_init(&info->nh_grp->nh_entries[i].nh,
113 nh_notifier_single_info_init(struct nh_notifier_info *info, const struct nexthop *nh) argument
194 nh_notifier_grp_info_init(struct nh_notifier_info *info, const struct nexthop *nh) argument
206 nh_notifier_grp_info_fini(struct nh_notifier_info *info, const struct nexthop *nh) argument
217 nh_notifier_info_init(struct nh_notifier_info *info, const struct nexthop *nh) argument
228 nh_notifier_info_fini(struct nh_notifier_info *info, const struct nexthop *nh) argument
237 call_nexthop_notifiers(struct net *net, enum nexthop_event_type event_type, struct nexthop *nh, struct netlink_ext_ack *extack) argument
272 struct nexthop *nh; local
404 call_nexthop_res_table_notifiers(struct net *net, struct nexthop *nh, struct netlink_ext_ack *extack) argument
439 call_nexthop_notifier(struct notifier_block *nb, struct net *net, enum nexthop_event_type event_type, struct nexthop *nh, struct netlink_ext_ack *extack) argument
482 nexthop_free_group(struct nexthop *nh) argument
505 nexthop_free_single(struct nexthop *nh) argument
523 struct nexthop *nh = container_of(head, struct nexthop, rcu); local
536 struct nexthop *nh; local
596 struct nexthop *nh; local
706 nh_notifier_grp_hw_stats_init(struct nh_notifier_info *info, const struct nexthop *nh) argument
747 nh_grp_hw_stats_apply_update(struct nexthop *nh, struct nh_notifier_info *info) argument
763 nh_grp_hw_stats_update(struct nexthop *nh, bool *hw_stats_used) argument
825 nla_put_nh_group_stats(struct sk_buff *skb, struct nexthop *nh, u32 op_flags) argument
867 nla_put_nh_group(struct sk_buff *skb, struct nexthop *nh, u32 op_flags) argument
910 nh_fill_node(struct sk_buff *skb, struct nexthop *nh, int event, u32 portid, u32 seq, unsigned int nlflags, u32 op_flags) argument
1001 nh_nlmsg_size_grp(struct nexthop *nh) argument
1014 nh_nlmsg_size_single(struct nexthop *nh) argument
1045 nh_nlmsg_size(struct nexthop *nh) argument
1059 nexthop_notify(int event, struct nexthop *nh, struct nl_info *info) argument
1132 nh_fill_res_bucket(struct sk_buff *skb, struct nexthop *nh, struct nh_res_bucket *bucket, u16 bucket_index, int event, u32 portid, u32 seq, unsigned int nlflags, struct netlink_ext_ack *extack) argument
1184 struct nexthop *nh = nhge->nh_parent; local
1207 valid_group_nh(struct nexthop *nh, unsigned int npaths, bool *is_fdb, struct netlink_ext_ack *extack) argument
1239 nh_check_attr_fdb_group(struct nexthop *nh, u8 *nh_family, struct netlink_ext_ack *extack) argument
1302 struct nexthop *nh; local
1341 ipv6_good_nh(const struct fib6_nh *nh) argument
1357 ipv4_good_nh(const struct fib_nh *nh) argument
1374 nexthop_is_good_nh(const struct nexthop *nh) argument
1456 nexthop_select_path(struct nexthop *nh, int hash) argument
1474 nexthop_for_each_fib6_nh(struct nexthop *nh, int (*cb)(struct fib6_nh *nh, void *arg), void *arg) argument
1515 fib6_check_nexthop(struct nexthop *nh, struct fib6_config *cfg, struct netlink_ext_ack *extack) argument
1596 fib_check_nexthop(struct nexthop *nh, u8 scope, struct netlink_ext_ack *extack) argument
1987 struct nexthop *nh = nhge->nh; local
2059 remove_nexthop_from_groups(struct net *net, struct nexthop *nh, struct nl_info *nlinfo) argument
2071 remove_nexthop_group(struct nexthop *nh, struct nl_info *nlinfo) argument
2093 __remove_nexthop_fib(struct net *net, struct nexthop *nh) argument
2115 __remove_nexthop(struct net *net, struct nexthop *nh, struct nl_info *nlinfo) argument
2133 remove_nexthop(struct net *net, struct nexthop *nh, struct nl_info *nlinfo) argument
2153 nh_rt_cache_flush(struct net *net, struct nexthop *nh, struct nexthop *replaced_nh) argument
2430 __nexthop_replace_notify(struct net *net, struct nexthop *nh, struct nl_info *info) argument
2459 nexthop_replace_notify(struct net *net, struct nexthop *nh, struct nl_info *info) argument
2543 struct nexthop *nh; local
2649 struct nexthop *nh; local
2665 struct nexthop *nh; local
2767 nh_create_ipv4(struct net *net, struct nexthop *nh, struct nh_info *nhi, struct nh_config *cfg, struct netlink_ext_ack *extack) argument
2806 nh_create_ipv6(struct net *net, struct nexthop *nh, struct nh_info *nhi, struct nh_config *cfg, struct netlink_ext_ack *extack) argument
2845 struct nexthop *nh; local
2901 struct nexthop *nh; local
3201 struct nexthop *nh; local
3257 struct nexthop *nh; local
3287 struct nexthop *nh; local
3337 nh_dump_filtered(struct nexthop *nh, struct nh_dump_filter *filter, u8 family) argument
3443 rtm_dump_walk_nexthops(struct sk_buff *skb, struct netlink_callback *cb, struct rb_root *root, struct rtm_dump_nh_ctx *ctx, int (*nh_cb)(struct sk_buff *skb, struct netlink_callback *cb, struct nexthop *nh, void *data), void *data) argument
3458 struct nexthop *nh; local
3473 rtm_dump_nexthop_cb(struct sk_buff *skb, struct netlink_callback *cb, struct nexthop *nh, void *data) argument
3513 struct nexthop *nh; local
3591 struct rtm_dump_nh_ctx nh; member in struct:rtm_dump_res_bucket_ctx
3609 rtm_dump_nexthop_bucket_nh(struct sk_buff *skb, struct netlink_callback *cb, struct nexthop *nh, struct rtm_dump_nexthop_bucket_data *dd) argument
3652 rtm_dump_nexthop_bucket_cb(struct sk_buff *skb, struct netlink_callback *cb, struct nexthop *nh, void *data) argument
3676 struct nexthop *nh; local
3760 struct nexthop *nh; local
3855 struct nexthop *nh; local
[all...]
H A Dfib_semantics.c70 int nhsel; const struct fib_nh *nh; \
71 for (nhsel = 0, nh = (fi)->fib_nh; \
73 nh++, nhsel++)
86 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
237 if (fi->nh) {
238 nexthop_put(fi->nh);
272 if (fi->nh) {
292 if (fi->nh || ofi->nh)
293 return nexthop_cmp(fi->nh, of
445 struct fib_nh *nh; local
622 fib_nh_init(struct net *net, struct fib_nh *nh, struct fib_config *cfg, int nh_weight, struct netlink_ext_ack *extack) argument
697 struct fib_nh *nh; local
855 fib_encap_match(struct net *net, u16 encap_type, struct nlattr *encap, const struct fib_nh *nh, const struct fib_config *cfg, struct netlink_ext_ack *extack) argument
901 struct fib_nh *nh; local
1051 fib_check_nh_v6_gw(struct net *net, struct fib_nh *nh, u32 table, struct netlink_ext_ack *extack) argument
1120 fib_check_nh_v4_gw(struct net *net, struct fib_nh *nh, u32 table, u8 scope, struct netlink_ext_ack *extack) argument
1214 fib_check_nh_nongw(struct net *net, struct fib_nh *nh, struct netlink_ext_ack *extack) argument
1249 fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, struct netlink_ext_ack *extack) argument
1327 struct fib_nh *nh; local
1350 struct fib_nh *nh; local
1390 struct nexthop *nh = NULL; local
1534 struct fib_nh *nh = fi->fib_nh; local
1841 struct fib_nh *nh; local
1901 call_fib_nh_notifiers(struct fib_nh *nh, enum fib_event_type event_type) argument
1971 struct fib_nh *nh; local
1992 struct fib_nh *nh; local
2140 struct fib_nh *nh; local
2195 fib_good_nh(const struct fib_nh *nh) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.h144 struct mlxsw_sp_nexthop *nh);
145 bool mlxsw_sp_nexthop_is_forward(const struct mlxsw_sp_nexthop *nh);
146 unsigned char *mlxsw_sp_nexthop_ha(struct mlxsw_sp_nexthop *nh);
147 int mlxsw_sp_nexthop_indexes(struct mlxsw_sp_nexthop *nh, u32 *p_adj_index,
149 struct mlxsw_sp_rif *mlxsw_sp_nexthop_rif(struct mlxsw_sp_nexthop *nh);
150 bool mlxsw_sp_nexthop_group_has_ipip(struct mlxsw_sp_nexthop *nh);
151 #define mlxsw_sp_nexthop_for_each(nh, router) \
152 for (nh = mlxsw_sp_nexthop_next(router, NULL); nh; \
153 nh
[all...]
H A Dspectrum_router.c3091 mlxsw_sp_nexthop_dev(const struct mlxsw_sp_nexthop *nh) argument
3093 if (!nh->crif)
3095 return nh->crif->key.dev;
3196 struct mlxsw_sp_nexthop *nh)
3198 struct mlxsw_sp_nexthop_group *nh_grp = nh->nhgi->nh_grp;
3203 nhct = xa_load(&nh_grp->nhgi->nexthop_counters, nh->id);
3213 ptr = xa_store(&nh_grp->nhgi->nexthop_counters, nh->id, nhct,
3228 struct mlxsw_sp_nexthop *nh)
3230 struct mlxsw_sp_nexthop_group *nh_grp = nh->nhgi->nh_grp;
3233 nhct = xa_load(&nh_grp->nhgi->nexthop_counters, nh
3195 mlxsw_sp_nexthop_sh_counter_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
3227 mlxsw_sp_nexthop_sh_counter_put(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
3244 mlxsw_sp_nexthop_counter_enable(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
3271 mlxsw_sp_nexthop_counter_disable(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
3284 mlxsw_sp_nexthop_counter_update(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
3293 mlxsw_sp_nexthop_counter_get(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh, u64 *p_counter) argument
3303 mlxsw_sp_nexthop_next(struct mlxsw_sp_router *router, struct mlxsw_sp_nexthop *nh) argument
3318 mlxsw_sp_nexthop_is_forward(const struct mlxsw_sp_nexthop *nh) argument
3323 mlxsw_sp_nexthop_ha(struct mlxsw_sp_nexthop *nh) argument
3331 mlxsw_sp_nexthop_indexes(struct mlxsw_sp_nexthop *nh, u32 *p_adj_index, u32 *p_adj_size, u32 *p_adj_hash_index) argument
3357 mlxsw_sp_nexthop_rif(struct mlxsw_sp_nexthop *nh) argument
3364 mlxsw_sp_nexthop_group_has_ipip(struct mlxsw_sp_nexthop *nh) argument
3485 const struct mlxsw_sp_nexthop *nh; local
3547 const struct mlxsw_sp_nexthop *nh; local
3671 mlxsw_sp_nexthop_insert(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
3678 mlxsw_sp_nexthop_remove(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
3740 __mlxsw_sp_nexthop_eth_update(struct mlxsw_sp *mlxsw_sp, u32 adj_index, struct mlxsw_sp_nexthop *nh, bool force, char *ratr_pl) argument
3782 mlxsw_sp_nexthop_eth_update(struct mlxsw_sp *mlxsw_sp, u32 adj_index, struct mlxsw_sp_nexthop *nh, bool force, char *ratr_pl) argument
3800 __mlxsw_sp_nexthop_ipip_update(struct mlxsw_sp *mlxsw_sp, u32 adj_index, struct mlxsw_sp_nexthop *nh, bool force, char *ratr_pl) argument
3812 mlxsw_sp_nexthop_ipip_update(struct mlxsw_sp *mlxsw_sp, u32 adj_index, struct mlxsw_sp_nexthop *nh, bool force, char *ratr_pl) argument
3831 mlxsw_sp_nexthop_update(struct mlxsw_sp *mlxsw_sp, u32 adj_index, struct mlxsw_sp_nexthop *nh, bool force, char *ratr_pl) argument
3855 struct mlxsw_sp_nexthop *nh; local
3994 struct mlxsw_sp_nexthop *nh; local
4027 struct mlxsw_sp_nexthop *nh = &nhgi->nexthops[i]; local
4050 struct mlxsw_sp_nexthop *nh = &nh_grp->nhgi->nexthops[i]; local
4067 struct mlxsw_sp_nexthop *nh; local
4093 mlxsw_sp_nexthop_bucket_offload_refresh(struct mlxsw_sp *mlxsw_sp, const struct mlxsw_sp_nexthop *nh, u16 bucket_index) argument
4137 struct mlxsw_sp_nexthop *nh = &nh_grp->nhgi->nexthops[i]; local
4166 struct mlxsw_sp_nexthop *nh; local
4279 __mlxsw_sp_nexthop_neigh_update(struct mlxsw_sp_nexthop *nh, bool removing) argument
4299 struct mlxsw_sp_nexthop *nh; local
4353 struct mlxsw_sp_nexthop *nh; local
4375 mlxsw_sp_nexthop_crif_init(struct mlxsw_sp_nexthop *nh, struct mlxsw_sp_crif *crif) argument
4385 mlxsw_sp_nexthop_crif_fini(struct mlxsw_sp_nexthop *nh) argument
4394 mlxsw_sp_nexthop_neigh_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
4453 mlxsw_sp_nexthop_neigh_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
4492 mlxsw_sp_nexthop_ipip_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh, struct mlxsw_sp_ipip_entry *ipip_entry) argument
4512 mlxsw_sp_nexthop_ipip_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
4535 mlxsw_sp_nexthop_type_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh, const struct net_device *dev) argument
4575 mlxsw_sp_nexthop_type_rif_made(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
4588 mlxsw_sp_nexthop_type_rif_gone(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
4601 mlxsw_sp_nexthop_type_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
4608 mlxsw_sp_nexthop4_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop_group *nh_grp, struct mlxsw_sp_nexthop *nh, struct fib_nh *fib_nh) argument
4663 mlxsw_sp_nexthop4_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
4676 struct mlxsw_sp_nexthop *nh; local
4699 struct mlxsw_sp_nexthop *nh; local
4723 struct mlxsw_sp_nexthop *nh, *tmp; local
4752 struct mlxsw_sp_nexthop *nh, *tmp; local
4901 mlxsw_sp_nexthop_obj_single_validate(struct mlxsw_sp *mlxsw_sp, const struct nh_notifier_single_info *nh, struct netlink_ext_ack *extack) argument
4918 mlxsw_sp_nexthop_obj_group_entry_validate(struct mlxsw_sp *mlxsw_sp, const struct nh_notifier_single_info *nh, struct netlink_ext_ack *extack) argument
4953 const struct nh_notifier_single_info *nh; local
5024 const struct nh_notifier_single_info *nh; local
5041 struct nh_notifier_single_info *nh; local
5089 mlxsw_sp_nexthop_obj_blackhole_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
5101 mlxsw_sp_nexthop_obj_blackhole_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
5109 mlxsw_sp_nexthop_obj_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop_group *nh_grp, struct mlxsw_sp_nexthop *nh, struct nh_notifier_single_info *nh_obj, int weight) argument
5160 mlxsw_sp_nexthop_obj_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
5177 struct mlxsw_sp_nexthop *nh; local
5288 struct mlxsw_sp_nexthop *nh = &nhgi->nexthops[i]; local
5455 struct mlxsw_sp_nexthop *nh = &nhgi->nexthops[i]; local
5549 mlxsw_sp_nexthop_obj_bucket_adj_update(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh, struct nh_notifier_info *info) argument
5605 struct mlxsw_sp_nexthop *nh; local
5656 struct mlxsw_sp_nexthop *nh = &nhgi->nexthops[nhi]; local
5677 struct mlxsw_sp_nexthop *nh = &nhgi->nexthops[bucket]; local
5766 const struct fib_nh *nh = fib_info_nh(fi, 0); local
5778 struct mlxsw_sp_nexthop *nh; local
5828 struct mlxsw_sp_nexthop *nh = &nhgi->nexthops[i]; local
5980 struct mlxsw_sp_nexthop *nh = &nh_grp->nhgi->nexthops[i]; local
6972 mlxsw_sp_nexthop6_init(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop_group *nh_grp, struct mlxsw_sp_nexthop *nh, const struct fib6_info *rt) argument
7009 mlxsw_sp_nexthop6_fini(struct mlxsw_sp *mlxsw_sp, struct mlxsw_sp_nexthop *nh) argument
7031 struct mlxsw_sp_nexthop *nh; local
7085 struct mlxsw_sp_nexthop *nh = &nhgi->nexthops[i]; local
9839 struct mlxsw_sp_nexthop *nh, *tmp; local
[all...]
/linux-master/net/nsh/
H A Dnsh.c17 struct nshhdr *nh; local
34 nh = (struct nshhdr *)(skb->data);
35 memcpy(nh, pushed_nh, length);
36 nh->np = next_proto;
37 skb_postpush_rcsum(skb, nh, length);
50 struct nshhdr *nh; local
56 nh = (struct nshhdr *)(skb->data);
57 length = nsh_hdr_len(nh);
60 inner_proto = tun_p_to_eth_p(nh->np);
/linux-master/arch/arm/vfp/
H A Dvfp.h44 static inline void add128(u64 *resh, u64 *resl, u64 nh, u64 nl, u64 mh, u64 ml) argument
50 : "=r" (nl), "=r" (nh)
51 : "0" (nl), "1" (nh), "r" (ml), "r" (mh)
53 *resh = nh;
57 static inline void sub128(u64 *resh, u64 *resl, u64 nh, u64 nl, u64 mh, u64 ml) argument
63 : "=r" (nl), "=r" (nh)
64 : "0" (nl), "1" (nh), "r" (ml), "r" (mh)
66 *resh = nh;
72 u32 nh, nl, mh, ml; local
79 nh
110 vfp_estimate_div128to64(u64 nh, u64 nl, u64 m) argument
[all...]
/linux-master/arch/alpha/boot/
H A DMakefile13 vmlinux.nh tools/lxboot tools/bootlx tools/bootph \
21 $(obj)/bootimage: $(addprefix $(obj)/tools/,mkbb lxboot bootlx) $(obj)/vmlinux.nh
22 ( cat $(obj)/tools/lxboot $(obj)/tools/bootlx $(obj)/vmlinux.nh ) > $@
27 $(obj)/bootpfile: $(obj)/tools/bootph $(obj)/vmlinux.nh
28 cat $(obj)/tools/bootph $(obj)/vmlinux.nh > $@
35 $(obj)/bootpzfile: $(obj)/tools/bootpzh $(obj)/vmlinux.nh.gz
36 cat $(obj)/tools/bootpzh $(obj)/vmlinux.nh.gz > $@
50 $(obj)/ksize.h: $(obj)/vmlinux.nh FORCE
51 echo "#define KERNEL_SIZE `ls -l $(obj)/vmlinux.nh | awk '{print $$5}'`" > $@T
59 $(obj)/kzsize.h: $(obj)/vmlinux.nh
[all...]
/linux-master/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c53 struct nlmsghdr *nh = (void *)data; local
57 nh->nlmsg_type = family;
58 nh->nlmsg_flags = NLM_F_REQUEST;
59 nh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
60 off += NLMSG_ALIGN(sizeof(*nh));
69 static int nl_error(struct nlmsghdr *nh) argument
71 struct nlmsgerr *err = (struct nlmsgerr *)NLMSG_DATA(nh);
72 int len = nh->nlmsg_len - sizeof(*nh);
83 struct rtattr *attrs = (struct rtattr *)NLMSG_DATA(nh);
111 struct nlmsghdr *nh; local
208 do_nl_req(int fd, struct nlmsghdr *nh, int len, int max) argument
319 struct nlmsghdr *nh; local
346 struct nlmsghdr *nh; local
458 struct nlmsghdr *nh; local
590 struct nlmsghdr *nh; local
643 struct nlmsghdr *nh; local
767 struct nlmsghdr *nh; local
898 struct nlmsghdr *nh; local
1056 print_addrs(struct nlmsghdr *nh, int pm_family, int total_len) argument
1089 struct nlmsghdr *nh; local
1141 struct nlmsghdr *nh; local
1179 struct nlmsghdr *nh; local
1191 print_limits(struct nlmsghdr *nh, int pm_family, int total_len) argument
1233 struct nlmsghdr *nh; local
1328 struct nlmsghdr *nh; local
[all...]
/linux-master/net/mpls/
H A Dinternal.h161 int nhsel; const struct mpls_nh *nh; \
162 for (nhsel = 0, nh = (rt)->rt_nh; \
164 nh = (void *)nh + (rt)->rt_nh_size, nhsel++)
167 int nhsel; struct mpls_nh *nh; \
168 for (nhsel = 0, nh = (rt)->rt_nh; \
170 nh = (void *)nh + (rt)->rt_nh_size, nhsel++)
H A Daf_mpls.c96 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) argument
98 return (u8 *)nh + rt->rt_via_offset;
102 const struct mpls_nh *nh)
104 return __mpls_nh_via((struct mpls_route *)rt, (struct mpls_nh *)nh);
107 static unsigned int mpls_nh_header_size(const struct mpls_nh *nh) argument
110 return nh->nh_labels * sizeof(struct mpls_shim_hdr);
230 * a next hop (nh->nh_flags) are modified by netdev event handlers.
257 unsigned int nh_flags = READ_ONCE(nh->nh_flags);
262 return nh;
347 const struct mpls_nh *nh; local
101 mpls_nh_via(const struct mpls_route *rt, const struct mpls_nh *nh) argument
647 find_outdev(struct net *net, struct mpls_route *rt, struct mpls_nh *nh, int oif) argument
680 mpls_nh_assign_dev(struct net *net, struct mpls_route *rt, struct mpls_nh *nh, int oif) argument
772 struct mpls_nh *nh = rt->rt_nh; local
800 mpls_nh_build(struct net *net, struct mpls_route *rt, struct mpls_nh *nh, int oif, struct nlattr *via, struct nlattr *newdst, u8 max_labels, struct netlink_ext_ack *extack) argument
2023 const struct mpls_nh *nh = rt->rt_nh; local
2163 struct mpls_nh *nh = rt->rt_nh; local
2246 struct mpls_nh *nh = rt->rt_nh; local
2370 const struct mpls_nh *nh; local
[all...]
/linux-master/samples/bpf/
H A Dxdp_router_ipv4_user.c63 struct nlmsghdr *nh; local
73 nh = (struct nlmsghdr *)buf_ptr;
75 if (nh->nlmsg_type == NLMSG_DONE)
91 static void read_route(struct nlmsghdr *nh, int nll) argument
117 for (; NLMSG_OK(nh, nll); nh = NLMSG_NEXT(nh, nll)) {
118 rt_msg = (struct rtmsg *)NLMSG_DATA(nh);
124 rtl = RTM_PAYLOAD(nh);
175 if (nh
254 struct nlmsghdr *nh; local
316 read_arp(struct nlmsghdr *nh, int nll) argument
391 struct nlmsghdr *nh; local
456 struct nlmsghdr *nh; local
[all...]
/linux-master/tools/lib/bpf/
H A Dnetlink.c143 struct nlmsghdr *nh; local
174 for (nh = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(nh, len);
175 nh = NLMSG_NEXT(nh, len)) {
176 if (nh->nlmsg_pid != nl_pid) {
180 if (nh->nlmsg_seq != seq) {
184 if (nh->nlmsg_flags & NLM_F_MULTI)
186 switch (nh->nlmsg_type) {
188 err = (struct nlmsgerr *)NLMSG_DATA(nh);
249 parse_genl_family_id(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, void *cookie) argument
405 parse_xdp_features(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, void *cookie) argument
681 get_tc_info(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, void *cookie) argument
[all...]
H A Dnlattr.h58 struct nlmsghdr nh; member in struct:libbpf_nla_req
138 return (struct nlattr *)((void *)req + NLMSG_ALIGN(req->nh.nlmsg_len));
146 if (NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(NLA_HDRLEN + len) > sizeof(*req))
156 req->nh.nlmsg_len = NLMSG_ALIGN(req->nh.nlmsg_len) + NLA_ALIGN(nla->nla_len);
/linux-master/drivers/extcon/
H A Dextcon.h28 * @nh: Notifier for the state change events from this extcon
52 struct raw_notifier_head *nh; member in struct:extcon_dev
/linux-master/net/openvswitch/
H A Dactions.c319 struct nshhdr *nh = (struct nshhdr *)buffer; local
322 err = nsh_hdr_from_nlattr(a, nh, NSH_HDR_MAX_LEN);
326 err = nsh_push(skb, nh);
353 static void update_ip_l4_checksum(struct sk_buff *skb, struct iphdr *nh, argument
358 if (nh->frag_off & htons(IP_OFFSET))
361 if (nh->protocol == IPPROTO_TCP) {
365 } else if (nh->protocol == IPPROTO_UDP) {
379 static void set_ip_addr(struct sk_buff *skb, struct iphdr *nh, argument
382 update_ip_l4_checksum(skb, nh, *addr, new_addr);
383 csum_replace4(&nh
437 set_ipv6_dsfield(struct sk_buff *skb, struct ipv6hdr *nh, u8 ipv6_tclass, u8 mask) argument
450 set_ipv6_fl(struct sk_buff *skb, struct ipv6hdr *nh, u32 fl, u32 mask) argument
466 set_ipv6_ttl(struct sk_buff *skb, struct ipv6hdr *nh, u8 new_ttl, u8 mask) argument
476 set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, u8 mask) argument
489 struct iphdr *nh; local
541 struct ipv6hdr *nh; local
610 struct nshhdr *nh; local
1262 struct ipv6hdr *nh; local
1276 struct iphdr *nh; local
[all...]
/linux-master/include/trace/events/
H A Dfib6.h65 if (res->nh && res->nh->fib_nh_dev) {
66 strscpy(__entry->name, res->nh->fib_nh_dev->name, IFNAMSIZ);
73 } else if (res->nh) {
75 *in6 = res->nh->fib_nh_gw6;
/linux-master/net/ipv6/
H A Droute.c106 static int rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif,
420 if (!match->nh && (!match->fib6_nsiblings || have_oif_match))
423 if (match->nh && have_oif_match && res->nh)
433 (!match->nh || nexthop_is_multipath(match->nh)))
436 if (unlikely(match->nh)) {
446 const struct fib6_nh *nh = sibling->fib6_nh; local
449 nh_upper_bound = atomic_read(&nh->fib_nh_upper_bound);
452 if (rt6_score_route(nh, siblin
467 __rt6_device_match(struct net *net, const struct fib6_nh *nh, const struct in6_addr *saddr, int oif, int flags) argument
493 struct fib6_nh *nh; member in struct:fib6_nh_dm_arg
496 __rt6_nh_dev_match(struct fib6_nh *nh, void *_arg) argument
506 rt6_nh_dev_match(struct net *net, struct nexthop *nh, struct fib6_result *res, const struct in6_addr *saddr, int oif, int flags) argument
532 struct fib6_nh *nh; local
711 rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif, int strict) argument
733 find_match(struct fib6_nh *nh, u32 fib6_flags, int oif, int strict, int *mpri, bool *do_rr) argument
775 struct fib6_nh *nh; member in struct:fib6_nh_frl_arg
778 rt6_nh_find_match(struct fib6_nh *nh, void *_arg) argument
798 struct fib6_nh *nh; local
1133 const struct fib6_nh *nh = res->nh; local
1589 const struct fib6_nh *nh = res->nh; local
1617 fib6_nh_get_excptn_bucket(const struct fib6_nh *nh, spinlock_t *lock) argument
1647 fib6_nh_excptn_bucket_set_flushed(struct fib6_nh *nh, spinlock_t *lock) argument
1670 struct fib6_nh *nh = res->nh; local
1745 fib6_nh_flush_exceptions(struct fib6_nh *nh, struct fib6_info *from) argument
1775 rt6_nh_flush_exceptions(struct fib6_nh *nh, void *arg) argument
1839 fib6_nh_remove_exception(const struct fib6_nh *nh, int plen, const struct rt6_info *rt) argument
1882 rt6_nh_remove_exception_rt(struct fib6_nh *nh, void *_arg) argument
1923 fib6_nh_update_exception(const struct fib6_nh *nh, int plen, const struct rt6_info *rt) argument
1953 fib6_nh_find_match(struct fib6_nh *nh, void *_arg) argument
2021 rt6_exceptions_update_pmtu(struct inet6_dev *idev, const struct fib6_nh *nh, int mtu) argument
2050 fib6_nh_exceptions_clean_tohost(const struct fib6_nh *nh, const struct in6_addr *gateway) argument
2124 fib6_nh_age_exceptions(const struct fib6_nh *nh, struct fib6_gc_args *gc_args, unsigned long now) argument
2158 rt6_nh_age_exceptions(struct fib6_nh *nh, void *_arg) argument
3003 const struct fib6_nh *nh = res->nh; local
3035 fib6_nh_redirect_match(struct fib6_nh *nh, void *_arg) argument
3233 const struct fib6_nh *nh = res->nh; local
3694 struct nexthop *nh = NULL; local
3987 ip6_del_cached_rt(struct fib6_config *cfg, struct fib6_info *rt, struct fib6_nh *nh) argument
4008 fib6_nh_del_cached_rt(struct fib6_nh *nh, void *_arg) argument
4050 struct fib6_nh *nh; local
4345 struct fib6_nh *nh; local
4635 struct fib6_nh *nh; local
4919 fib6_nh_mtu_change(struct fib6_nh *nh, void *_arg) argument
5163 struct rt6_nh *nh; local
5251 struct rt6_nh *nh, *nh_safe; local
5518 rt6_nh_nlmsg_size(struct fib6_nh *nh, void *arg) argument
5546 struct fib6_nh *nh = f6i->fib6_nh; local
5576 rt6_fill_node_nexthop(struct sk_buff *skb, struct nexthop *nh, unsigned char *flags) argument
5789 fib6_info_nh_uses_dev(struct fib6_nh *nh, void *arg) argument
5834 rt6_nh_dump_exceptions(struct fib6_nh *nh, void *arg) argument
[all...]

Completed in 345 milliseconds

1234