[ovs-dev] [PATCH] ofputil: Accept OFPP_NONE as a valid output port.

Ethan Jackson ethan at nicira.com
Thu May 10 18:25:03 UTC 2012


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 <koponen at nicira.com>
Signed-off-by: Ethan Jackson <ethan at nicira.com>
---
 lib/ofp-util.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 48be774..bd078c7 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;
 
-- 
1.7.10




More information about the dev mailing list