]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'tc-bind_class-hook'
authorDavid S. Miller <davem@davemloft.net>
Sun, 2 Oct 2022 15:07:17 +0000 (16:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Oct 2022 15:07:17 +0000 (16:07 +0100)
commit80ca146fab7933a40336f8e3c3ba8012a7e1ff1d
tree63a87fa2a51b9e7b6cc77581c865a7f37927f679
parent66ad8e42f99adb6a2a7c3a6147b0b22e1142a8d7
parent93ce236ed7db2f8f8ae05d087375c8eab74aed18
Merge branch 'tc-bind_class-hook'

Zhengchao Shao says:

====================
refactor duplicate codes in bind_class hook function

All the bind_class callback duplicate the same logic, so we can refactor
them. First, ensure n arg not empty before call bind_class hook function.
Then, add tc_cls_bind_class() helper. Last, use tc_cls_bind_class() in
filter.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>