diff options
author | Ethan Jackson <ethan@nicira.com> | 2012-05-10 11:24:36 -0700 |
---|---|---|
committer | Ethan Jackson <ethan@nicira.com> | 2012-05-14 15:59:14 -0700 |
commit | 403471681dbde8ceb21124137eefc309a71d510d (patch) | |
tree | 039270c9c269f4f9da676a78b6d8e3370815599d /lib | |
parent | 593de65ce81426b467dcb1d48f48a62ce2ba2793 (diff) |
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 <koponen@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ofp-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c index f3c31de4..501ccab2 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; |