Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 2851) sorted by relevance

12345678910>>...115

/openbmc/linux/include/net/
H A Dnet_namespace.h258 static inline struct net *get_net(struct net *net) in get_net() argument
264 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument
298 static inline struct net *get_net(struct net *net) in get_net() argument
307 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument
355 static inline struct net *get_net_track(struct net *net, in get_net_track() argument
371 struct net *net; member
378 pnet->net = net; in write_pnet()
412 int peernet2id(const struct net *net, struct net *peer);
413 bool peernet_has_id(const struct net *net, struct net *peer);
414 struct net *get_net_ns_by_id(const struct net *net, int id);
[all …]
H A Dip6_fib.h112 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument
117 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument
456 void fib6_clean_all_skip_notify(struct net *net,
480 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
486 int call_fib6_entry_notifiers(struct net *net,
490 int call_fib6_multipath_entry_notifiers(struct net *net,
523 int __net_init fib6_notifier_init(struct net *net);
524 void __net_exit fib6_notifier_exit(struct net *net);
526 unsigned int fib6_tables_seq_read(struct net *net);
570 struct net *net, in pol_lookup_func() argument
[all …]
H A Dip_fib.h245 int __net_init fib4_notifier_init(struct net *net);
246 void __net_exit fib4_notifier_exit(struct net *net);
359 int __net_init fib4_rules_init(struct net *net);
360 void __net_exit fib4_rules_exit(struct net *net);
410 unsigned int fib4_rules_seq_read(struct net *net);
456 int fib_unmerge(struct net *net);
571 void fib_flush(struct net *net);
586 int __net_init fib_proc_init(struct net *net);
587 void __net_exit fib_proc_exit(struct net *net);
589 static inline int fib_proc_init(struct net *net) in fib_proc_init() argument
[all …]
H A Dl3mdev.h21 typedef int (*lookup_by_table_id_t)(struct net *net, u32 table_d);
59 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
62 void l3mdev_update_flow(struct net *net, struct flowi *fl);
119 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex);
121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
131 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
143 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument
243 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
262 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() argument
323 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match() argument
[all …]
/openbmc/linux/net/tipc/
H A Dbcast.h81 int tipc_bcast_init(struct net *net);
82 void tipc_bcast_stop(struct net *net);
83 void tipc_bcast_add_peer(struct net *net, struct tipc_link *l,
88 int tipc_bcast_get_mtu(struct net *net);
89 void tipc_bcast_toggle_rcast(struct net *net, bool supp);
96 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l,
98 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l,
106 u32 tipc_bcast_get_mode(struct net *net);
107 u32 tipc_bcast_get_broadcast_ratio(struct net *net);
112 static inline void tipc_bcast_lock(struct net *net) in tipc_bcast_lock() argument
[all …]
H A Dbcast.c77 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() argument
86 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() argument
91 void tipc_bcast_toggle_rcast(struct net *net, bool supp) in tipc_bcast_toggle_rcast() argument
96 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() argument
107 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary() argument
470 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_ack_rcv() argument
498 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_sync_rcv() argument
689 int tipc_bcast_init(struct net *net) in tipc_bcast_init() argument
722 void tipc_bcast_stop(struct net *net) in tipc_bcast_stop() argument
761 u32 tipc_bcast_get_mode(struct net *net) in tipc_bcast_get_mode() argument
[all …]
H A Dmonitor.h60 int tipc_mon_create(struct net *net, int bearer_id);
61 void tipc_mon_delete(struct net *net, int bearer_id);
63 void tipc_mon_peer_up(struct net *net, u32 addr, int bearer_id);
64 void tipc_mon_peer_down(struct net *net, u32 addr, int bearer_id);
65 void tipc_mon_prep(struct net *net, void *data, int *dlen,
67 void tipc_mon_rcv(struct net *net, void *data, u16 dlen, u32 addr,
69 void tipc_mon_get_state(struct net *net, u32 addr,
72 void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id);
75 int tipc_nl_monitor_get_threshold(struct net *net);
76 int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg,
[all …]
H A Dnode.h77 void tipc_node_stop(struct net *net);
78 bool tipc_node_get_id(struct net *net, u32 addr, u8 *id);
91 u32 tipc_node_try_addr(struct net *net, u8 *id, u32 addr);
92 void tipc_node_check_dest(struct net *net, u32 onode, u8 *peer_id128,
97 void tipc_node_delete_links(struct net *net, int bearer_id);
99 int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 node,
103 int tipc_node_distr_xmit(struct net *net, struct sk_buff_head *list);
104 int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dest,
110 void tipc_node_remove_conn(struct net *net, u32 dnode, u32 port);
112 bool tipc_node_is_up(struct net *net, u32 addr);
[all …]
H A Dbearer.h105 int (*send_msg)(struct net *net, struct sk_buff *buf,
108 int (*enable_media)(struct net *net, struct tipc_bearer *b,
233 void tipc_bearer_stop(struct net *net);
234 int tipc_bearer_mtu(struct net *net, u32 bearer_id);
235 int tipc_bearer_min_mtu(struct net *net, u32 bearer_id);
237 void tipc_bearer_xmit_skb(struct net *net, u32 bearer_id,
240 void tipc_bearer_xmit(struct net *net, u32 bearer_id,
244 void tipc_bearer_bc_xmit(struct net *net, u32 bearer_id,
247 int tipc_attach_loopback(struct net *net);
248 void tipc_detach_loopback(struct net *net);
[all …]
/openbmc/qemu/hw/net/
H A Dvhost_net.c136 net->dev.acked_features = net->dev.backend_features; in vhost_net_ack_features()
186 net->dev.vqs = net->vqs; in vhost_net_init()
203 net->dev.vq_index = net->nc->queue_index * net->dev.nvqs; in vhost_net_init()
218 if (~net->dev.features & net->dev.backend_features) { in vhost_net_init()
241 return net; in vhost_net_init()
263 r = net->nc->info->start(net->nc); in vhost_net_start_one()
280 net->nc->info->poll(net->nc, false); in vhost_net_start_one()
301 r = net->nc->info->load(net->nc); in vhost_net_start_one()
321 net->nc->info->poll(net->nc, true); in vhost_net_start_one()
342 net->nc->info->poll(net->nc, true); in vhost_net_stop_one()
[all …]
/openbmc/linux/drivers/net/thunderbolt/
H A Dmain.c377 stop_login(net); in tbnet_tear_down()
381 if (net->login_sent && net->login_received) { in tbnet_tear_down()
632 connected = net->login_sent && net->login_received; in tbnet_connected_work()
701 ret = tbnet_login_request(net, net->login_retries % 4); in tbnet_login_work()
765 if (net->skb && net->rx_hdr.frame_count) { in tbnet_check_frame()
856 skb = net->skb; in tbnet_poll()
1252 net->stats.rx_over_errors + net->stats.rx_crc_errors + in tbnet_get_stats64()
1307 net->svc = svc; in tbnet_probe()
1308 net->dev = dev; in tbnet_probe()
1309 net->xd = xd; in tbnet_probe()
[all …]
/openbmc/linux/net/core/
H A Dnet_namespace.c159 struct net *net; in ops_pre_exit_list() local
170 struct net *net; in ops_exit_list() local
184 struct net *net; in ops_free_list() local
413 struct net *net = NULL; in net_alloc() local
459 struct net *net = (struct net *)p; in net_drop_ns() local
469 struct net *net; in copy_net_ns() local
677 struct net *net; in get_net_ns() local
709 struct net *net; in get_net_ns_by_pid() local
1025 struct net *net; in rtnl_valid_dump_net_req() local
1163 struct net *net; in __register_pernet_operations() local
[all …]
H A Dfib_notifier.c29 int call_fib_notifiers(struct net *net, enum fib_event_type event_type, in call_fib_notifiers() argument
40 static unsigned int fib_seq_sum(struct net *net) in fib_seq_sum() argument
60 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() argument
83 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() argument
90 if (fib_seq == fib_seq_sum(net)) in fib_dump_is_consistent()
99 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier() argument
121 int unregister_fib_notifier(struct net *net, struct notifier_block *nb) in unregister_fib_notifier() argument
130 struct net *net) in __fib_notifier_ops_register() argument
143 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() argument
171 static int __net_init fib_notifier_net_init(struct net *net) in fib_notifier_net_init() argument
[all …]
/openbmc/linux/fs/afs/
H A Dmain.c73 net->net = net_ns; in afs_net_init()
74 net->live = true; in afs_net_init()
80 net->cells = RB_ROOT; in afs_net_init()
133 net->live = false; in afs_net_init()
135 afs_cell_purge(net); in afs_net_init()
138 net->live = false; in afs_net_init()
139 afs_proc_cleanup(net); in afs_net_init()
143 net->live = false; in afs_net_init()
154 net->live = false; in afs_net_exit()
156 afs_cell_purge(net); in afs_net_exit()
[all …]
/openbmc/linux/kernel/bpf/
H A Dnet_namespace.c22 struct net *net; member
108 struct net *net; in bpf_netns_link_release() local
117 net = net_link->net; in bpf_netns_link_release()
172 struct net *net; in bpf_netns_link_update_prog() local
182 net = net_link->net; in bpf_netns_link_update_prog()
210 struct net *net; in bpf_netns_link_fill_info() local
213 net = net_link->net; in bpf_netns_link_fill_info()
248 struct net *net, in __netns_bpf_prog_query() argument
275 struct net *net; in netns_bpf_prog_query() local
302 struct net *net; in netns_bpf_prog_attach() local
[all …]
/openbmc/linux/drivers/net/ethernet/
H A DKconfig21 source "drivers/net/ethernet/3com/Kconfig"
22 source "drivers/net/ethernet/actions/Kconfig"
23 source "drivers/net/ethernet/adaptec/Kconfig"
25 source "drivers/net/ethernet/agere/Kconfig"
28 source "drivers/net/ethernet/alteon/Kconfig"
29 source "drivers/net/ethernet/altera/Kconfig"
31 source "drivers/net/ethernet/amd/Kconfig"
32 source "drivers/net/ethernet/apm/Kconfig"
33 source "drivers/net/ethernet/apple/Kconfig"
35 source "drivers/net/ethernet/arc/Kconfig"
[all …]
/openbmc/linux/net/can/
H A Dproc.c79 static void can_init_stats(struct net *net) in can_init_stats() argument
117 struct net *net = from_timer(net, t, can.stattimer); in can_stat_update() local
123 can_init_stats(net); in can_stat_update()
212 struct net *net = m->private; in can_stats_proc_show() local
274 struct net *net = m->private; in can_reset_stats_proc_show() local
311 struct net *net = m->private; in can_rcvlist_proc_show() local
365 struct net *net = m->private; in can_rcvlist_sff_proc_show() local
398 struct net *net = m->private; in can_rcvlist_eff_proc_show() local
430 void can_init_proc(struct net *net) in can_init_proc() argument
433 net->can.proc_dir = proc_net_mkdir(net, "can", net->proc_net); in can_init_proc()
[all …]
/openbmc/linux/net/mptcp/
H A Dctrl.c38 static struct mptcp_pernet *mptcp_get_pernet(const struct net *net) in mptcp_get_pernet() argument
43 int mptcp_is_enabled(const struct net *net) in mptcp_is_enabled() argument
48 unsigned int mptcp_get_add_addr_timeout(const struct net *net) in mptcp_get_add_addr_timeout() argument
53 int mptcp_is_checksum_enabled(const struct net *net) in mptcp_is_checksum_enabled() argument
58 int mptcp_allow_join_id0(const struct net *net) in mptcp_allow_join_id0() argument
63 unsigned int mptcp_stale_loss_cnt(const struct net *net) in mptcp_stale_loss_cnt() argument
68 int mptcp_get_pm_type(const struct net *net) in mptcp_get_pm_type() argument
73 const char *mptcp_get_scheduler(const struct net *net) in mptcp_get_scheduler() argument
110 const struct net *net = current->nsproxy->net_ns; in proc_scheduler() local
240 static int __net_init mptcp_net_init(struct net *net) in mptcp_net_init() argument
[all …]
/openbmc/linux/include/net/netfilter/
H A Dnf_conntrack_l4proto.h51 struct net *net, void *data);
66 struct net *net,
71 struct net *net,
136 void nf_conntrack_generic_init_net(struct net *net);
137 void nf_conntrack_tcp_init_net(struct net *net);
138 void nf_conntrack_udp_init_net(struct net *net);
139 void nf_conntrack_gre_init_net(struct net *net);
140 void nf_conntrack_dccp_init_net(struct net *net);
141 void nf_conntrack_sctp_init_net(struct net *net);
142 void nf_conntrack_icmp_init_net(struct net *net);
[all …]
H A Dnf_synproxy.h30 static inline struct synproxy_net *synproxy_pernet(struct net *net) in synproxy_pernet() argument
52 void synproxy_send_client_synack(struct net *net, const struct sk_buff *skb,
56 bool synproxy_recv_client_ack(struct net *net,
65 int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net);
66 void nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net);
69 void synproxy_send_client_synack_ipv6(struct net *net,
74 bool synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb,
80 int nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net);
81 void nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net);
84 nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net) { return 0; } in nf_synproxy_ipv6_init() argument
[all …]
/openbmc/linux/net/xfrm/
H A Dxfrm_sysctl.c7 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init() argument
11 net->xfrm.sysctl_larval_drop = 1; in __xfrm_sysctl_init()
12 net->xfrm.sysctl_acq_expires = 30; in __xfrm_sysctl_init()
44 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument
49 __xfrm_sysctl_init(net); in xfrm_sysctl_init()
60 if (net->user_ns != &init_user_ns) { in xfrm_sysctl_init()
65 net->xfrm.sysctl_hdr = register_net_sysctl_sz(net, "net/core", table, in xfrm_sysctl_init()
67 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init()
77 void __net_exit xfrm_sysctl_fini(struct net *net) in xfrm_sysctl_fini() argument
86 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument
[all …]
/openbmc/linux/fs/proc/
H A Dproc_net.c43 struct net *net; in seq_open_net() local
51 if (!net) in seq_open_net()
56 put_net(net); in seq_open_net()
60 p->net = net; in seq_open_net()
179 struct net *net; in single_open_net() local
183 if (!net) in single_open_net()
271 struct net *net = NULL; in get_proc_task_net() local
284 return net; in get_proc_task_net()
291 struct net *net; in proc_tgid_net_lookup() local
307 struct net *net; in proc_tgid_net_getattr() local
[all …]
/openbmc/linux/include/linux/
H A Dnetfilter_ipv6.h43 int (*chk_addr)(struct net *net, const struct in6_addr *addr,
45 int (*route_me_harder)(struct net *net, struct sock *sk, struct sk_buff *skb);
46 int (*dev_get_saddr)(struct net *net, const struct net_device *dev,
49 int (*route)(struct net *net, struct dst_entry **dst, struct flowi *fl,
57 int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
61 int (*br_fragment)(struct net *net, struct sock *sk,
79 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() argument
96 int __nf_ip6_route(struct net *net, struct dst_entry **dst,
99 static inline int nf_ip6_route(struct net *net, struct dst_entry **dst, in nf_ip6_route() argument
119 int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
[all …]
/openbmc/linux/drivers/net/usb/
H A Dsmsc75xx.c785 eth_hw_addr_random(dev->net); in smsc75xx_init_mac_address()
791 u32 addr_lo = dev->net->dev_addr[0] | dev->net->dev_addr[1] << 8 | in smsc75xx_set_mac_address()
792 dev->net->dev_addr[2] << 16 | dev->net->dev_addr[3] << 24; in smsc75xx_set_mac_address()
793 u32 addr_hi = dev->net->dev_addr[4] | dev->net->dev_addr[5] << 8; in smsc75xx_set_mac_address()
826 dev->mii.dev = dev->net; in smsc75xx_phy_initialize()
1131 dev->net->dev_addr); in smsc75xx_reset()
1185 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset()
1200 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset()
1323 smsc75xx_set_features(dev->net, dev->net->features); in smsc75xx_reset()
1505 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind()
[all …]
/openbmc/linux/net/ipv4/
H A Dfib_notifier.c19 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type, in call_fib4_notifiers() argument
25 net->ipv4.fib_seq++; in call_fib4_notifiers()
29 static unsigned int fib4_seq_read(struct net *net) in fib4_seq_read() argument
33 return net->ipv4.fib_seq + fib4_rules_seq_read(net); in fib4_seq_read()
36 static int fib4_dump(struct net *net, struct notifier_block *nb, in fib4_dump() argument
41 err = fib4_rules_dump(net, nb, extack); in fib4_dump()
45 return fib_notify(net, nb, extack); in fib4_dump()
55 int __net_init fib4_notifier_init(struct net *net) in fib4_notifier_init() argument
59 net->ipv4.fib_seq = 0; in fib4_notifier_init()
64 net->ipv4.notifier_ops = ops; in fib4_notifier_init()
[all …]

12345678910>>...115