summaryrefslogtreecommitdiff
path: root/tests/test-bundle.c
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2012-09-25 15:25:51 -0700
committerJustin Pettit <jpettit@nicira.com>2012-11-01 22:54:27 -0700
commitddbfda846297ab9e89ed9c3f844a8eff86692275 (patch)
tree5ac2667bc4c7d94236f749017c41e11ef88dc854 /tests/test-bundle.c
parent9b56fe137d3c734edcfa00631a960920f04c866a (diff)
downloadopenvswitch-ddbfda846297ab9e89ed9c3f844a8eff86692275.tar.gz
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>
Diffstat (limited to 'tests/test-bundle.c')
-rw-r--r--tests/test-bundle.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/test-bundle.c b/tests/test-bundle.c
index aa8b6f0f4..f2d9b8245 100644
--- a/tests/test-bundle.c
+++ b/tests/test-bundle.c
@@ -136,7 +136,6 @@ main(int argc, char *argv[])
flows = xmalloc(N_FLOWS * sizeof *flows);
for (i = 0; i < N_FLOWS; i++) {
random_bytes(&flows[i], sizeof flows[i]);
- memset(flows[i].zeros, 0, sizeof flows[i].zeros);
flows[i].regs[0] = OFPP_NONE;
}