From: Jakub Kicinski Date: Tue, 20 Sep 2022 22:54:46 +0000 (-0700) Subject: Merge branch 'refactor-duplicate-codes-in-the-tc-cls-walk-function' X-Git-Tag: v6.1-rc5~319^2~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adae216f4ebc037e20b4868deaa62fb6a5c2299f;p=platform%2Fkernel%2Flinux-starfive.git 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 --- adae216f4ebc037e20b4868deaa62fb6a5c2299f