/net/ipv6/ |
D | proc.c | 202 static void snmp6_seq_show_item64(struct seq_file *seq, void __percpu *mib, in snmp6_seq_show_item64() argument 210 snmp_get_cpu_field64_batch(buff64, itemlist, mib, syncpoff); in snmp6_seq_show_item64() 219 snmp6_seq_show_item64(seq, net->mib.ipv6_statistics, in snmp6_seq_show() 221 snmp6_seq_show_item(seq, net->mib.icmpv6_statistics, in snmp6_seq_show() 223 snmp6_seq_show_icmpv6msg(seq, net->mib.icmpv6msg_statistics->mibs); in snmp6_seq_show() 224 snmp6_seq_show_item(seq, net->mib.udp_stats_in6, in snmp6_seq_show() 226 snmp6_seq_show_item(seq, net->mib.udplite_stats_in6, in snmp6_seq_show() 253 if (!net->mib.proc_net_devsnmp6) in snmp6_register_dev() 257 net->mib.proc_net_devsnmp6, snmp6_dev_seq_show, idev); in snmp6_register_dev() 268 if (!net->mib.proc_net_devsnmp6) in snmp6_unregister_dev() [all …]
|
D | af_inet6.c | 908 net->mib.udp_stats_in6 = alloc_percpu(struct udp_mib); in ipv6_init_mibs() 909 if (!net->mib.udp_stats_in6) in ipv6_init_mibs() 911 net->mib.udplite_stats_in6 = alloc_percpu(struct udp_mib); in ipv6_init_mibs() 912 if (!net->mib.udplite_stats_in6) in ipv6_init_mibs() 914 net->mib.ipv6_statistics = alloc_percpu(struct ipstats_mib); in ipv6_init_mibs() 915 if (!net->mib.ipv6_statistics) in ipv6_init_mibs() 920 af_inet6_stats = per_cpu_ptr(net->mib.ipv6_statistics, i); in ipv6_init_mibs() 925 net->mib.icmpv6_statistics = alloc_percpu(struct icmpv6_mib); in ipv6_init_mibs() 926 if (!net->mib.icmpv6_statistics) in ipv6_init_mibs() 928 net->mib.icmpv6msg_statistics = kzalloc(sizeof(struct icmpv6msg_mib), in ipv6_init_mibs() [all …]
|
D | udp.c | 354 struct udp_mib __percpu *mib; in udpv6_recvmsg() local 378 mib = __UDPX_MIB(sk, is_udp4); in udpv6_recvmsg() 407 SNMP_INC_STATS(mib, UDP_MIB_INERRORS); in udpv6_recvmsg() 413 SNMP_INC_STATS(mib, UDP_MIB_INDATAGRAMS); in udpv6_recvmsg() 465 SNMP_INC_STATS(mib, UDP_MIB_CSUMERRORS); in udpv6_recvmsg() 466 SNMP_INC_STATS(mib, UDP_MIB_INERRORS); in udpv6_recvmsg()
|
D | addrconf.c | 5643 static inline void __snmp6_fill_statsdev(u64 *stats, atomic_long_t *mib, in __snmp6_fill_statsdev() argument 5653 put_unaligned(atomic_long_read(&mib[i]), &stats[i]); in __snmp6_fill_statsdev() 5658 static inline void __snmp6_fill_stats64(u64 *stats, void __percpu *mib, in __snmp6_fill_stats64() argument 5672 buff[i] += snmp_get_cpu_field64(mib, c, i, syncpoff); in __snmp6_fill_stats64()
|
/net/mptcp/ |
D | mib.c | 64 struct mptcp_mib __percpu *mib = alloc_percpu(struct mptcp_mib); in mptcp_mib_alloc() local 66 if (!mib) in mptcp_mib_alloc() 69 if (cmpxchg(&net->mib.mptcp_statistics, NULL, mib)) in mptcp_mib_alloc() 70 free_percpu(mib); in mptcp_mib_alloc() 86 if (!net->mib.mptcp_statistics) { in mptcp_seq_show() 96 snmp_fold_field(net->mib.mptcp_statistics, in mptcp_seq_show()
|
D | mib.h | 58 if (likely(net->mib.mptcp_statistics)) in MPTCP_INC_STATS() 59 SNMP_INC_STATS(net->mib.mptcp_statistics, field); in MPTCP_INC_STATS() 65 if (likely(net->mib.mptcp_statistics)) in __MPTCP_INC_STATS() 66 __SNMP_INC_STATS(net->mib.mptcp_statistics, field); in __MPTCP_INC_STATS()
|
D | Makefile | 5 mib.o pm_netlink.o sockopt.o
|
D | protocol.c | 2523 if (unlikely(!net->mib.mptcp_statistics) && !mptcp_mib_alloc(net)) in mptcp_init_sock()
|
/net/ipv4/ |
D | af_inet.c | 1683 u64 snmp_get_cpu_field(void __percpu *mib, int cpu, int offt) in snmp_get_cpu_field() argument 1685 return *(((unsigned long *)per_cpu_ptr(mib, cpu)) + offt); in snmp_get_cpu_field() 1689 unsigned long snmp_fold_field(void __percpu *mib, int offt) in snmp_fold_field() argument 1695 res += snmp_get_cpu_field(mib, i, offt); in snmp_fold_field() 1702 u64 snmp_get_cpu_field64(void __percpu *mib, int cpu, int offt, in snmp_get_cpu_field64() argument 1710 bhptr = per_cpu_ptr(mib, cpu); in snmp_get_cpu_field64() 1721 u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_offset) in snmp_fold_field64() argument 1727 res += snmp_get_cpu_field64(mib, cpu, offt, syncp_offset); in snmp_fold_field64() 1763 net->mib.tcp_statistics = alloc_percpu(struct tcp_mib); in ipv4_mib_init_net() 1764 if (!net->mib.tcp_statistics) in ipv4_mib_init_net() [all …]
|
D | proc.c | 331 val = atomic_long_read(&net->mib.icmpmsg_statistics->mibs[i]); in icmpmsg_put() 350 atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs; in icmp_put() 359 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INMSGS), in icmp_put() 360 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INERRORS), in icmp_put() 361 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_CSUMERRORS)); in icmp_put() 366 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTMSGS), in icmp_put() 367 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTERRORS)); in icmp_put() 394 net->mib.ip_statistics, in snmp_seq_show_ipstats() 416 net->mib.tcp_statistics); in snmp_seq_show_tcp_udp() 428 net->mib.udp_statistics); in snmp_seq_show_tcp_udp() [all …]
|
D | tcp_output.c | 4027 static int tcp_xmit_probe_skb(struct sock *sk, int urgent, int mib) in tcp_xmit_probe_skb() argument 4045 NET_INC_STATS(sock_net(sk), mib); in tcp_xmit_probe_skb() 4060 int tcp_write_wakeup(struct sock *sk, int mib) in tcp_write_wakeup() argument 4098 tcp_xmit_probe_skb(sk, 1, mib); in tcp_write_wakeup() 4099 return tcp_xmit_probe_skb(sk, 0, mib); in tcp_write_wakeup()
|
/net/mac802154/ |
D | Makefile | 3 mac802154-objs := main.o rx.o tx.o mac_cmd.o mib.o \
|
/net/tls/ |
D | tls_proc.c | 30 snmp_get_cpu_field_batch(buf, tls_mib_list, net->mib.tls_statistics); in tls_statistics_seq_show()
|
D | tls_main.c | 873 net->mib.tls_statistics = alloc_percpu(struct linux_tls_mib); in tls_init_net() 874 if (!net->mib.tls_statistics) in tls_init_net() 883 free_percpu(net->mib.tls_statistics); in tls_init_net() 890 free_percpu(net->mib.tls_statistics); in tls_exit_net()
|
/net/xfrm/ |
D | xfrm_proc.c | 56 net->mib.xfrm_statistics); in xfrm_statistics_seq_show()
|
D | xfrm_policy.c | 4002 net->mib.xfrm_statistics = alloc_percpu(struct linux_xfrm_mib); in xfrm_statistics_init() 4003 if (!net->mib.xfrm_statistics) in xfrm_statistics_init() 4007 free_percpu(net->mib.xfrm_statistics); in xfrm_statistics_init() 4014 free_percpu(net->mib.xfrm_statistics); in xfrm_statistics_fini()
|