From: Ethan Jackson Date: Thu, 10 May 2012 18:24:36 +0000 (-0700) Subject: ofputil: Accept OFPP_NONE as a valid output port. X-Git-Tag: sliver-openvswitch-1.8.90-0~48^2~451 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0d193212d68162b482d1d0a3190d9c07e8140fac;p=sliver-openvswitch.git ofputil: Accept OFPP_NONE as a valid output port. Ofproto-dpif treats an output to OFPP_NONE as a NOOP, but ofputil treated it as an error. The former behavior seems more natural. Reported-by: Teemu Koponen Signed-off-by: Ethan Jackson --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 48be7749f..bd078c700 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -3309,6 +3309,7 @@ ofputil_check_output_port(uint16_t port, int max_ports) case OFPP_FLOOD: case OFPP_ALL: case OFPP_CONTROLLER: + case OFPP_NONE: case OFPP_LOCAL: return 0;