Use ODP ports in dpif layer and below.
authorJustin Pettit <jpettit@nicira.com>
Tue, 25 Sep 2012 22:25:51 +0000 (15:25 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 2 Nov 2012 05:54:27 +0000 (22:54 -0700)
commitddbfda846297ab9e89ed9c3f844a8eff86692275
tree5ac2667bc4c7d94236f749017c41e11ef88dc854
parent9b56fe137d3c734edcfa00631a960920f04c866a
Use ODP ports in dpif layer and below.

The current code has a simple mapping between datapath and OpenFlow port
numbers (the port numbers were the same other than OFPP_LOCAL which maps
to datapath port 0).  Since the translation was know at compile time,
this allowed different layers to easily translate between the two, so
the translation often occurred late.

A future commit will break this simple mapping, so this commit draws a
line between where datapath and OpenFlow port numbers are used.  The
ofproto-dpif layer will be responsible for the translations.  Callers
above will use OpenFlow port numbers.  Providers below will use
datapath port numbers.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
lib/dpif-linux.c
lib/dpif-netdev.c
lib/flow.c
lib/flow.h
lib/odp-util.c
lib/odp-util.h
ofproto/ofproto-dpif.c
tests/test-bundle.c
tests/test-multipath.c
tests/test-odp.c