Re: [RFC net-next 7/9] genetlink: bring back per op policy

2020-10-01 Thread Johannes Berg
On Wed, 2020-09-30 at 17:05 -0700, Jakub Kicinski wrote: > Add policy to the struct genl_ops structure, this time > with maxattr, so it can be used properly. > > Propagate .policy and .maxattr from the family > in genl_get_cmd() if needed, this say the rest of the typo: "this way" > code does no

[RFC net-next 7/9] genetlink: bring back per op policy

2020-09-30 Thread Jakub Kicinski
Add policy to the struct genl_ops structure, this time with maxattr, so it can be used properly. Propagate .policy and .maxattr from the family in genl_get_cmd() if needed, this say the rest of the code does not have to worry if the policy is per op or global. Signed-off-by: Jakub Kicinski ---