genetlink: allow families to use split ops directly
authorJakub Kicinski <kuba@kernel.org>
Fri, 4 Nov 2022 19:13:42 +0000 (12:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 12:30:17 +0000 (12:30 +0000)
commitb8fd60c36a44351f773432e24efd8bb92f8ba0c6
tree4c04f3d9ce154f44dcc281118879ca9b267c5568
parent7acfbbe17c18554960b812a95c26d7ef9b7b28ac
genetlink: allow families to use split ops directly

Let families to hook in the new split ops.

They are more flexible and should not be much larger than
full ops. Each split op is 40B while full op is 48B.
Devlink for example has 54 dos and 19 dumps, 2 of the dumps
do not have a do -> 56 full commands = 2688B.
Split ops would have taken 2920B, so 9% more space while
allowing individual per/post doit and per-type policies.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/genetlink.h
net/netlink/genetlink.c