]> git.baikalelectronics.ru Git - kernel.git/commit
genetlink: correct uAPI defines
authorJakub Kicinski <kuba@kernel.org>
Tue, 9 Aug 2022 23:27:40 +0000 (16:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Aug 2022 12:49:50 +0000 (13:49 +0100)
commitfa786a186fe11767c7b9be2d07a538de26b47b69
tree8c656f21b9cbbd09dd97845d081d43a7345757a7
parenta87ed3e402069553d31e01a65c0f5e1ead9c0f5d
genetlink: correct uAPI defines

Commit 64a54c9a8e3a ("genetlink: properly support per-op policy dumping")
seems to have copy'n'pasted things a little incorrectly.

The #define CTRL_ATTR_MCAST_GRP_MAX should have stayed right
after the previous enum. The new CTRL_ATTR_POLICY_* needs
its own define for MAX and that max should not contain the
superfluous _DUMP in the name.

We probably can't do anything about the CTRL_ATTR_POLICY_DUMP_MAX
any more, there's likely code which uses it. For consistency
(*cough* codegen *cough*) let's add the correctly name define
nonetheless.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/genetlink.h