]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'refactor-duplicate-codes-in-the-qdisc-class-walk-function'
authorJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 00:34:18 +0000 (17:34 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 00:34:19 +0000 (17:34 -0700)
commit63620da3d7b1907d3654f06e362eb9853972bb5a
tree63f168687b577a636f2148f15ec2a156ce3e8158
parentca05a5371f7e98bc839ef8aa106b56e9345f4a55
parentc3d006ba3430f24cb3826154c1b1a72b4281aa3c
Merge branch 'refactor-duplicate-codes-in-the-qdisc-class-walk-function'

Zhengchao Shao says:

====================
refactor duplicate codes in the qdisc class walk function

The walk implementation of most qdisc class modules is basically the
same. That is, the values of count and skip are checked first. If count
is greater than or equal to skip, the registered fn function is
executed. Otherwise, increase the value of count. So the code can be
refactored.

The walk function is invoked during dump. Therefore, test cases related
 to the tdc filter need to be added.
====================

Link: https://lore.kernel.org/r/20220921024040.385296-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>