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)
commit9d43507319cc256c8383e3e2dcc394b458b7aa37
tree63a87fa2a51b9e7b6cc77581c865a7f37927f679
parentbc37b24ee05e3fc4eae3e51c25572ccda9c34c11
parentcc9039a1349425516eca369183c5a8d2f139cb1b
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>