| /linux-6.15/include/net/ |
| H A D | net_namespace.h | 263 void __put_net(struct net *net); 266 static inline struct net *get_net(struct net *net) in get_net() argument 272 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument 307 static inline struct net *get_net(struct net *net) in get_net() argument 316 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument 379 static inline struct net *get_net_track(struct net *net, in get_net_track() argument 395 struct net __rcu *net; member 445 int peernet2id(const struct net *net, struct net *peer); 446 bool peernet_has_id(const struct net *net, struct net *peer); 447 struct net *get_net_ns_by_id(const struct net *net, int id); [all …]
|
| H A D | ip_fib.h | 165 int __net_init fib4_semantics_init(struct net *net); 166 void __net_exit fib4_semantics_exit(struct net *net); 250 int __net_init fib4_notifier_init(struct net *net); 251 void __net_exit fib4_notifier_exit(struct net *net); 365 int __net_init fib4_rules_init(struct net *net); 366 void __net_exit fib4_rules_exit(struct net *net); 480 int fib_unmerge(struct net *net); 623 void fib_flush(struct net *net); 638 int __net_init fib_proc_init(struct net *net); 639 void __net_exit fib_proc_exit(struct net *net); [all …]
|
| H A D | ip6_fib.h | 106 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument 111 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument 464 void fib6_clean_all_skip_notify(struct net *net, 488 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh, 494 int call_fib6_entry_notifiers(struct net *net, 498 int call_fib6_multipath_entry_notifiers(struct net *net, 563 int __net_init fib6_notifier_init(struct net *net); 564 void __net_exit fib6_notifier_exit(struct net *net); 566 unsigned int fib6_tables_seq_read(const struct net *net); 610 struct net *net, in pol_lookup_func() argument [all …]
|
| /linux-6.15/net/tipc/ |
| H 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 …]
|
| H 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 …]
|
| H 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 …]
|
| H 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 …]
|
| H 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, 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 …]
|
| /linux-6.15/drivers/net/thunderbolt/ |
| H 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() 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 …]
|
| /linux-6.15/net/core/ |
| H A D | net_namespace.c | 158 struct net *net; in ops_pre_exit_list() local 169 struct net *net; in ops_exit_list() local 183 struct net *net; in ops_free_list() local 422 struct net *net = NULL; in net_alloc() local 484 struct net *net = (struct net *)p; in net_drop_ns() local 494 struct net *net; in copy_net_ns() local 717 struct net *net; in get_net_ns() local 747 struct net *net; in get_net_ns_by_pid() local 1063 struct net *net; in rtnl_valid_dump_net_req() local 1264 struct net *net; in __register_pernet_operations() local [all …]
|
| H 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 58 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() argument 81 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() argument 88 if (fib_seq == fib_seq_sum(net)) in fib_dump_is_consistent() 97 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier() argument 119 int unregister_fib_notifier(struct net *net, struct notifier_block *nb) in unregister_fib_notifier() argument 128 struct net *net) in __fib_notifier_ops_register() argument 141 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() argument 169 static int __net_init fib_notifier_net_init(struct net *net) in fib_notifier_net_init() argument [all …]
|
| /linux-6.15/include/linux/ |
| H A D | rtnetlink.h | 101 void __rtnl_net_lock(struct net *net); 102 void __rtnl_net_unlock(struct net *net); 103 void rtnl_net_lock(struct net *net); 104 void rtnl_net_unlock(struct net *net); 105 int rtnl_net_trylock(struct net *net); 106 int rtnl_net_lock_killable(struct net *net); 109 bool rtnl_net_is_locked(struct net *net); 116 bool lockdep_rtnl_net_is_held(struct net *net); 128 static inline void rtnl_net_lock(struct net *net) in rtnl_net_lock() argument 133 static inline void rtnl_net_unlock(struct net *net) in rtnl_net_unlock() argument [all …]
|
| H 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.15/fs/afs/ |
| H A D | main.c | 71 net->net = net_ns; in afs_net_init() 72 net->live = true; in afs_net_init() 78 net->cells = RB_ROOT; in afs_net_init() 122 net->live = false; in afs_net_init() 124 afs_cell_purge(net); in afs_net_init() 127 net->live = false; in afs_net_init() 128 afs_proc_cleanup(net); in afs_net_init() 133 net->live = false; in afs_net_init() 144 net->live = false; in afs_net_exit() 146 afs_cell_purge(net); in afs_net_exit() [all …]
|
| /linux-6.15/kernel/bpf/ |
| H 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.15/drivers/net/ethernet/ |
| H A D | Kconfig | 18 source "drivers/net/ethernet/3com/Kconfig" 19 source "drivers/net/ethernet/actions/Kconfig" 20 source "drivers/net/ethernet/adaptec/Kconfig" 22 source "drivers/net/ethernet/agere/Kconfig" 23 source "drivers/net/ethernet/airoha/Kconfig" 26 source "drivers/net/ethernet/alteon/Kconfig" 29 source "drivers/net/ethernet/amd/Kconfig" 30 source "drivers/net/ethernet/apm/Kconfig" 31 source "drivers/net/ethernet/apple/Kconfig" 33 source "drivers/net/ethernet/arc/Kconfig" [all …]
|
| /linux-6.15/net/can/ |
| H 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 130 can_init_stats(net); in can_stat_update() 217 struct net *net = m->private; in can_stats_proc_show() local 282 struct net *net = m->private; in can_reset_stats_proc_show() local 319 struct net *net = m->private; in can_rcvlist_proc_show() local 373 struct net *net = m->private; in can_rcvlist_sff_proc_show() local 406 struct net *net = m->private; in can_rcvlist_eff_proc_show() local 438 void can_init_proc(struct net *net) in can_init_proc() argument 441 net->can.proc_dir = proc_net_mkdir(net, "can", net->proc_net); in can_init_proc() [all …]
|
| /linux-6.15/include/net/netfilter/ |
| H 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 …]
|
| /linux-6.15/fs/proc/ |
| H 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() 180 struct net *net; in single_open_net() local 184 if (!net) in single_open_net() 272 struct net *net = NULL; in get_proc_task_net() local 285 return net; in get_proc_task_net() 292 struct net *net; in proc_tgid_net_lookup() local 308 struct net *net; in proc_tgid_net_getattr() local [all …]
|
| /linux-6.15/tools/testing/selftests/net/hsr/ |
| H A D | hsr_ping.sh | 94 ip -net "$ns3" link set ns3eth1 down 97 ip -net "$ns3" link set ns3eth1 up 165 ip -net "$ns1" link set ns1eth1 up 166 ip -net "$ns1" link set ns1eth2 up 167 ip -net "$ns1" link set hsr1 up 169 ip -net "$ns2" link set ns2eth1 up 170 ip -net "$ns2" link set ns2eth2 up 171 ip -net "$ns2" link set hsr2 up 173 ip -net "$ns3" link set ns3eth1 up 174 ip -net "$ns3" link set ns3eth2 up [all …]
|
| /linux-6.15/net/xfrm/ |
| H 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() 43 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_sz(net, "net/core", table, in xfrm_sysctl_init() 64 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init() 74 void __net_exit xfrm_sysctl_fini(struct net *net) in xfrm_sysctl_fini() argument 83 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument [all …]
|
| /linux-6.15/drivers/net/usb/ |
| H A D | smsc75xx.c | 780 eth_hw_addr_random(dev->net); in smsc75xx_init_mac_address() 786 u32 addr_lo = dev->net->dev_addr[0] | dev->net->dev_addr[1] << 8 | in smsc75xx_set_mac_address() 787 dev->net->dev_addr[2] << 16 | dev->net->dev_addr[3] << 24; in smsc75xx_set_mac_address() 788 u32 addr_hi = dev->net->dev_addr[4] | dev->net->dev_addr[5] << 8; in smsc75xx_set_mac_address() 821 dev->mii.dev = dev->net; in smsc75xx_phy_initialize() 1126 dev->net->dev_addr); in smsc75xx_reset() 1180 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset() 1195 netif_dbg(dev, ifup, dev->net, in smsc75xx_reset() 1318 smsc75xx_set_features(dev->net, dev->net->features); in smsc75xx_reset() 1500 dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; in smsc75xx_bind() [all …]
|
| /linux-6.15/tools/testing/selftests/net/packetdrill/ |
| H A D | defaults.sh | 14 sysctl -q net.ipv4.tcp_timestamps=1 17 sysctl -q net.ipv4.tcp_syn_retries=5 18 sysctl -q net.ipv4.tcp_synack_retries=5 21 sysctl -q net.ipv4.tcp_frto=2 24 sysctl -q net.ipv4.tcp_sack=1 27 sysctl -q net.ipv4.tcp_dsack=1 30 sysctl -q net.ipv4.tcp_fack=0 33 sysctl -q net.ipv4.tcp_reordering=3 42 sysctl -q net.ipv4.tcp_early_retrans=4 net.ipv4.tcp_recovery=1 48 sysctl -q net.ipv4.tcp_ecn=0 [all …]
|
| /linux-6.15/tools/testing/selftests/net/ |
| H A D | big_tcp.sh | 34 ip -net $CLIENT_NS link set link0 up 40 ip -net $CLIENT_NS link set dev link0 \ 44 ip net exec $CLIENT_NS sysctl -wq net.ipv4.tcp_window_scaling=10 46 ip -net $ROUTER_NS link set link1 up 47 ip -net $ROUTER_NS link set link2 up 66 ip net exec $ROUTER_NS sysctl -wq net.ipv4.ip_forward=1 67 ip net exec $ROUTER_NS sysctl -wq net.ipv6.conf.all.forwarding=1 69 ip -net $SERVER_NS link set link3 up 78 ip net exec $SERVER_NS sysctl -wq net.ipv4.tcp_window_scaling=10 84 ip -net $ROUTER_NS link del link1 [all …]
|
| /linux-6.15/net/ipv4/ |
| H A D | fib_notifier.c | 19 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type, in call_fib4_notifiers() argument 26 WRITE_ONCE(net->ipv4.fib_seq, net->ipv4.fib_seq + 1); in call_fib4_notifiers() 30 static unsigned int fib4_seq_read(const struct net *net) in fib4_seq_read() argument 33 return READ_ONCE(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 …]
|