diff options
Diffstat (limited to 'net/openvswitch/meter.c')
-rw-r--r-- | net/openvswitch/meter.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/openvswitch/meter.c b/net/openvswitch/meter.c index 43849d752a1e..0be3d097ae01 100644 --- a/net/openvswitch/meter.c +++ b/net/openvswitch/meter.c | |||
@@ -527,26 +527,22 @@ bool ovs_meter_execute(struct datapath *dp, struct sk_buff *skb, | |||
527 | static struct genl_ops dp_meter_genl_ops[] = { | 527 | static struct genl_ops dp_meter_genl_ops[] = { |
528 | { .cmd = OVS_METER_CMD_FEATURES, | 528 | { .cmd = OVS_METER_CMD_FEATURES, |
529 | .flags = 0, /* OK for unprivileged users. */ | 529 | .flags = 0, /* OK for unprivileged users. */ |
530 | .policy = meter_policy, | ||
531 | .doit = ovs_meter_cmd_features | 530 | .doit = ovs_meter_cmd_features |
532 | }, | 531 | }, |
533 | { .cmd = OVS_METER_CMD_SET, | 532 | { .cmd = OVS_METER_CMD_SET, |
534 | .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN | 533 | .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN |
535 | * privilege. | 534 | * privilege. |
536 | */ | 535 | */ |
537 | .policy = meter_policy, | ||
538 | .doit = ovs_meter_cmd_set, | 536 | .doit = ovs_meter_cmd_set, |
539 | }, | 537 | }, |
540 | { .cmd = OVS_METER_CMD_GET, | 538 | { .cmd = OVS_METER_CMD_GET, |
541 | .flags = 0, /* OK for unprivileged users. */ | 539 | .flags = 0, /* OK for unprivileged users. */ |
542 | .policy = meter_policy, | ||
543 | .doit = ovs_meter_cmd_get, | 540 | .doit = ovs_meter_cmd_get, |
544 | }, | 541 | }, |
545 | { .cmd = OVS_METER_CMD_DEL, | 542 | { .cmd = OVS_METER_CMD_DEL, |
546 | .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN | 543 | .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN |
547 | * privilege. | 544 | * privilege. |
548 | */ | 545 | */ |
549 | .policy = meter_policy, | ||
550 | .doit = ovs_meter_cmd_del | 546 | .doit = ovs_meter_cmd_del |
551 | }, | 547 | }, |
552 | }; | 548 | }; |
@@ -560,6 +556,7 @@ struct genl_family dp_meter_genl_family __ro_after_init = { | |||
560 | .name = OVS_METER_FAMILY, | 556 | .name = OVS_METER_FAMILY, |
561 | .version = OVS_METER_VERSION, | 557 | .version = OVS_METER_VERSION, |
562 | .maxattr = OVS_METER_ATTR_MAX, | 558 | .maxattr = OVS_METER_ATTR_MAX, |
559 | .policy = meter_policy, | ||
563 | .netnsok = true, | 560 | .netnsok = true, |
564 | .parallel_ops = true, | 561 | .parallel_ops = true, |
565 | .ops = dp_meter_genl_ops, | 562 | .ops = dp_meter_genl_ops, |