genetlink: move to smaller ops wherever possible
Bulk of the genetlink users can use smaller ops, move them. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
0b588afdd1
commit
66a9b9287d
@@ -2231,7 +2231,7 @@ exit_err:
|
||||
return err;
|
||||
}
|
||||
|
||||
static struct genl_ops ct_limit_genl_ops[] = {
|
||||
static struct genl_small_ops ct_limit_genl_ops[] = {
|
||||
{ .cmd = OVS_CT_LIMIT_CMD_SET,
|
||||
.validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
|
||||
.flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN
|
||||
@@ -2263,8 +2263,8 @@ struct genl_family dp_ct_limit_genl_family __ro_after_init = {
|
||||
.policy = ct_limit_policy,
|
||||
.netnsok = true,
|
||||
.parallel_ops = true,
|
||||
.ops = ct_limit_genl_ops,
|
||||
.n_ops = ARRAY_SIZE(ct_limit_genl_ops),
|
||||
.small_ops = ct_limit_genl_ops,
|
||||
.n_small_ops = ARRAY_SIZE(ct_limit_genl_ops),
|
||||
.mcgrps = &ovs_ct_limit_multicast_group,
|
||||
.n_mcgrps = 1,
|
||||
.module = THIS_MODULE,
|
||||
|
Reference in New Issue
Block a user