aboutsummaryrefslogtreecommitdiff
path: root/datapath
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-01-12 15:23:23 -0800
committerBen Pfaff <blp@nicira.com>2012-01-12 15:23:23 -0800
commit247527db0f3530480bde88c59c1fadd5d51505fc (patch)
tree3b99e6d4bb9c5d5b713f0ec6d59e325fb362a986 /datapath
parenta1893da130e2bfadcd031476f00a365677a9ff61 (diff)
dpif-netdev: Make port numbers predictable for dummy dpif, for unit tests.
The unit tests feed a lot of flows through the ofproto-dpif "trace" command, which means that they need to know the port numbers of the ports that they create. Until now, they've had to actually query those port numbers from the database, which is a bit of unnecessary overhead for unit tests. This commit makes dummy dpif port numbers predictable: if the name of a port contains a number, then the dummy dpif uses that number, if it is valid and available, as the port number. This commit also simplifies the unit tests that previously queried port numbers to depend on the new behavior. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath')
0 files changed, 0 insertions, 0 deletions