projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4acbc98
)
ofputil: Accept OFPP_NONE as a valid output port.
author
Ethan Jackson
<ethan@nicira.com>
Thu, 10 May 2012 18:24:36 +0000
(11:24 -0700)
committer
Ethan Jackson
<ethan@nicira.com>
Thu, 10 May 2012 18:24:36 +0000
(11:24 -0700)
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@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
lib/ofp-util.c
patch
|
blob
|
history
diff --git
a/lib/ofp-util.c
b/lib/ofp-util.c
index 48be7749fc2a076f4c5be9d64ac3fda234ca62df..bd078c70014880922cbdfe249e1094ec98cfda37 100644
(file)
--- 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;