Re: [RFC net-next 8/9] genetlink: use per-op policy for CTRL_CMD_GETPOLICY

2020-10-01 Thread Johannes Berg
On Wed, 2020-09-30 at 17:05 -0700, Jakub Kicinski wrote: > Wire up per-op policy for CTRL_CMD_GETPOLICY. > This saves us a call to genlmsg_parse() and will soon allow > dumping this policy. > > Create a new policy definition, since we don't want to pollute > ctrl_policy with attributes which CTRL_

[RFC net-next 8/9] genetlink: use per-op policy for CTRL_CMD_GETPOLICY

2020-09-30 Thread Jakub Kicinski
Wire up per-op policy for CTRL_CMD_GETPOLICY. This saves us a call to genlmsg_parse() and will soon allow dumping this policy. Create a new policy definition, since we don't want to pollute ctrl_policy with attributes which CTRL_CMD_GETFAMILY does not support. Signed-off-by: Jakub Kicinski ---