]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: fw: don't set arg->stop in fw_walk() when empty
authorVlad Buslov <vladbu@mellanox.com>
Fri, 15 Feb 2019 15:20:07 +0000 (17:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 21:24:18 +0000 (13:24 -0800)
commitb9effc0eb71b7d2b687c5cb8e75e79bf0f4c94a0
tree30ee580b4a167070a2f42557ba7416545ea68229
parent5cf1e98f46aafff00dd15c786df86cc713dc018c
net: sched: fw: don't set arg->stop in fw_walk() when empty

Some classifiers set arg->stop in their implementation of tp->walk() API
when empty. Most of classifiers do not adhere to that convention. Do not
set arg->stop in fw_walk() to unify tp->walk() behavior among classifier
implementations.

Fixes: 7e8f8abfb0ed ("net: sched: protect filter_chain list with filter_chain_lock mutex")
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_fw.c