ofp-util: make_packet_out() shouldn't receive OVSP_NONE.
authorJesse Gross <jesse@nicira.com>
Thu, 29 Sep 2011 20:30:07 +0000 (13:30 -0700)
committerJesse Gross <jesse@nicira.com>
Thu, 29 Sep 2011 21:35:58 +0000 (14:35 -0700)
commit6c24d40243cffe9096431a3ad53a7acfd236d001
treec54bd46c1d0edb456bb0e351e60d751c0392a097
parentaeea3504e98e0a1abb553da69a33bfc7563e10f4
ofp-util: make_packet_out() shouldn't receive OVSP_NONE.

make_packet_out() operates solely at the OpenFlow layer, so it
should never receive OVSP_LOCAL as an in_port.  This function is
used only by the learning switch, which will never generate
a packet with OVSP_LOCAL so this fixes not a bug but a violation
of semantics.
lib/ofp-util.c