Home
last modified time | relevance | path

Searched defs:nh (Results 1 – 25 of 110) sorted by relevance

12345

/kernel/linux/linux-4.19/kernel/
Dnotifier.c121 int atomic_notifier_chain_register(struct atomic_notifier_head *nh, in atomic_notifier_chain_register()
143 int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh, in atomic_notifier_chain_unregister()
176 int __atomic_notifier_call_chain(struct atomic_notifier_head *nh, in __atomic_notifier_call_chain()
190 int atomic_notifier_call_chain(struct atomic_notifier_head *nh, in atomic_notifier_call_chain()
213 int blocking_notifier_chain_register(struct blocking_notifier_head *nh, in blocking_notifier_chain_register()
244 int blocking_notifier_chain_cond_register(struct blocking_notifier_head *nh, in blocking_notifier_chain_cond_register()
266 int blocking_notifier_chain_unregister(struct blocking_notifier_head *nh, in blocking_notifier_chain_unregister()
304 int __blocking_notifier_call_chain(struct blocking_notifier_head *nh, in __blocking_notifier_call_chain()
325 int blocking_notifier_call_chain(struct blocking_notifier_head *nh, in blocking_notifier_call_chain()
347 int raw_notifier_chain_register(struct raw_notifier_head *nh, in raw_notifier_chain_register()
[all …]
/kernel/linux/linux-5.10/kernel/
Dnotifier.c139 int atomic_notifier_chain_register(struct atomic_notifier_head *nh, in atomic_notifier_chain_register()
161 int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh, in atomic_notifier_chain_unregister()
175 int atomic_notifier_call_chain_robust(struct atomic_notifier_head *nh, in atomic_notifier_call_chain_robust()
211 int atomic_notifier_call_chain(struct atomic_notifier_head *nh, in atomic_notifier_call_chain()
240 int blocking_notifier_chain_register(struct blocking_notifier_head *nh, in blocking_notifier_chain_register()
270 int blocking_notifier_chain_unregister(struct blocking_notifier_head *nh, in blocking_notifier_chain_unregister()
290 int blocking_notifier_call_chain_robust(struct blocking_notifier_head *nh, in blocking_notifier_call_chain_robust()
325 int blocking_notifier_call_chain(struct blocking_notifier_head *nh, in blocking_notifier_call_chain()
359 int raw_notifier_chain_register(struct raw_notifier_head *nh, in raw_notifier_chain_register()
376 int raw_notifier_chain_unregister(struct raw_notifier_head *nh, in raw_notifier_chain_unregister()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dnexthop.c41 struct nexthop *nh) in call_nexthop_notifiers()
72 static void nexthop_free_mpath(struct nexthop *nh) in nexthop_free_mpath()
91 static void nexthop_free_single(struct nexthop *nh) in nexthop_free_single()
109 struct nexthop *nh = container_of(head, struct nexthop, rcu); in nexthop_free_rcu() local
122 struct nexthop *nh; in nexthop_alloc() local
158 struct nexthop *nh; in nexthop_find_by_id() local
224 static int nh_fill_node(struct sk_buff *skb, struct nexthop *nh, in nh_fill_node()
305 static size_t nh_nlmsg_size_grp(struct nexthop *nh) in nh_nlmsg_size_grp()
314 static size_t nh_nlmsg_size_single(struct nexthop *nh) in nh_nlmsg_size_single()
345 static size_t nh_nlmsg_size(struct nexthop *nh) in nh_nlmsg_size()
[all …]
Dfib_semantics.c434 struct fib_nh *nh; in ip_fib_check_default() local
611 int fib_nh_init(struct net *net, struct fib_nh *nh, in fib_nh_init()
673 struct fib_nh *nh; in fib_get_nhs() local
821 const struct fib_nh *nh, in fib_encap_match()
863 struct fib_nh *nh; in fib_nh_match() local
1000 static int fib_check_nh_v6_gw(struct net *net, struct fib_nh *nh, in fib_check_nh_v6_gw()
1068 static int fib_check_nh_v4_gw(struct net *net, struct fib_nh *nh, u32 table, in fib_check_nh_v4_gw()
1162 static int fib_check_nh_nongw(struct net *net, struct fib_nh *nh, in fib_check_nh_nongw()
1197 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, in fib_check_nh()
1297 struct fib_nh *nh; in fib_info_update_nhc_saddr() local
[all …]
/kernel/linux/linux-5.10/include/net/
Dnexthop.h67 struct nexthop *nh; member
118 static inline bool nexthop_get(struct nexthop *nh) in nexthop_get()
123 static inline void nexthop_put(struct nexthop *nh) in nexthop_put()
135 static inline bool nexthop_is_fdb(const struct nexthop *nh) in nexthop_is_fdb()
150 static inline bool nexthop_has_v4(const struct nexthop *nh) in nexthop_has_v4()
161 static inline bool nexthop_is_multipath(const struct nexthop *nh) in nexthop_is_multipath()
174 static inline unsigned int nexthop_num_path(const struct nexthop *nh) in nexthop_num_path()
202 int nexthop_mpath_fill_node(struct sk_buff *skb, struct nexthop *nh, in nexthop_mpath_fill_node()
222 static inline bool nexthop_is_blackhole(const struct nexthop *nh) in nexthop_is_blackhole()
243 struct nexthop *nh; in nexthop_path_fib_result() local
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c39 struct nlmsghdr *nh = (void *)data; in init_genl_req() local
55 static void nl_error(struct nlmsghdr *nh) in nl_error()
86 static int do_nl_req(int fd, struct nlmsghdr *nh, int len, int max) in do_nl_req()
152 struct nlmsghdr *nh; in resolve_mptcp_pm_netlink() local
178 struct nlmsghdr *nh; in add_addr() local
289 struct nlmsghdr *nh; in del_addr() local
398 static void print_addrs(struct nlmsghdr *nh, int pm_family, int total_len) in print_addrs()
431 struct nlmsghdr *nh; in get_addr() local
471 struct nlmsghdr *nh; in dump_addrs() local
492 struct nlmsghdr *nh; in flush_addrs() local
[all …]
/kernel/linux/linux-4.19/net/ipv4/
Dfib_semantics.c160 static void free_nh_exceptions(struct fib_nh *nh) in free_nh_exceptions()
344 struct fib_nh *nh; in ip_fib_check_default() local
612 const struct fib_nh *nh, in fib_encap_match()
780 static int fib_check_nh(struct fib_config *cfg, struct fib_nh *nh, in fib_check_nh()
987 __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh) in fib_info_update_nh_saddr()
1145 struct fib_nh *nh = fi->fib_nh; in fib_create_info() local
1203 struct fib_nh *nh = fi->fib_nh; in fib_create_info() local
1483 static void nh_update_mtu(struct fib_nh *nh, u32 new, u32 orig) in nh_update_mtu()
1515 struct fib_nh *nh; in fib_sync_mtu() local
1536 struct fib_nh *nh; in fib_sync_down_dev() local
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dipsec.c172 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr()
177 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz, in rtattr_pack()
197 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin()
208 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin()
214 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
221 static int veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz, in veth_pack_peerb()
274 struct nlmsghdr nh; in veth_add() member
324 struct nlmsghdr nh; in ip4_addr_set() member
364 struct nlmsghdr nh; in link_set_up() member
391 struct nlmsghdr nh; in ip4_route_set() member
[all …]
/kernel/linux/linux-5.10/net/ipv6/
Droute.c441 const struct fib6_nh *nh = sibling->fib6_nh; in fib6_select_path() local
462 static bool __rt6_device_match(struct net *net, const struct fib6_nh *nh, in __rt6_device_match()
488 struct fib6_nh *nh; member
491 static int __rt6_nh_dev_match(struct fib6_nh *nh, void *_arg) in __rt6_nh_dev_match()
501 static struct fib6_nh *rt6_nh_dev_match(struct net *net, struct nexthop *nh, in rt6_nh_dev_match()
527 struct fib6_nh *nh; in rt6_device_match() local
704 static int rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif, in rt6_score_route()
726 static bool find_match(struct fib6_nh *nh, u32 fib6_flags, in find_match()
768 struct fib6_nh *nh; member
771 static int rt6_nh_find_match(struct fib6_nh *nh, void *_arg) in rt6_nh_find_match()
[all …]
Dexthdrs.c119 const unsigned char *nh = skb_network_header(skb); in ip6_parse_tlv() local
922 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_ra() local
939 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_jumbo() local
983 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_calipso() local
/kernel/linux/linux-4.19/samples/bpf/
Dxdp_router_ipv4_user.c78 struct nlmsghdr *nh; in recv_msg() local
106 static void read_route(struct nlmsghdr *nh, int nll) in read_route()
299 struct nlmsghdr *nh; in get_route_table() local
361 static void read_arp(struct nlmsghdr *nh, int nll) in read_arp()
437 struct nlmsghdr *nh; in get_arp_table() local
505 struct nlmsghdr *nh; in monitor_route() local
/kernel/linux/linux-5.10/net/nsh/
Dnsh.c16 struct nshhdr *nh; in nsh_push() local
49 struct nshhdr *nh; in nsh_pop() local
/kernel/linux/linux-4.19/net/nsh/
Dnsh.c19 struct nshhdr *nh; in nsh_push() local
52 struct nshhdr *nh; in nsh_pop() local
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_router_ipv4_user.c94 struct nlmsghdr *nh; in recv_msg() local
122 static void read_route(struct nlmsghdr *nh, int nll) in read_route()
315 struct nlmsghdr *nh; in get_route_table() local
377 static void read_arp(struct nlmsghdr *nh, int nll) in read_arp()
455 struct nlmsghdr *nh; in get_arp_table() local
523 struct nlmsghdr *nh; in monitor_route() local
/kernel/linux/linux-5.10/net/openvswitch/
Dactions.c312 const struct nshhdr *nh) in push_nsh()
343 static void update_ip_l4_checksum(struct sk_buff *skb, struct iphdr *nh, in update_ip_l4_checksum()
369 static void set_ip_addr(struct sk_buff *skb, struct iphdr *nh, in set_ip_addr()
425 static void set_ipv6_fl(struct ipv6hdr *nh, u32 fl, u32 mask) in set_ipv6_fl()
433 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, in set_ip_ttl()
446 struct iphdr *nh; in set_ipv4() local
498 struct ipv6hdr *nh; in set_ipv6() local
568 struct nshhdr *nh; in set_nsh() local
1199 struct ipv6hdr *nh; in execute_dec_ttl() local
1213 struct iphdr *nh; in execute_dec_ttl() local
[all …]
/kernel/linux/linux-4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2593 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_alloc()
2609 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_free()
2618 struct mlxsw_sp_nexthop *nh, u64 *p_counter) in mlxsw_sp_nexthop_counter_get()
2628 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_next()
2642 bool mlxsw_sp_nexthop_offload(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_offload()
2647 unsigned char *mlxsw_sp_nexthop_ha(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_ha()
2654 int mlxsw_sp_nexthop_indexes(struct mlxsw_sp_nexthop *nh, u32 *p_adj_index, in mlxsw_sp_nexthop_indexes()
2680 struct mlxsw_sp_rif *mlxsw_sp_nexthop_rif(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_rif()
2685 bool mlxsw_sp_nexthop_group_has_ipip(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_group_has_ipip()
2721 const struct mlxsw_sp_nexthop *nh; in mlxsw_sp_nexthop6_group_has_nexthop() local
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2797 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_alloc()
2813 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_free()
2822 struct mlxsw_sp_nexthop *nh, u64 *p_counter) in mlxsw_sp_nexthop_counter_get()
2832 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_next()
2846 bool mlxsw_sp_nexthop_offload(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_offload()
2851 unsigned char *mlxsw_sp_nexthop_ha(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_ha()
2858 int mlxsw_sp_nexthop_indexes(struct mlxsw_sp_nexthop *nh, u32 *p_adj_index, in mlxsw_sp_nexthop_indexes()
2884 struct mlxsw_sp_rif *mlxsw_sp_nexthop_rif(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_rif()
2889 bool mlxsw_sp_nexthop_group_has_ipip(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_group_has_ipip()
2925 const struct mlxsw_sp_nexthop *nh; in mlxsw_sp_nexthop6_group_has_nexthop() local
[all …]
/kernel/linux/linux-4.19/net/openvswitch/
Dactions.c383 const struct nshhdr *nh) in push_nsh()
414 static void update_ip_l4_checksum(struct sk_buff *skb, struct iphdr *nh, in update_ip_l4_checksum()
440 static void set_ip_addr(struct sk_buff *skb, struct iphdr *nh, in set_ip_addr()
496 static void set_ipv6_fl(struct ipv6hdr *nh, u32 fl, u32 mask) in set_ipv6_fl()
504 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, in set_ip_ttl()
517 struct iphdr *nh; in set_ipv4() local
569 struct ipv6hdr *nh; in set_ipv6() local
639 struct nshhdr *nh; in set_nsh() local
1340 struct nshhdr *nh = (struct nshhdr *)buffer; in do_execute_actions() local
Dflow.c260 struct ipv6hdr *nh; in parse_ipv6hdr() local
496 struct nshhdr *nh; in parse_nsh() local
616 struct iphdr *nh; in key_extract() local
/kernel/linux/linux-5.10/arch/arm/vfp/
Dvfp.h44 static inline void add128(u64 *resh, u64 *resl, u64 nh, u64 nl, u64 mh, u64 ml) in add128()
57 static inline void sub128(u64 *resh, u64 *resl, u64 nh, u64 nl, u64 mh, u64 ml) in sub128()
72 u32 nh, nl, mh, ml; in mul64to128() local
110 static inline u64 vfp_estimate_div128to64(u64 nh, u64 nl, u64 m) in vfp_estimate_div128to64()
/kernel/linux/linux-4.19/arch/arm/vfp/
Dvfp.h47 static inline void add128(u64 *resh, u64 *resl, u64 nh, u64 nl, u64 mh, u64 ml) in add128()
60 static inline void sub128(u64 *resh, u64 *resl, u64 nh, u64 nl, u64 mh, u64 ml) in sub128()
75 u32 nh, nl, mh, ml; in mul64to128() local
113 static inline u64 vfp_estimate_div128to64(u64 nh, u64 nl, u64 m) in vfp_estimate_div128to64()
/kernel/linux/linux-5.10/net/mpls/
Daf_mpls.c95 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) in __mpls_nh_via()
101 const struct mpls_nh *nh) in mpls_nh_via()
106 static unsigned int mpls_nh_header_size(const struct mpls_nh *nh) in mpls_nh_header_size()
347 struct mpls_nh *nh; in mpls_forward() local
646 struct mpls_nh *nh, int oif) in find_outdev()
678 struct mpls_nh *nh, int oif) in mpls_nh_assign_dev()
769 struct mpls_nh *nh = rt->rt_nh; in mpls_nh_build_from_cfg() local
798 struct mpls_nh *nh, int oif, struct nlattr *via, in mpls_nh_build()
1986 const struct mpls_nh *nh = rt->rt_nh; in mpls_dump_route() local
2128 struct mpls_nh *nh = rt->rt_nh; in mpls_rt_uses_dev() local
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_iter_ipv6_route.c20 struct nexthop *nh; in dump_ipv6_route() local
/kernel/linux/linux-4.19/net/mpls/
Daf_mpls.c96 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) in __mpls_nh_via()
102 const struct mpls_nh *nh) in mpls_nh_via()
107 static unsigned int mpls_nh_header_size(const struct mpls_nh *nh) in mpls_nh_header_size()
348 struct mpls_nh *nh; in mpls_forward() local
647 struct mpls_nh *nh, int oif) in find_outdev()
679 struct mpls_nh *nh, int oif) in mpls_nh_assign_dev()
770 struct mpls_nh *nh = rt->rt_nh; in mpls_nh_build_from_cfg() local
799 struct mpls_nh *nh, int oif, struct nlattr *via, in mpls_nh_build()
1948 const struct mpls_nh *nh = rt->rt_nh; in mpls_dump_route() local
2063 struct mpls_nh *nh = rt->rt_nh; in lfib_nlmsg_size() local
[all …]
/kernel/linux/linux-4.19/net/ipv6/
Dexthdrs.c122 const unsigned char *nh = skb_network_header(skb); in ip6_parse_tlv() local
730 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_ra() local
747 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_jumbo() local
791 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_calipso() local

12345