]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/core/neighbour.c
[PATCH] mv643xx_eth: Fix handling of small, unaligned fragments
[karo-tx-linux.git] / net / core / neighbour.c
index 1dcf7fa1f0fead6dc2469d0a478025284921e804..e68700f950a55d3cff784a54d655001a7da30dec 100644 (file)
@@ -1625,12 +1625,9 @@ static int neightbl_fill_info(struct neigh_table *tbl, struct sk_buff *skb,
 
                memset(&ndst, 0, sizeof(ndst));
 
-               for (cpu = 0; cpu < NR_CPUS; cpu++) {
+               for_each_cpu(cpu) {
                        struct neigh_statistics *st;
 
-                       if (!cpu_possible(cpu))
-                               continue;
-
                        st = per_cpu_ptr(tbl->stats, cpu);
                        ndst.ndts_allocs                += st->allocs;
                        ndst.ndts_destroys              += st->destroys;