mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
ofproto: Implement OpenFlow 1.3 meter table.
Signed-off-by: Jarno Rajahalme <jarno.rajahalme@nsn.com> Co-authored-by: Ben Pfaff <blp@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
committed by
Ben Pfaff
parent
084c53de85
commit
9cae45dc69
@@ -1289,10 +1289,16 @@ ofpact_check__(const struct ofpact *a, struct flow *flow, ofp_port_t max_ports)
|
||||
|
||||
case OFPACT_CLEAR_ACTIONS:
|
||||
case OFPACT_WRITE_METADATA:
|
||||
case OFPACT_METER:
|
||||
case OFPACT_GOTO_TABLE:
|
||||
return 0;
|
||||
|
||||
case OFPACT_METER: {
|
||||
uint32_t mid = ofpact_get_METER(a)->meter_id;
|
||||
if (mid == 0 || mid > OFPM13_MAX) {
|
||||
return OFPERR_OFPMMFC_INVALID_METER;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
default:
|
||||
NOT_REACHED();
|
||||
}
|
||||
|
Reference in New Issue
Block a user