netlink: specs: don't allow version to be specified for genetlink
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Oct 2023 07:48:10 +0000 (09:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Oct 2023 20:25:05 +0000 (13:25 -0700)
commit0f07415ebb78e700393237b9148487a2fe27fb04
tree43e4f8a8f6d79a0a19102bb6517761fec83d1c8d
parent9b47243cc290c63d560369efdc5a85d8a6e4bf44
netlink: specs: don't allow version to be specified for genetlink

There is no good reason to specify the version for new protocols.
Forbid it in genetlink schema.

If the future proves me wrong, this restriction could be easily lifted.

Move the version definition in between legacy properties
in genetlink-legacy.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20231010074810.191177-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/netlink/genetlink-c.yaml
Documentation/netlink/genetlink-legacy.yaml
Documentation/netlink/genetlink.yaml