ofproto: Use proper error code when meter_id is out of range.
authorJarno Rajahalme <jrajahalme@nicira.com>
Sun, 8 Sep 2013 01:27:08 +0000 (18:27 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Sep 2013 04:18:42 +0000 (21:18 -0700)
commit39fc8f2e9624e8b4b947336b216c6a11fe0b7772
tree425c454996e18f85d522e7ebf81e49b15661116c
parentc8c8c717bb58d4df5647a263631101a06cf1c7cc
ofproto: Use proper error code when meter_id is out of range.

Use OUT_OF_METERS when given meter_id is greater than what is supported
by the datapath.  Retain the INVALID_METER error code for the meter_ids
outside of the range supported by the specification.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c