Skip to content

Commit 805c1f4

Browse files
jhsmtdavem330
authored andcommitted
net_sched: act: action flushing missaccounting
action flushing missaccounting Account only for deleted actions Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 63acd68 commit 805c1f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net/sched/act_api.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,10 @@ static int tcf_del_walker(struct sk_buff *skb, struct tc_action *a,
126126
for (i = 0; i < (hinfo->hmask + 1); i++) {
127127
head = &hinfo->htab[tcf_hash(i, hinfo->hmask)];
128128
hlist_for_each_entry_safe(p, n, head, tcfc_head) {
129-
if (ACT_P_DELETED == tcf_hash_release(p, 0, hinfo))
129+
if (ACT_P_DELETED == tcf_hash_release(p, 0, hinfo)) {
130130
module_put(a->ops->owner);
131-
n_i++;
131+
n_i++;
132+
}
132133
}
133134
}
134135
if (nla_put_u32(skb, TCA_FCNT, n_i))

0 commit comments

Comments
 (0)