Home
last modified time | relevance | path

Searched refs:mib (Results 1 – 17 of 17) sorted by relevance

/net/mptcp/
Dmib.h83 if (likely(net->mib.mptcp_statistics)) in MPTCP_ADD_STATS()
84 SNMP_ADD_STATS(net->mib.mptcp_statistics, field, val); in MPTCP_ADD_STATS()
90 if (likely(net->mib.mptcp_statistics)) in MPTCP_INC_STATS()
91 SNMP_INC_STATS(net->mib.mptcp_statistics, field); in MPTCP_INC_STATS()
97 if (likely(net->mib.mptcp_statistics)) in __MPTCP_INC_STATS()
98 __SNMP_INC_STATS(net->mib.mptcp_statistics, field); in __MPTCP_INC_STATS()
104 if (likely(net->mib.mptcp_statistics)) in MPTCP_DEC_STATS()
105 SNMP_DEC_STATS(net->mib.mptcp_statistics, field); in MPTCP_DEC_STATS()
Dmib.c82 struct mptcp_mib __percpu *mib = alloc_percpu(struct mptcp_mib); in mptcp_mib_alloc() local
84 if (!mib) in mptcp_mib_alloc()
87 if (cmpxchg(&net->mib.mptcp_statistics, NULL, mib)) in mptcp_mib_alloc()
88 free_percpu(mib); in mptcp_mib_alloc()
106 if (net->mib.mptcp_statistics) in mptcp_seq_show()
108 net->mib.mptcp_statistics); in mptcp_seq_show()
DMakefile5 mib.o pm_netlink.o sockopt.o pm_userspace.o fastopen.o sched.o
Dprotocol.c2796 if (unlikely(!net->mib.mptcp_statistics) && !mptcp_mib_alloc(net)) in mptcp_init_sock()
/net/ipv6/
Dproc.c204 static void snmp6_seq_show_item64(struct seq_file *seq, void __percpu *mib, in snmp6_seq_show_item64() argument
212 snmp_get_cpu_field64_batch(buff64, itemlist, mib, syncpoff); in snmp6_seq_show_item64()
221 snmp6_seq_show_item64(seq, net->mib.ipv6_statistics, in snmp6_seq_show()
223 snmp6_seq_show_item(seq, net->mib.icmpv6_statistics, in snmp6_seq_show()
225 snmp6_seq_show_icmpv6msg(seq, net->mib.icmpv6msg_statistics->mibs); in snmp6_seq_show()
226 snmp6_seq_show_item(seq, net->mib.udp_stats_in6, in snmp6_seq_show()
228 snmp6_seq_show_item(seq, net->mib.udplite_stats_in6, in snmp6_seq_show()
255 if (!net->mib.proc_net_devsnmp6) in snmp6_register_dev()
259 net->mib.proc_net_devsnmp6, snmp6_dev_seq_show, idev); in snmp6_register_dev()
270 if (!net->mib.proc_net_devsnmp6) in snmp6_unregister_dev()
[all …]
Daf_inet6.c912 net->mib.udp_stats_in6 = alloc_percpu(struct udp_mib); in ipv6_init_mibs()
913 if (!net->mib.udp_stats_in6) in ipv6_init_mibs()
915 net->mib.udplite_stats_in6 = alloc_percpu(struct udp_mib); in ipv6_init_mibs()
916 if (!net->mib.udplite_stats_in6) in ipv6_init_mibs()
918 net->mib.ipv6_statistics = alloc_percpu(struct ipstats_mib); in ipv6_init_mibs()
919 if (!net->mib.ipv6_statistics) in ipv6_init_mibs()
924 af_inet6_stats = per_cpu_ptr(net->mib.ipv6_statistics, i); in ipv6_init_mibs()
929 net->mib.icmpv6_statistics = alloc_percpu(struct icmpv6_mib); in ipv6_init_mibs()
930 if (!net->mib.icmpv6_statistics) in ipv6_init_mibs()
932 net->mib.icmpv6msg_statistics = kzalloc(sizeof(struct icmpv6msg_mib), in ipv6_init_mibs()
[all …]
Dudp.c344 struct udp_mib __percpu *mib; in udpv6_recvmsg() local
368 mib = __UDPX_MIB(sk, is_udp4); in udpv6_recvmsg()
397 SNMP_INC_STATS(mib, UDP_MIB_INERRORS); in udpv6_recvmsg()
403 SNMP_INC_STATS(mib, UDP_MIB_INDATAGRAMS); in udpv6_recvmsg()
458 SNMP_INC_STATS(mib, UDP_MIB_CSUMERRORS); in udpv6_recvmsg()
459 SNMP_INC_STATS(mib, UDP_MIB_INERRORS); in udpv6_recvmsg()
Daddrconf.c5708 static inline void __snmp6_fill_statsdev(u64 *stats, atomic_long_t *mib, in __snmp6_fill_statsdev() argument
5718 put_unaligned(atomic_long_read(&mib[i]), &stats[i]); in __snmp6_fill_statsdev()
5723 static inline void __snmp6_fill_stats64(u64 *stats, void __percpu *mib, in __snmp6_fill_stats64() argument
5737 buff[i] += snmp_get_cpu_field64(mib, c, i, syncpoff); in __snmp6_fill_stats64()
/net/ipv4/
Dproc.c333 val = atomic_long_read(&net->mib.icmpmsg_statistics->mibs[i]); in icmpmsg_put()
352 atomic_long_t *ptr = net->mib.icmpmsg_statistics->mibs; in icmp_put()
361 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INMSGS), in icmp_put()
362 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_INERRORS), in icmp_put()
363 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_CSUMERRORS)); in icmp_put()
368 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTMSGS), in icmp_put()
369 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_OUTERRORS), in icmp_put()
370 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_RATELIMITGLOBAL), in icmp_put()
371 snmp_fold_field(net->mib.icmp_statistics, ICMP_MIB_RATELIMITHOST)); in icmp_put()
398 net->mib.ip_statistics, in snmp_seq_show_ipstats()
[all …]
Daf_inet.c1713 unsigned long snmp_fold_field(void __percpu *mib, int offt) in snmp_fold_field() argument
1719 res += snmp_get_cpu_field(mib, i, offt); in snmp_fold_field()
1726 u64 snmp_get_cpu_field64(void __percpu *mib, int cpu, int offt, in snmp_get_cpu_field64() argument
1734 bhptr = per_cpu_ptr(mib, cpu); in snmp_get_cpu_field64()
1745 u64 snmp_fold_field64(void __percpu *mib, int offt, size_t syncp_offset) in snmp_fold_field64() argument
1751 res += snmp_get_cpu_field64(mib, cpu, offt, syncp_offset); in snmp_fold_field64()
1787 net->mib.tcp_statistics = alloc_percpu(struct tcp_mib); in ipv4_mib_init_net()
1788 if (!net->mib.tcp_statistics) in ipv4_mib_init_net()
1790 net->mib.ip_statistics = alloc_percpu(struct ipstats_mib); in ipv4_mib_init_net()
1791 if (!net->mib.ip_statistics) in ipv4_mib_init_net()
[all …]
Dtcp_output.c4149 static int tcp_xmit_probe_skb(struct sock *sk, int urgent, int mib) in tcp_xmit_probe_skb() argument
4167 NET_INC_STATS(sock_net(sk), mib); in tcp_xmit_probe_skb()
4182 int tcp_write_wakeup(struct sock *sk, int mib) in tcp_write_wakeup() argument
4220 tcp_xmit_probe_skb(sk, 1, mib); in tcp_write_wakeup()
4221 return tcp_xmit_probe_skb(sk, 0, mib); in tcp_write_wakeup()
/net/tls/
Dtls.h48 __SNMP_INC_STATS((net)->mib.tls_statistics, field)
50 SNMP_INC_STATS((net)->mib.tls_statistics, field)
52 SNMP_DEC_STATS((net)->mib.tls_statistics, field)
Dtls_proc.c34 snmp_get_cpu_field_batch(buf, tls_mib_list, net->mib.tls_statistics); in tls_statistics_seq_show()
Dtls_main.c1090 net->mib.tls_statistics = alloc_percpu(struct linux_tls_mib); in tls_init_net()
1091 if (!net->mib.tls_statistics) in tls_init_net()
1100 free_percpu(net->mib.tls_statistics); in tls_init_net()
1107 free_percpu(net->mib.tls_statistics); in tls_exit_net()
/net/mac802154/
DMakefile3 mac802154-objs := main.o rx.o tx.o mac_cmd.o mib.o \
/net/xfrm/
Dxfrm_proc.c56 net->mib.xfrm_statistics); in xfrm_statistics_seq_show()
Dxfrm_policy.c4081 net->mib.xfrm_statistics = alloc_percpu(struct linux_xfrm_mib); in xfrm_statistics_init()
4082 if (!net->mib.xfrm_statistics) in xfrm_statistics_init()
4086 free_percpu(net->mib.xfrm_statistics); in xfrm_statistics_init()
4093 free_percpu(net->mib.xfrm_statistics); in xfrm_statistics_fini()