ofp-util: Treat a packet-out in_port of OFPP_CONTROLLER as OFPP_NONE.
authorBen Pfaff <blp@nicira.com>
Mon, 7 May 2012 19:30:54 +0000 (12:30 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 7 May 2012 19:30:54 +0000 (12:30 -0700)
commit751c778501b0e0726cc0c715f3ad2628c19ba0bb
tree64a176c3cb09fdbda63e4ac4197c9f74a901fa49
parent31a19d69db3f8058257c47f986ec908571b263e7
ofp-util: Treat a packet-out in_port of OFPP_CONTROLLER as OFPP_NONE.

Some OpenFlow 1.0 controllers incorrectly use OPFP_CONTROLLER as the
in_port in packet-out messages, when OFPP_NONE is their intent.  Until now,
Open vSwitch has rejected such requests with an error message.  This commit
makes Open vSwitch instead treat OFPP_CONTROLLER the same as OFPP_NONE for
compatibility with those controllers.

(Also, as of this writing, OpenFlow 1.0.1 appears to be changing the port
to use from OFPP_NONE to OFPP_CONTROLLER.)

Suggested-by: Rob Sherwood <rob.sherwood@bigswitch.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/odp-util.c
lib/ofp-util.c
lib/ofp-util.h
ofproto/ofproto-provider.h
tests/ofproto.at