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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d193212d68162b482d1d0a3190d9c07e8140fac;p=openvswitch 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 48be7749..bd078c70 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;