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>
Thu, 12 Sep 2013 18:57:33 +0000 (11:57 -0700)
commitb31e8700fa21afc01af6e87caa23b56412e1c670
tree949a209a87b13ef8c9572d03f1780af8814ac4db
parent717de9ff0351d4fd890b605816ddb0ce3eb3fd16
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