]> 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)
commit6fe2da53cda56a0042a1846a6779cd0b159c4607
tree63a87fa2a51b9e7b6cc77581c865a7f37927f679
parenta40319fc22488d79ffc24fece141de549f86af65
parent37ce2a47f0821bce936016026baa1b80142b5fd4
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>