/linux-6.3-rc2/include/net/ |
A D | net_namespace.h | 256 static inline struct net *get_net(struct net *net) in get_net() argument 262 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument 296 static inline struct net *get_net(struct net *net) in get_net() argument 305 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument 353 static inline struct net *get_net_track(struct net *net, in get_net_track() argument 369 struct net *net; member 376 pnet->net = net; in write_pnet() 410 int peernet2id(const struct net *net, struct net *peer); 411 bool peernet_has_id(const struct net *net, struct net *peer); 412 struct net *get_net_ns_by_id(const struct net *net, int id); [all …]
|
A D | ip6_fib.h | 112 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 459 void fib6_clean_all_skip_notify(struct net *net, 486 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh, 492 int call_fib6_entry_notifiers(struct net *net, 496 int call_fib6_multipath_entry_notifiers(struct net *net, 529 int __net_init fib6_notifier_init(struct net *net); 530 void __net_exit fib6_notifier_exit(struct net *net); 532 unsigned int fib6_tables_seq_read(struct net *net); 576 struct net *net, in pol_lookup_func() argument [all …]
|
A D | ip_fib.h | 244 int __net_init fib4_notifier_init(struct net *net); 245 void __net_exit fib4_notifier_exit(struct net *net); 358 int __net_init fib4_rules_init(struct net *net); 359 void __net_exit fib4_rules_exit(struct net *net); 409 unsigned int fib4_rules_seq_read(struct net *net); 452 int fib_unmerge(struct net *net); 567 void fib_flush(struct net *net); 582 int __net_init fib_proc_init(struct net *net); 583 void __net_exit fib_proc_exit(struct net *net); 585 static inline int fib_proc_init(struct net *net) in fib_proc_init() argument [all …]
|
A D | l3mdev.h | 21 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 …]
|
/linux-6.3-rc2/net/tipc/ |
A D | bcast.h | 81 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 …]
|
A D | bcast.c | 77 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 …]
|
A D | node.h | 77 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 …]
|
A D | monitor.h | 60 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 …]
|
A D | bearer.h | 105 int (*send_msg)(struct net *net, struct sk_buff *buf, 108 int (*enable_media)(struct net *net, struct tipc_bearer *b, 223 int tipc_l2_send_msg(struct net *net, struct sk_buff *buf, 233 void tipc_bearer_stop(struct net *net); 234 int tipc_bearer_mtu(struct net *net, u32 bearer_id); 236 void tipc_bearer_xmit_skb(struct net *net, u32 bearer_id, 239 void tipc_bearer_xmit(struct net *net, u32 bearer_id, 243 void tipc_bearer_bc_xmit(struct net *net, u32 bearer_id, 246 int tipc_attach_loopback(struct net *net); 247 void tipc_detach_loopback(struct net *net); [all …]
|
/linux-6.3-rc2/drivers/net/thunderbolt/ |
A D | main.c | 377 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() 1250 net->stats.rx_over_errors + net->stats.rx_crc_errors + in tbnet_get_stats64() 1305 net->svc = svc; in tbnet_probe() 1306 net->dev = dev; in tbnet_probe() 1307 net->xd = xd; in tbnet_probe() [all …]
|
/linux-6.3-rc2/net/core/ |
A D | net_namespace.c | 155 struct net *net; in ops_pre_exit_list() local 166 struct net *net; in ops_exit_list() local 180 struct net *net; in ops_free_list() local 409 struct net *net = NULL; in net_alloc() local 455 struct net *net = (struct net *)p; in net_drop_ns() local 465 struct net *net; in copy_net_ns() local 681 struct net *net; in get_net_ns_by_fd() local 702 struct net *net; in get_net_ns_by_pid() local 1018 struct net *net; in rtnl_valid_dump_net_req() local 1156 struct net *net; in __register_pernet_operations() local [all …]
|
A D | fib_notifier.c | 29 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 …]
|
/linux-6.3-rc2/fs/afs/ |
A D | main.c | 73 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 …]
|
/linux-6.3-rc2/kernel/bpf/ |
A D | net_namespace.c | 22 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 …]
|
/linux-6.3-rc2/drivers/net/ethernet/ |
A D | Kconfig | 21 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 …]
|
/linux-6.3-rc2/net/can/ |
A D | proc.c | 79 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 …]
|
/linux-6.3-rc2/include/net/netfilter/ |
A D | nf_conntrack_l4proto.h | 51 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 …]
|
A D | nf_synproxy.h | 30 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 …]
|
/linux-6.3-rc2/net/mptcp/ |
A D | ctrl.c | 37 static struct mptcp_pernet *mptcp_get_pernet(const struct net *net) in mptcp_get_pernet() argument 42 int mptcp_is_enabled(const struct net *net) in mptcp_is_enabled() argument 47 unsigned int mptcp_get_add_addr_timeout(const struct net *net) in mptcp_get_add_addr_timeout() argument 52 int mptcp_is_checksum_enabled(const struct net *net) in mptcp_is_checksum_enabled() argument 57 int mptcp_allow_join_id0(const struct net *net) in mptcp_allow_join_id0() argument 62 unsigned int mptcp_stale_loss_cnt(const struct net *net) in mptcp_stale_loss_cnt() argument 67 int mptcp_get_pm_type(const struct net *net) in mptcp_get_pm_type() argument 134 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table() argument 179 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table() argument 188 static int __net_init mptcp_net_init(struct net *net) in mptcp_net_init() argument [all …]
|
/linux-6.3-rc2/fs/proc/ |
A D | proc_net.c | 43 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 …]
|
/linux-6.3-rc2/net/xfrm/ |
A D | xfrm_sysctl.c | 7 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 48 __xfrm_sysctl_init(net); in xfrm_sysctl_init() 59 if (net->user_ns != &init_user_ns) in xfrm_sysctl_init() 62 net->xfrm.sysctl_hdr = register_net_sysctl(net, "net/core", table); in xfrm_sysctl_init() 63 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init() 73 void __net_exit xfrm_sysctl_fini(struct net *net) in xfrm_sysctl_fini() argument 82 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument [all …]
|
/linux-6.3-rc2/drivers/net/usb/ |
A D | smsc75xx.c | 783 eth_hw_addr_random(dev->net); in smsc75xx_init_mac_address() 789 u32 addr_lo = dev->net->dev_addr[0] | dev->net->dev_addr[1] << 8 | in smsc75xx_set_mac_address() 790 dev->net->dev_addr[2] << 16 | dev->net->dev_addr[3] << 24; in smsc75xx_set_mac_address() 791 u32 addr_hi = dev->net->dev_addr[4] | dev->net->dev_addr[5] << 8; in smsc75xx_set_mac_address() 824 dev->mii.dev = dev->net; in smsc75xx_phy_initialize() 1129 dev->net->dev_addr); in smsc75xx_reset() 1183 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset() 1198 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset() 1321 smsc75xx_set_features(dev->net, dev->net->features); in smsc75xx_reset() 1503 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind() [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | netfilter_ipv6.h | 43 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 …]
|
/linux-6.3-rc2/net/sctp/ |
A D | sm_statefuns.c | 51 struct net *net, 60 struct net *net, 70 struct net *net, 77 struct net *net, 84 struct net *net, 91 struct net *net, 100 struct net *net, 107 struct net *net, 116 struct net *net, 124 struct net *net, [all …]
|
/linux-6.3-rc2/net/ipv4/ |
A D | fib_notifier.c | 19 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 …]
|