OSDN Git Service

taskstats: move specifying netlink policy back to ops
authorJakub Kicinski <kuba@kernel.org>
Fri, 2 Oct 2020 21:49:58 +0000 (14:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Oct 2020 02:11:12 +0000 (19:11 -0700)
commit7c1e0926da18051f4a09da1e380591213b0cdb5f
tree687ec686ca5b738e7331e7686bdb2e04c957f49d
parent48526a0f4ca2b484cab4318dc0b2c2be1d8685b7
taskstats: move specifying netlink policy back to ops

commit 3b0f31f2b8c9 ("genetlink: make policy common to family")
had to work around removal of policy from ops by parsing in
the pre_doit callback. Now that policy is back in full ops
we can switch again. Set maxattr to actual size of the policies
- both commands set GENL_DONT_VALIDATE_STRICT so out of range
attributes will be silently ignored, anyway.

v2:
 - remove stale comment

Suggested-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/taskstats.c