Home
last modified time | relevance | path

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

123

/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.c444 struct fib_nh *nh; in ip_fib_check_default() local
620 int fib_nh_init(struct net *net, struct fib_nh *nh, in fib_nh_init()
695 struct fib_nh *nh; in fib_get_nhs() local
855 const struct fib_nh *nh, in fib_encap_match()
899 struct fib_nh *nh; in fib_nh_match() local
1049 static int fib_check_nh_v6_gw(struct net *net, struct fib_nh *nh, in fib_check_nh_v6_gw()
1117 static int fib_check_nh_v4_gw(struct net *net, struct fib_nh *nh, u32 table, in fib_check_nh_v4_gw()
1211 static int fib_check_nh_nongw(struct net *net, struct fib_nh *nh, in fib_check_nh_nongw()
1246 int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope, in fib_check_nh()
1346 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-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
915 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_ra() local
932 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_jumbo() local
976 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_calipso() local
Dmip6.c256 const unsigned char *nh = skb_network_header(skb); in mip6_destopt_offset() local
392 const unsigned char *nh = skb_network_header(skb); in mip6_rthdr_offset() local
Dexthdrs_core.c118 const unsigned char *nh = skb_network_header(skb); in ipv6_find_tlv() local
Ddatagram.c481 const unsigned char *nh = skb_network_header(skb); in ipv6_recv_error() local
619 unsigned char *nh = skb_network_header(skb); in ip6_datagram_recv_specific_ctl() 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-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()
427 static void set_ipv6_dsfield(struct sk_buff *skb, struct ipv6hdr *nh, u8 ipv6_tclass, u8 mask) in set_ipv6_dsfield()
440 static void set_ipv6_fl(struct sk_buff *skb, struct ipv6hdr *nh, u32 fl, u32 mask) in set_ipv6_fl()
456 static void set_ipv6_ttl(struct sk_buff *skb, struct ipv6hdr *nh, u8 new_ttl, u8 mask) in set_ipv6_ttl()
466 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, in set_ip_ttl()
479 struct iphdr *nh; in set_ipv4() local
531 struct ipv6hdr *nh; in set_ipv6() local
600 struct nshhdr *nh; in set_nsh() local
[all …]
Dflow.c248 struct ipv6hdr *nh; in parse_ipv6hdr() local
481 struct nshhdr *nh; in parse_nsh() local
538 struct iphdr *nh; in key_extract_l3l4() 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/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-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c2800 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_alloc()
2816 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_free()
2825 struct mlxsw_sp_nexthop *nh, u64 *p_counter) in mlxsw_sp_nexthop_counter_get()
2835 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_next()
2849 bool mlxsw_sp_nexthop_offload(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_offload()
2854 unsigned char *mlxsw_sp_nexthop_ha(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_ha()
2861 int mlxsw_sp_nexthop_indexes(struct mlxsw_sp_nexthop *nh, u32 *p_adj_index, in mlxsw_sp_nexthop_indexes()
2887 struct mlxsw_sp_rif *mlxsw_sp_nexthop_rif(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_rif()
2892 bool mlxsw_sp_nexthop_group_has_ipip(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_group_has_ipip()
2928 const struct mlxsw_sp_nexthop *nh; in mlxsw_sp_nexthop6_group_has_nexthop() local
[all …]
Dspectrum_dpipe.c911 struct mlxsw_sp_nexthop *nh; in mlxsw_sp_dpipe_table_adj_size() local
1065 struct mlxsw_sp_nexthop *nh, in mlxsw_sp_dpipe_table_adj_entry_fill()
1089 struct mlxsw_sp_nexthop *nh; in mlxsw_sp_dpipe_table_adj_entries_get() local
1182 struct mlxsw_sp_nexthop *nh; in mlxsw_sp_dpipe_table_adj_counters_update() local
/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()
2026 const struct mpls_nh *nh = rt->rt_nh; in mpls_dump_route() local
2168 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-5.10/drivers/net/ethernet/mellanox/mlx5/core/
Dpci_irq.c16 struct atomic_notifier_head nh; member
76 static irqreturn_t mlx5_irq_int_handler(int irq, void *nh) in mlx5_irq_int_handler()
/kernel/linux/linux-5.10/net/bridge/
Dbr_netfilter_ipv6.c50 const unsigned char *nh = skb_network_header(skb); in br_nf_check_hbh_len() local
/kernel/linux/linux-5.10/tools/lib/bpf/
Dnetlink.c82 struct nlmsghdr *nh; in bpf_netlink_recv() local
140 struct nlmsghdr nh; in __bpf_set_link_xdp_fd_replace() member
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon.h50 struct raw_notifier_head *nh; member
/kernel/linux/linux-5.10/lib/mpi/
Dmpi-internal.h115 #define UDIV_QRNND_PREINV(q, r, nh, nl, d, di) \ argument

123