diff options
-rw-r--r-- | net/sched/cls_u32.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/sched/cls_u32.c b/net/sched/cls_u32.c index 5ed5ac4361b1..8cffe5a27007 100644 --- a/net/sched/cls_u32.c +++ b/net/sched/cls_u32.c | |||
@@ -788,8 +788,8 @@ static int u32_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
788 | } else { | 788 | } else { |
789 | #ifdef CONFIG_CLS_U32_PERF | 789 | #ifdef CONFIG_CLS_U32_PERF |
790 | struct tc_u32_pcnt *gpf; | 790 | struct tc_u32_pcnt *gpf; |
791 | #endif | ||
792 | int cpu; | 791 | int cpu; |
792 | #endif | ||
793 | 793 | ||
794 | if (nla_put(skb, TCA_U32_SEL, | 794 | if (nla_put(skb, TCA_U32_SEL, |
795 | sizeof(n->sel) + n->sel.nkeys*sizeof(struct tc_u32_key), | 795 | sizeof(n->sel) + n->sel.nkeys*sizeof(struct tc_u32_key), |
@@ -816,9 +816,10 @@ static int u32_dump(struct net *net, struct tcf_proto *tp, unsigned long fh, | |||
816 | struct tc_u32_mark mark = {.val = n->val, | 816 | struct tc_u32_mark mark = {.val = n->val, |
817 | .mask = n->mask, | 817 | .mask = n->mask, |
818 | .success = 0}; | 818 | .success = 0}; |
819 | int cpum; | ||
819 | 820 | ||
820 | for_each_possible_cpu(cpu) { | 821 | for_each_possible_cpu(cpum) { |
821 | __u32 cnt = *per_cpu_ptr(n->pcpu_success, cpu); | 822 | __u32 cnt = *per_cpu_ptr(n->pcpu_success, cpum); |
822 | 823 | ||
823 | mark.success += cnt; | 824 | mark.success += cnt; |
824 | } | 825 | } |