Home
last modified time | relevance | path

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

123

/linux/kernel/
H A Dnotifier.c141 int atomic_notifier_chain_register(struct atomic_notifier_head *nh, in atomic_notifier_chain_register()
164 int atomic_notifier_chain_register_unique_prio(struct atomic_notifier_head *nh, in atomic_notifier_chain_register_unique_prio()
186 int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh, in atomic_notifier_chain_unregister()
217 int atomic_notifier_call_chain(struct atomic_notifier_head *nh, in atomic_notifier_call_chain()
239 bool atomic_notifier_call_chain_is_empty(struct atomic_notifier_head *nh) in atomic_notifier_call_chain_is_empty()
249 static int __blocking_notifier_chain_register(struct blocking_notifier_head *nh, in __blocking_notifier_chain_register()
279 int blocking_notifier_chain_register(struct blocking_notifier_head *nh, in blocking_notifier_chain_register()
296 int blocking_notifier_chain_register_unique_prio(struct blocking_notifier_head *nh, in blocking_notifier_chain_register_unique_prio()
313 int blocking_notifier_chain_unregister(struct blocking_notifier_head *nh, in blocking_notifier_chain_unregister()
333 int blocking_notifier_call_chain_robust(struct blocking_notifier_head *nh, in blocking_notifier_call_chain_robust()
[all …]
/linux/net/ipv4/
H A Dnexthop.c114 const struct nexthop *nh) in nh_notifier_single_info_init()
194 const struct nexthop *nh) in nh_notifier_grp_info_init()
206 const struct nexthop *nh) in nh_notifier_grp_info_fini()
217 const struct nexthop *nh) in nh_notifier_info_init()
228 const struct nexthop *nh) in nh_notifier_info_fini()
238 struct nexthop *nh, in call_nexthop_notifiers()
271 struct nexthop *nh; in nh_notifier_res_bucket_idle_timer_get() local
402 static int call_nexthop_res_table_notifiers(struct net *net, struct nexthop *nh, in call_nexthop_res_table_notifiers()
439 struct nexthop *nh, in call_nexthop_notifier()
480 static void nexthop_free_group(struct nexthop *nh) in nexthop_free_group()
[all …]
/linux/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c50 struct nlmsghdr *nh = (void *)data; in init_genl_req() local
66 static int nl_error(struct nlmsghdr *nh) in nl_error()
108 struct nlmsghdr *nh; in capture_events() local
218 static int do_nl_req(int fd, struct nlmsghdr *nh, int len, int max) in do_nl_req()
329 struct nlmsghdr *nh; in resolve_mptcp_pm_netlink() local
356 struct nlmsghdr *nh; in dsf() local
468 struct nlmsghdr *nh; in csf() local
600 struct nlmsghdr *nh; in remove_addr() local
653 struct nlmsghdr *nh; in announce_addr() local
777 struct nlmsghdr *nh; in add_addr() local
[all …]
/linux/tools/testing/selftests/net/
H A Dtap.c33 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add()
44 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin()
49 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
56 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str()
68 static struct rtattr *rtattr_add_any(struct nlmsghdr *nh, unsigned short type, in rtattr_add_any()
78 int (*fill_rtattr)(struct nlmsghdr *nh), in dev_create()
79 int (*fill_info_data)(struct nlmsghdr *nh)) in dev_create()
82 struct nlmsghdr nh; in dev_create() member
140 struct nlmsghdr nh; in dev_delete() member
171 static int macvtap_fill_rtattr(struct nlmsghdr *nh) in macvtap_fill_rtattr()
H A Dipsec.c210 rtattr_hdr(struct nlmsghdr * nh) rtattr_hdr() argument
215 rtattr_pack(struct nlmsghdr * nh,size_t req_sz,unsigned short rta_type,const void * payload,size_t size) rtattr_pack() argument
236 _rtattr_begin(struct nlmsghdr * nh,size_t req_sz,unsigned short rta_type,const void * payload,size_t size) _rtattr_begin() argument
247 rtattr_begin(struct nlmsghdr * nh,size_t req_sz,unsigned short rta_type) rtattr_begin() argument
253 rtattr_end(struct nlmsghdr * nh,struct rtattr * attr) rtattr_end() argument
260 veth_pack_peerb(struct nlmsghdr * nh,size_t req_sz,const char * peer,int ns) veth_pack_peerb() argument
313 struct nlmsghdr nh; veth_add() member
363 struct nlmsghdr nh; ip4_addr_set() member
403 struct nlmsghdr nh; link_set_up() member
430 struct nlmsghdr nh; ip4_route_set() member
827 xfrm_state_pack_algo(struct nlmsghdr * nh,size_t req_sz,struct xfrm_desc * desc) xfrm_state_pack_algo() argument
920 struct nlmsghdr nh; xfrm_state_add() member
1009 struct nlmsghdr nh; xfrm_state_check() member
1013 struct nlmsghdr nh; xfrm_state_check() member
1102 struct nlmsghdr nh; xfrm_policy_add() member
1177 struct nlmsghdr nh; xfrm_policy_del() member
1227 struct nlmsghdr nh; xfrm_state_del() member
1278 struct nlmsghdr nh; xfrm_state_allocspi() member
1282 struct nlmsghdr nh; xfrm_state_allocspi() member
1368 struct nlmsghdr nh; xfrm_monitor_acquire() member
1439 struct nlmsghdr nh; xfrm_expire_state() member
1511 struct nlmsghdr nh; xfrm_expire_policy() member
1592 struct nlmsghdr nh; xfrm_spdinfo_set_thresh() member
1649 struct nlmsghdr nh; xfrm_spdinfo_attrs() member
[all...]
/linux/include/net/
H A Dnexthop.h106 struct nexthop *nh; member
196 struct nh_notifier_single_info nh; global() member
237 struct nh_notifier_single_info *nh; global() member
262 nexthop_get(struct nexthop * nh) nexthop_get() argument
267 nexthop_put(struct nexthop * nh) nexthop_put() argument
279 nexthop_is_fdb(const struct nexthop * nh) nexthop_is_fdb() argument
294 nexthop_has_v4(const struct nexthop * nh) nexthop_has_v4() argument
305 nexthop_is_multipath(const struct nexthop * nh) nexthop_is_multipath() argument
318 nexthop_num_path(const struct nexthop * nh) nexthop_num_path() argument
346 nexthop_mpath_fill_node(struct sk_buff * skb,struct nexthop * nh,u8 rt_family) nexthop_mpath_fill_node() argument
366 nexthop_is_blackhole(const struct nexthop * nh) nexthop_is_blackhole() argument
387 struct nexthop *nh; nexthop_path_fib_result() local
396 nexthop_fib_nhc(struct nexthop * nh,int nhsel) nexthop_fib_nhc() argument
420 nexthop_get_nhc_lookup(const struct nexthop * nh,int fib_flags,const struct flowi4 * flp,int * nhsel) nexthop_get_nhc_lookup() argument
451 nexthop_uses_dev(const struct nexthop * nh,const struct net_device * dev) nexthop_uses_dev() argument
510 nexthop_fib6_nh(struct nexthop * nh) nexthop_fib6_nh() argument
540 struct nexthop *nh = res->f6i->nh; nexthop_path_fib6_result() local
559 nexthop_get_family(struct nexthop * nh) nexthop_get_family() argument
567 nexthop_fdb_nhc(struct nexthop * nh) nexthop_fdb_nhc() argument
574 nexthop_path_fdb_result(struct nexthop * nh,int hash) nexthop_path_fdb_result() argument
[all...]
/linux/tools/testing/selftests/net/tcp_ao/lib/
H A Dnetlink.c60 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr()
65 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz, in rtattr_pack()
85 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin()
96 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin()
102 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
109 static int veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz, in veth_pack_peerb()
139 struct nlmsghdr nh; in __add_veth() member
202 struct nlmsghdr nh; in __ip_addr_add() member
249 struct nlmsghdr nh; in __ip_route_add() member
311 struct nlmsghdr nh; in __link_set_up() member
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxfrm_info.c171 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add()
182 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str()
191 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin()
196 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
206 struct nlmsghdr nh; in setup_xfrmi_external_dev() member
213 struct nlmsghdr *nh; in setup_xfrmi_external_dev() local
/linux/net/ipv6/
H A Droute.c481 const struct fib6_nh *nh = sibling->fib6_nh; in fib6_select_path() local
502 static bool __rt6_device_match(struct net *net, const struct fib6_nh *nh, in __rt6_device_match()
528 struct fib6_nh *nh; member
531 static int __rt6_nh_dev_match(struct fib6_nh *nh, void *_arg) in __rt6_nh_dev_match()
541 static struct fib6_nh *rt6_nh_dev_match(struct net *net, struct nexthop *nh, in rt6_nh_dev_match()
567 struct fib6_nh *nh; in rt6_device_match() local
748 static int rt6_score_route(const struct fib6_nh *nh, u32 fib6_flags, int oif, in rt6_score_route()
770 static bool find_match(struct fib6_nh *nh, u32 fib6_flags, in find_match()
812 struct fib6_nh *nh; member
815 static int rt6_nh_find_match(struct fib6_nh *nh, void *_arg) in rt6_nh_find_match()
[all …]
H A Dexthdrs.c119 const unsigned char *nh = skb_network_header(skb); in ip6_parse_tlv() local
896 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_ra() local
983 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_jumbo() local
1026 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_calipso() local
H A Dexthdrs_core.c121 const unsigned char *nh = skb_network_header(skb); in ipv6_find_tlv() local
H A Ddatagram.c488 const unsigned char *nh = skb_network_header(skb); in ipv6_recv_error() local
625 unsigned char *nh = skb_network_header(skb); in ip6_datagram_recv_specific_ctl() local
/linux/samples/bpf/
H A Dxdp_router_ipv4_user.c63 struct nlmsghdr *nh; in recv_msg() local
91 static void read_route(struct nlmsghdr *nh, int nll) in read_route()
254 struct nlmsghdr *nh; in get_route_table() local
316 static void read_arp(struct nlmsghdr *nh, int nll) in read_arp()
391 struct nlmsghdr *nh; in get_arp_table() local
456 struct nlmsghdr *nh; in monitor_routes_thread() local
/linux/net/openvswitch/
H A Dactions.c287 struct nshhdr *nh = (struct nshhdr *)buffer; push_nsh() local
321 update_ip_l4_checksum(struct sk_buff * skb,struct iphdr * nh,__be32 addr,__be32 new_addr) update_ip_l4_checksum() argument
347 set_ip_addr(struct sk_buff * skb,struct iphdr * nh,__be32 * addr,__be32 new_addr) set_ip_addr() argument
405 set_ipv6_dsfield(struct sk_buff * skb,struct ipv6hdr * nh,u8 ipv6_tclass,u8 mask) set_ipv6_dsfield() argument
418 set_ipv6_fl(struct sk_buff * skb,struct ipv6hdr * nh,u32 fl,u32 mask) set_ipv6_fl() argument
434 set_ipv6_ttl(struct sk_buff * skb,struct ipv6hdr * nh,u8 new_ttl,u8 mask) set_ipv6_ttl() argument
444 set_ip_ttl(struct sk_buff * skb,struct iphdr * nh,u8 new_ttl,u8 mask) set_ip_ttl() argument
457 struct iphdr *nh; set_ipv4() local
509 struct ipv6hdr *nh; set_ipv6() local
1177 struct ipv6hdr *nh; execute_dec_ttl() local
1191 struct iphdr *nh; execute_dec_ttl() local
[all...]
/linux/net/mpls/
H A Daf_mpls.c118 static u8 *__mpls_nh_via(struct mpls_route *rt, struct mpls_nh *nh) in __mpls_nh_via()
124 const struct mpls_nh *nh) in mpls_nh_via()
129 static unsigned int mpls_nh_header_size(const struct mpls_nh *nh) in mpls_nh_header_size()
370 const struct mpls_nh *nh; in mpls_forward() local
622 struct mpls_nh *nh, in inet_fib_lookup_dev()
642 struct mpls_nh *nh, in inet_fib_lookup_dev()
651 struct mpls_nh *nh, in inet6_fib_lookup_dev()
672 struct mpls_nh *nh, in inet6_fib_lookup_dev()
681 struct mpls_nh *nh, int oif) in find_outdev()
713 struct mpls_nh *nh, int oif) in mpls_nh_assign_dev()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_router.c3094 mlxsw_sp_nexthop_dev(const struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_dev()
3199 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_sh_counter_get()
3228 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_sh_counter_put()
3245 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_enable()
3272 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_disable()
3285 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_counter_update()
3294 struct mlxsw_sp_nexthop *nh, u64 *p_counter) in mlxsw_sp_nexthop_counter_get()
3304 struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_next()
3318 bool mlxsw_sp_nexthop_is_forward(const struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_is_forward()
3323 unsigned char *mlxsw_sp_nexthop_ha(struct mlxsw_sp_nexthop *nh) in mlxsw_sp_nexthop_ha()
[all …]
H A 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
1183 struct mlxsw_sp_nexthop *nh; in mlxsw_sp_dpipe_table_adj_counters_update() local
/linux/net/nsh/
H A Dnsh.c17 struct nshhdr *nh; in nsh_push() local
50 struct nshhdr *nh; in nsh_pop() local
/linux/arch/arm/vfp/
H A 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()
/linux/tools/lib/bpf/
H A Dnetlink.c143 struct nlmsghdr *nh; in libbpf_netlink_recv() local
251 static int parse_genl_family_id(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, in parse_genl_family_id()
407 static int parse_xdp_features(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, in parse_xdp_features()
697 static int get_tc_info(struct nlmsghdr *nh, libbpf_dump_nlmsg_t fn, in get_tc_info()
H A Dnlattr.h58 struct nlmsghdr nh; member
/linux/drivers/platform/surface/aggregator/
H A Dcontroller.c148 static int ssam_nfblk_call_chain(struct ssam_nf_head *nh, struct ssam_event *event) in ssam_nfblk_call_chain()
180 static int ssam_nfblk_insert(struct ssam_nf_head *nh, struct ssam_notifier_block *nb) in ssam_nfblk_insert()
215 static bool ssam_nfblk_find(struct ssam_nf_head *nh, struct ssam_notifier_block *nb) in ssam_nfblk_find()
247 static int ssam_nf_head_init(struct ssam_nf_head *nh) in ssam_nf_head_init()
263 static void ssam_nf_head_destroy(struct ssam_nf_head *nh) in ssam_nf_head_destroy()
/linux/drivers/extcon/
H A Dextcon.h52 struct raw_notifier_head *nh; member
/linux/drivers/net/vxlan/
H A Dvxlan_core.c164 struct nexthop *nh; in vxlan_fdb_info() local
797 struct nexthop *nh; in vxlan_fdb_nh_update() local
911 struct nexthop *nh; in __vxlan_fdb_free() local
1656 int nh; in vxlan_rcv() local
2651 struct nexthop *nh; in vxlan_xmit_nh() local
2682 struct nexthop *nh; in vxlan_xmit_nhid() local
2996 struct nexthop *nh = rtnl_dereference(f->nh); in vxlan_fdb_nhid_matches() local
4883 static void vxlan_fdb_nh_flush(struct nexthop *nh) in vxlan_fdb_nh_flush()
4904 struct nexthop *nh; in vxlan_nexthop_event() local
/linux/lib/crypto/mpi/
H A Dmpi-internal.h108 #define UDIV_QRNND_PREINV(q, r, nh, nl, d, di) \ argument

123