ofproto-dpif: Correct in_port on send_packet().
authorJustin Pettit <jpettit@nicira.com>
Tue, 13 Nov 2012 02:57:42 +0000 (18:57 -0800)
committerJustin Pettit <jpettit@nicira.com>
Fri, 16 Nov 2012 20:35:55 +0000 (12:35 -0800)
commit0958f12880427e4f3ea3fcc758a3ddf681ae6f5d
tree7a8893ffff67d7d605da8016256e6d38c26285d1
parentb4f4b737f901a43eba962bec2280b52b95ad10d5
ofproto-dpif: Correct in_port on send_packet().

The switch to a single datapath uncovered a long-standing bug in the
send_packet() function.  The code had used an (invalid) ingress OpenFlow
port of 0, which happened to get translated to the datapath's local
port, which was always 0.  With the single datapath, this invalid
OpenFlow port number no longer maps properly, so switch-generated
packets could not be transmitted.  This patch properly sets the ingress
port to OFPP_LOCAL.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
ofproto/ofproto-dpif.c