Home
last modified time | relevance | path

Searched refs:net (Results 76 – 100 of 3363) sorted by relevance

12345678910>>...135

/openbmc/linux/net/sunrpc/
H A Dsunrpc_syms.c33 static __net_init int sunrpc_init_net(struct net *net) in sunrpc_init_net() argument
38 err = rpc_proc_init(net); in sunrpc_init_net()
42 err = ip_map_cache_create(net); in sunrpc_init_net()
60 unix_gid_cache_destroy(net); in sunrpc_init_net()
62 ip_map_cache_destroy(net); in sunrpc_init_net()
64 rpc_proc_exit(net); in sunrpc_init_net()
69 static __net_exit void sunrpc_exit_net(struct net *net) in sunrpc_exit_net() argument
73 rpc_pipefs_exit_net(net); in sunrpc_exit_net()
74 unix_gid_cache_destroy(net); in sunrpc_exit_net()
75 ip_map_cache_destroy(net); in sunrpc_exit_net()
[all …]
/openbmc/linux/include/net/
H A Dinet6_hashtables.h43 struct sock *__inet6_lookup_established(struct net *net,
51 typedef u32 (inet6_ehashfn_t)(const struct net *net,
59 struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk,
67 struct sock *inet6_lookup_listener(struct net *net,
76 struct sock *inet6_lookup_run_sk_lookup(struct net *net,
85 static inline struct sock *__inet6_lookup(struct net *net, in __inet6_lookup() argument
107 struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet6_steal_sock() argument
153 struct net *net = dev_net(skb_dst(skb)->dev); in __inet6_lookup_skb() local
170 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,
178 static inline bool inet6_match(struct net *net, const struct sock *sk, in inet6_match() argument
[all …]
H A Dipv6.h904 __be32 ipv6_select_ident(struct net *net,
1138 struct net *net, struct socket *sock,
1142 struct dst_entry *ip6_blackhole_route(struct net *net,
1256 int ac6_proc_init(struct net *net);
1257 void ac6_proc_exit(struct net *net);
1260 int tcp6_proc_init(struct net *net);
1261 void tcp6_proc_exit(struct net *net);
1262 int udp6_proc_init(struct net *net);
1263 void udp6_proc_exit(struct net *net);
1273 static inline void ac6_proc_exit(struct net *net) { } in ac6_proc_exit() argument
[all …]
/openbmc/linux/net/tipc/
H A Dbearer.c529 int tipc_bearer_mtu(struct net *net, u32 bearer_id) in tipc_bearer_mtu() argument
686 struct net *net = dev_net(dev); in tipc_l2_device_event() local
744 void tipc_bearer_stop(struct net *net) in tipc_bearer_stop() argument
794 int tipc_attach_loopback(struct net *net) in tipc_attach_loopback() argument
810 void tipc_detach_loopback(struct net *net) in tipc_detach_loopback() argument
881 struct net *net = sock_net(skb->sk); in tipc_nl_bearer_dump() local
915 struct net *net = genl_info_net(info); in tipc_nl_bearer_get() local
965 struct net *net = sock_net(skb->sk); in __tipc_nl_bearer_disable() local
1008 struct net *net = sock_net(skb->sk); in __tipc_nl_bearer_enable() local
1064 struct net *net = sock_net(skb->sk); in tipc_nl_bearer_add() local
[all …]
H A Dname_distr.h70 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ);
71 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ);
72 void tipc_named_node_up(struct net *net, u32 dnode, u16 capabilities);
73 void tipc_named_rcv(struct net *net, struct sk_buff_head *namedq,
75 void tipc_named_reinit(struct net *net);
76 void tipc_publ_notify(struct net *net, struct list_head *nsub_list,
/openbmc/linux/tools/testing/selftests/netfilter/
H A Dipip-conntrack-mtu.sh102 ip -net ${r_a} link set $dev up
105 ip -net ${r_a} addr add 10.2.2.1/24 dev veth0
133 ip -net ${r_b} link set $dev up
136 ip -net ${r_b} addr add 10.4.4.1/24 dev veth0
145 ip -net ${c_a} link set dev lo up
146 ip -net ${c_a} link set dev veth0 up
151 ip -net ${c_b} link set dev veth0 up
152 ip -net ${c_b} link set dev lo up
159 ip -net ${r_w} link set dev lo up
163 ip -net ${r_a} link set dev veth0 mtu 1400
[all …]
/openbmc/linux/drivers/net/usb/
H A Dpegasus.c467 net = pegasus->net; in read_bulk_callback()
468 if (!netif_device_present(net) || !netif_running(net)) in read_bulk_callback()
610 net = pegasus->net; in write_bulk_callback()
612 if (!netif_device_present(net) || !netif_running(net)) in write_bulk_callback()
634 netif_wake_queue(net); in write_bulk_callback()
645 net = pegasus->net; in intr_callback()
871 set_carrier(net); in pegasus_open()
1037 } else if (!netdev_mc_empty(net) || (net->flags & IFF_ALLMULTI)) { in pegasus_set_multicast()
1142 if (!net) in pegasus_probe()
1160 pegasus->net = net; in pegasus_probe()
[all …]
H A Dusbnet.c403 dev->hard_mtu = net->mtu + net->hard_header_len; in usbnet_change_mtu()
821 net->stats.rx_packets, net->stats.tx_packets, in usbnet_stop()
822 net->stats.rx_errors, net->stats.tx_errors); in usbnet_stop()
1620 net = dev->net; in usbnet_disconnect()
1699 if (!net) in usbnet_probe()
1732 dev->net = net; in usbnet_probe()
1733 strscpy(net->name, "usb%d", sizeof(net->name)); in usbnet_probe()
1739 dev->hard_mtu = net->mtu + net->hard_header_len; in usbnet_probe()
1760 strscpy(net->name, "eth%d", sizeof(net->name)); in usbnet_probe()
1763 strscpy(net->name, "wlan%d", sizeof(net->name)); in usbnet_probe()
[all …]
/openbmc/linux/net/unix/
H A Dsysctl_net_unix.c25 int __net_init unix_sysctl_register(struct net *net) in unix_sysctl_register() argument
29 if (net_eq(net, &init_net)) { in unix_sysctl_register()
36 table[0].data = &net->unx.sysctl_max_dgram_qlen; in unix_sysctl_register()
39 net->unx.ctl = register_net_sysctl_sz(net, "net/unix", table, in unix_sysctl_register()
41 if (net->unx.ctl == NULL) in unix_sysctl_register()
47 if (!net_eq(net, &init_net)) in unix_sysctl_register()
53 void unix_sysctl_unregister(struct net *net) in unix_sysctl_unregister() argument
57 table = net->unx.ctl->ctl_table_arg; in unix_sysctl_unregister()
58 unregister_net_sysctl_table(net->unx.ctl); in unix_sysctl_unregister()
59 if (!net_eq(net, &init_net)) in unix_sysctl_unregister()
/openbmc/linux/net/ipv6/
H A Dxfrm6_policy.c26 static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos, int oif, in xfrm6_dst_lookup() argument
53 static int xfrm6_get_saddr(struct net *net, int oif, in xfrm6_get_saddr() argument
196 static int __net_init xfrm6_net_sysctl_init(struct net *net) in xfrm6_net_sysctl_init() argument
219 if (!net_eq(net, &init_net)) in xfrm6_net_sysctl_init()
225 static void __net_exit xfrm6_net_sysctl_exit(struct net *net) in xfrm6_net_sysctl_exit() argument
234 if (!net_eq(net, &init_net)) in xfrm6_net_sysctl_exit()
238 static inline int xfrm6_net_sysctl_init(struct net *net) in xfrm6_net_sysctl_init() argument
243 static inline void xfrm6_net_sysctl_exit(struct net *net) in xfrm6_net_sysctl_exit() argument
248 static int __net_init xfrm6_net_init(struct net *net) in xfrm6_net_init() argument
265 static void __net_exit xfrm6_net_exit(struct net *net) in xfrm6_net_exit() argument
[all …]
H A Dip6_input.c48 static void ip6_rcv_finish_core(struct net *net, struct sock *sk, in ip6_rcv_finish_core() argument
69 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() argument
99 static struct sk_buff *ip6_extract_route_hint(const struct net *net, in ip6_extract_route_hint() argument
102 if (fib6_routes_require_src(net) || fib6_has_custom_rules(net) || in ip6_extract_route_hint()
109 static void ip6_list_rcv_finish(struct net *net, struct sock *sk, in ip6_list_rcv_finish() argument
150 struct net *net) in ip6_rcv_core() argument
269 __IP6_INC_STATS(net, in ip6_rcv_core()
305 struct net *net = dev_net(skb->dev); in ipv6_rcv() local
316 struct net *net) in ip6_sublist_rcv() argument
335 struct net *net = dev_net(dev); in ipv6_list_rcv() local
[all …]
H A Dip6mr.c364 struct net *net) in ip6mr_new_table_set() argument
597 struct net *net = dev_net(dev); in reg_vif_xmit() local
774 struct net *net = read_pnet(&mrt->net); in ip6mr_destroy_unres() local
1244 struct net *net = dev_net(dev); in ip6mr_device_event() local
1358 struct net *net; in ip6mr_net_exit_batch() local
1569 struct net *net = sock_net(sk); in ip6mr_sk_init() local
1594 struct net *net = sock_net(sk); in ip6mr_sk_done() local
1663 struct net *net = sock_net(sk); in ip6_mroute_setsockopt() local
1838 struct net *net = sock_net(sk); in ip6_mroute_getsockopt() local
2419 struct net *net = read_pnet(&mrt->net); in mr6_netlink_event() local
[all …]
H A Dsysctl_net_ipv6.c36 struct net *net; in proc_rt6_multipath_hash_policy() local
39 net = container_of(table->data, struct net, in proc_rt6_multipath_hash_policy()
52 struct net *net; in proc_rt6_multipath_hash_fields() local
55 net = container_of(table->data, struct net, in proc_rt6_multipath_hash_fields()
254 static int __net_init ipv6_sysctl_net_init(struct net *net) in ipv6_sysctl_net_init() argument
278 net->ipv6.sysctl.hdr = register_net_sysctl_sz(net, "net/ipv6", in ipv6_sysctl_net_init()
281 if (!net->ipv6.sysctl.hdr) in ipv6_sysctl_net_init()
284 net->ipv6.sysctl.route_hdr = register_net_sysctl_sz(net, in ipv6_sysctl_net_init()
291 net->ipv6.sysctl.icmp_hdr = register_net_sysctl_sz(net, in ipv6_sysctl_net_init()
295 if (!net->ipv6.sysctl.icmp_hdr) in ipv6_sysctl_net_init()
[all …]
/openbmc/linux/net/ipv4/
H A Dtcp_plb.c28 struct net *net = sock_net(sk); in tcp_plb_update_state() local
30 if (!READ_ONCE(net->ipv4.sysctl_tcp_plb_enabled)) in tcp_plb_update_state()
34 if (cong_ratio < READ_ONCE(net->ipv4.sysctl_tcp_plb_cong_thresh)) in tcp_plb_update_state()
37 READ_ONCE(net->ipv4.sysctl_tcp_plb_rehash_rounds)) in tcp_plb_update_state()
48 struct net *net = sock_net(sk); in tcp_plb_check_rehash() local
52 if (!READ_ONCE(net->ipv4.sysctl_tcp_plb_enabled)) in tcp_plb_check_rehash()
56 READ_ONCE(net->ipv4.sysctl_tcp_plb_rehash_rounds); in tcp_plb_check_rehash()
61 READ_ONCE(net->ipv4.sysctl_tcp_plb_idle_rehash_rounds); in tcp_plb_check_rehash()
93 struct net *net = sock_net(sk); in tcp_plb_update_state_upon_rto() local
96 if (!READ_ONCE(net->ipv4.sysctl_tcp_plb_enabled)) in tcp_plb_update_state_upon_rto()
[all …]
H A Dfib_rules.c70 int fib4_rules_dump(struct net *net, struct notifier_block *nb, in fib4_rules_dump() argument
76 unsigned int fib4_rules_seq_read(struct net *net) in fib4_rules_seq_read() argument
81 int __fib_lookup(struct net *net, struct flowi4 *flp, in __fib_lookup() argument
206 static struct fib_table *fib_empty_table(struct net *net) in fib_empty_table() argument
225 struct net *net = sock_net(skb->sk); in fib4_rule_configure() local
242 err = fib_unmerge(net); in fib4_rule_configure()
291 struct net *net = rule->fr_net; in fib4_rule_delete() local
295 err = fib_unmerge(net); in fib4_rule_delete()
410 int __net_init fib4_rules_init(struct net *net) in fib4_rules_init() argument
422 net->ipv4.rules_ops = ops; in fib4_rules_init()
[all …]
H A Dipmr.c380 struct net *net) in ipmr_new_table_set() argument
494 struct net *net = dev_net(dev); in reg_vif_xmit() local
652 struct net *net = read_pnet(&mrt->net); in vif_delete() local
722 struct net *net = read_pnet(&mrt->net); in ipmr_destroy_unres() local
1178 struct net *net = read_pnet(&mrt->net); in ipmr_mfc_delete() local
1280 struct net *net = read_pnet(&mrt->net); in mroute_clean_tables() local
1333 struct net *net = sock_net(sk); in mrtsock_destruct() local
1360 struct net *net = sock_net(sk); in ip_mroute_setsockopt() local
2390 struct net *net = read_pnet(&mrt->net); in mroute_netlink_event() local
2431 struct net *net = read_pnet(&mrt->net); in igmpmsg_netlink_event() local
[all …]
/openbmc/linux/net/ipv6/netfilter/
H A Dnf_defrag_ipv6_hooks.c91 static void __net_exit defrag6_net_exit(struct net *net) in defrag6_net_exit() argument
93 if (net->nf.defrag_ipv6_users) { in defrag6_net_exit()
96 net->nf.defrag_ipv6_users = 0; in defrag6_net_exit()
142 int nf_defrag_ipv6_enable(struct net *net) in nf_defrag_ipv6_enable() argument
152 if (net->nf.defrag_ipv6_users) { in nf_defrag_ipv6_enable()
153 net->nf.defrag_ipv6_users++; in nf_defrag_ipv6_enable()
160 net->nf.defrag_ipv6_users = 1; in nf_defrag_ipv6_enable()
168 void nf_defrag_ipv6_disable(struct net *net) in nf_defrag_ipv6_disable() argument
171 if (net->nf.defrag_ipv6_users) { in nf_defrag_ipv6_disable()
172 net->nf.defrag_ipv6_users--; in nf_defrag_ipv6_disable()
[all …]
/openbmc/linux/fs/lockd/
H A Dsvc.c109 static void set_grace_period(struct net *net) in set_grace_period() argument
126 struct net *net = &init_net; in lockd() local
158 struct net *net, const int family, in create_lockd_listener() argument
172 static int create_lockd_family(struct svc_serv *serv, struct net *net, in create_lockd_family() argument
196 static int make_socks(struct svc_serv *serv, struct net *net, in make_socks() argument
222 static int lockd_up_net(struct svc_serv *serv, struct net *net, in lockd_up_net() argument
247 static void lockd_down_net(struct svc_serv *serv, struct net *net) in lockd_down_net() argument
385 int lockd_up(struct net *net, const struct cred *cred) in lockd_up() argument
411 lockd_down(struct net *net) in lockd_down() argument
552 static int lockd_init_net(struct net *net) in lockd_init_net() argument
[all …]
/openbmc/linux/include/linux/netfilter/
H A Dnfnetlink.h11 struct net *net; member
45 int (*commit)(struct net *net, struct sk_buff *skb);
46 int (*abort)(struct net *net, struct sk_buff *skb,
48 bool (*valid_genid)(struct net *net, u32 genid);
54 int nfnetlink_has_listeners(struct net *net, unsigned int group);
55 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
57 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
58 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid);
59 void nfnetlink_broadcast(struct net *net, struct sk_buff *skb, __u32 portid,
/openbmc/linux/net/netfilter/
H A Dnf_conntrack_proto.c54 struct net *net = state->net; in nf_l4proto_log_invalid() local
79 struct net *net; in nf_ct_l4proto_log_invalid() local
82 net = nf_ct_net(ct); in nf_ct_l4proto_log_invalid()
438 static int nf_ct_netns_do_get(struct net *net, u8 nfproto) in nf_ct_netns_do_get() argument
518 .net = net, in nf_ct_netns_do_get()
527 static void nf_ct_netns_do_put(struct net *net, u8 nfproto) in nf_ct_netns_do_put() argument
537 nf_defrag_ipv4_disable(net); in nf_ct_netns_do_put()
562 static int nf_ct_netns_inet_get(struct net *net) in nf_ct_netns_inet_get() argument
582 int nf_ct_netns_get(struct net *net, u8 nfproto) in nf_ct_netns_get() argument
609 void nf_ct_netns_put(struct net *net, uint8_t nfproto) in nf_ct_netns_put() argument
[all …]
H A Dcore.c279 nf_hook_entry_head(struct net *net, int pf, unsigned int hooknum, in nf_hook_entry_head() argument
336 static int nf_ingress_check(struct net *net, const struct nf_hook_ops *reg, in nf_ingress_check() argument
396 static int __nf_register_net_hook(struct net *net, int pf, in __nf_register_net_hook() argument
488 static void __nf_unregister_net_hook(struct net *net, int pf, in __nf_unregister_net_hook() argument
557 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *reg) in nf_register_net_hook() argument
587 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg, in nf_register_net_hooks() argument
776 static int __net_init netfilter_net_init(struct net *net) in netfilter_net_init() argument
781 __netfilter_net_init(net->nf.hooks_arp, ARRAY_SIZE(net->nf.hooks_arp)); in netfilter_net_init()
787 net->nf.proc_netfilter = proc_net_mkdir(net, "netfilter", in netfilter_net_init()
788 net->proc_net); in netfilter_net_init()
[all …]
/openbmc/linux/drivers/rapidio/
H A Drio-scan.c349 rdev->net = net; in rio_setup_device()
820 struct rio_net *net; in rio_scan_release_dev() local
824 kfree(net); in rio_scan_release_dev()
840 struct rio_net *net; in rio_scan_alloc_net() local
858 net = NULL; in rio_scan_alloc_net()
868 if (net) { in rio_scan_alloc_net()
871 dev_set_name(&net->dev, "rnet_%d", net->id); in rio_scan_alloc_net()
874 rio_add_net(net); in rio_scan_alloc_net()
877 return net; in rio_scan_alloc_net()
975 if (!net) { in rio_enum_mport()
[all …]
/openbmc/linux/fs/afs/
H A Dproc.c155 struct afs_net *net; in afs_proc_rootcell_show() local
159 cell = net->ws_cell; in afs_proc_rootcell_show()
162 up_read(&net->cells_lock); in afs_proc_rootcell_show()
455 names = net->sysnames; in afs_proc_sysname_start()
551 kill = net->sysnames; in afs_proc_sysname_write()
615 struct afs_net *net = cell->net; in afs_proc_cell_setup() local
619 dir = proc_net_mkdir(net->net, cell->name, net->proc_afs); in afs_proc_cell_setup()
648 struct afs_net *net = cell->net; in afs_proc_cell_remove() local
664 p = proc_net_mkdir(net->net, "afs", net->net->proc_net); in afs_proc_init()
687 net->proc_afs = p; in afs_proc_init()
[all …]
/openbmc/linux/include/net/sctp/
H A Dsctp.h82 int sctp_udp_sock_start(struct net *net);
83 void sctp_udp_sock_stop(struct net *net);
106 struct sctp_transport *sctp_transport_get_next(struct net *net,
108 struct sctp_transport *sctp_transport_get_idx(struct net *net,
114 struct net *net, int *pos, void *p);
156 struct net *net,
168 int __net_init sctp_proc_init(struct net *net);
312 int sctp_sysctl_net_register(struct net *net);
313 void sctp_sysctl_net_unregister(struct net *net);
496 static inline int sctp_phashfn(struct net *net, __u16 lport) in sctp_phashfn() argument
[all …]
/openbmc/linux/net/sctp/
H A Dinput.c61 struct net *net,
100 struct net *net = dev_net(skb->dev); in sctp_rcv() local
444 struct net *net = sock_net(sk); in sctp_icmp_proto_unreachable() local
736 struct net *net = sock_net(sk); in __sctp_hash_endpoint() local
878 const struct net *net; member
949 arg.net = t->asoc->base.net; in sctp_hash_transport()
993 struct net *net, in sctp_addrs_lookup_transport() argument
1003 .net = net, in sctp_addrs_lookup_transport()
1034 .net = ep->base.net, in sctp_epaddr_lookup_transport()
1050 struct net *net, in __sctp_lookup_association() argument
[all …]

12345678910>>...135