Whamcloud - gitweb
LU-16508 netlink: resv_start_op for [lnet|lustre]_family 00/49800/13
authorShaun Tancheff <shaun.tancheff@hpe.com>
Fri, 10 Feb 2023 18:02:41 +0000 (12:02 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 9 May 2023 05:46:15 +0000 (05:46 +0000)
commit14cc87902d07d85a4025049ad8b120092837c9ff
tree6b413d66ae823353412d3c015d096e9b14c88273
parent75db98cef3df8f9a0e1b6e7a5150f3c332e6167b
LU-16508 netlink: resv_start_op for [lnet|lustre]_family

Linux v5.0-11693-g3b0f31f2b8c9
  genetlink: make policy common to family

struct genl_family adds policy and resv_start_op members

Linux v6.1-rc2-63-g4fa86555d1cd
  genetlink: piggy back on resv_op to default to a reject policy

struct genl_family needs to set a policy and/or indicate the
commands that should be validated.

Set the resv_start_op higher than the largest command accepted.
to avoid a default policy of NLA_REJECT.

When genl_family has a policy provide one.

HPE-bug-id: LUS-11454
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: If38fbe4c9358bb4f9b57e7d25b8a6df1fba63452
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49800
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: xinliang <xinliang.liu@linaro.org>
lnet/lnet/api-ni.c
lnet/selftest/conctl.c
lustre/autoconf/lustre-core.m4
lustre/obdclass/kernelcomm.c