Merge branch 'genetlink-per-op-type-policies'
authorDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 12:30:17 +0000 (12:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2022 12:30:17 +0000 (12:30 +0000)
commitbf46390f39c686d62afeae9845860e63886d63b7
treeb6864aa429946b392dfbdbde5daaccfeda2b4636
parente2dbda0fd2aec4ff43f5772b1b251786d257f407
parentaba22ca8ccd6954ffbb1a7a671f34300887b4727
Merge branch 'genetlink-per-op-type-policies'

Jakub Kicinski says:

====================
genetlink: support per op type policies

While writing new genetlink families I was increasingly annoyed by the fact
that we don't support different policies for do and dump callbacks.
This makes it hard to do proper input validation for dumps which usually
have a lot more narrow range of accepted attributes.

There is also a minor inconvenience of not supporting different per_doit
and post_doit callbacks per op.

This series addresses those problems by introducing another op format.

v3:
 - minor fixes to patch 12 after I took it for a spin with a real family
 - adjust commit msg in patch 8
v2: https://lore.kernel.org/all/20221102213338.194672-1-kuba@kernel.org/
 - wait for net changes to propagate
 - restore the missing comment in patch 1
 - drop extra space in patch 3
 - improve commit message in patch 4
v1: https://lore.kernel.org/all/20221018230728.1039524-1-kuba@kernel.org/
====================

Signed-off-by: David S. Miller <davem@davemloft.net>