commit | 48526a0f4ca2b484cab4318dc0b2c2be1d8685b7 | [log] [tgz] |
---|---|---|
author | Jakub Kicinski <kuba@kernel.org> | Fri Oct 02 14:49:57 2020 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Oct 02 19:11:12 2020 -0700 |
tree | 4f3c795650dde693e5238ec4ffde5aa80c343d4f | |
parent | 78ade619c16599c8a962451aad15f56bceed316b [diff] |
genetlink: bring back per op policy 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 way the rest of the code does not have to worry if the policy is per op or global. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: David S. Miller <davem@davemloft.net>