Lines Matching refs:mib
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()
930 if (!net->mib.icmpv6msg_statistics) in ipv6_init_mibs()
935 free_percpu(net->mib.icmpv6_statistics); in ipv6_init_mibs()
937 free_percpu(net->mib.ipv6_statistics); in ipv6_init_mibs()
939 free_percpu(net->mib.udplite_stats_in6); in ipv6_init_mibs()
941 free_percpu(net->mib.udp_stats_in6); in ipv6_init_mibs()
947 free_percpu(net->mib.udp_stats_in6); in ipv6_cleanup_mibs()
948 free_percpu(net->mib.udplite_stats_in6); in ipv6_cleanup_mibs()
949 free_percpu(net->mib.ipv6_statistics); in ipv6_cleanup_mibs()
950 free_percpu(net->mib.icmpv6_statistics); in ipv6_cleanup_mibs()
951 kfree(net->mib.icmpv6msg_statistics); in ipv6_cleanup_mibs()