neighbour.c (460fbf82c0842cad3f3c744c4dcb81978b7829f3) | neighbour.c (6f912042256c12b0927438122594f5379b364f5d) |
---|---|
1/* 2 * Generic address resolution entity 3 * 4 * Authors: 5 * Pedro Roque <roque@di.fc.ul.pt> 6 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 7 * 8 * This program is free software; you can redistribute it and/or --- 1613 unchanged lines hidden (view full) --- 1622 } 1623 1624 { 1625 int cpu; 1626 struct ndt_stats ndst; 1627 1628 memset(&ndst, 0, sizeof(ndst)); 1629 | 1/* 2 * Generic address resolution entity 3 * 4 * Authors: 5 * Pedro Roque <roque@di.fc.ul.pt> 6 * Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> 7 * 8 * This program is free software; you can redistribute it and/or --- 1613 unchanged lines hidden (view full) --- 1622 } 1623 1624 { 1625 int cpu; 1626 struct ndt_stats ndst; 1627 1628 memset(&ndst, 0, sizeof(ndst)); 1629 |
1630 for_each_cpu(cpu) { | 1630 for_each_possible_cpu(cpu) { |
1631 struct neigh_statistics *st; 1632 1633 st = per_cpu_ptr(tbl->stats, cpu); 1634 ndst.ndts_allocs += st->allocs; 1635 ndst.ndts_destroys += st->destroys; 1636 ndst.ndts_hash_grows += st->hash_grows; 1637 ndst.ndts_res_failed += st->res_failed; 1638 ndst.ndts_lookups += st->lookups; --- 1035 unchanged lines hidden --- | 1631 struct neigh_statistics *st; 1632 1633 st = per_cpu_ptr(tbl->stats, cpu); 1634 ndst.ndts_allocs += st->allocs; 1635 ndst.ndts_destroys += st->destroys; 1636 ndst.ndts_hash_grows += st->hash_grows; 1637 ndst.ndts_res_failed += st->res_failed; 1638 ndst.ndts_lookups += st->lookups; --- 1035 unchanged lines hidden --- |