]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'refactor-duplicate-codes-in-the-tc-cls-walk-function'
authorJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 22:54:46 +0000 (15:54 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 22:54:46 +0000 (15:54 -0700)
commitd9a2aec97bbd965763dd3584447992f8ed3fa165
tree5b3df0821033d7821beeade25e025b1add5f4b4b
parent31cb0da821ad66f222dfd5e2ea006378e2101643
parent8b7a63c2655523d0742a09c045777a362ce9c925
Merge branch 'refactor-duplicate-codes-in-the-tc-cls-walk-function'

Zhengchao Shao says:

====================
refactor duplicate codes in the tc cls walk function

The walk implementation of most tc cls 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.
Then use helper function to replace the code of each cls module in
alphabetical order.

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/20220916020251.190097-1-shaozhengchao@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>