ofproto-dpif: Disassociate datapath max_ports with openflow port numbers.
authorGurucharan Shetty <gshetty@nicira.com>
Tue, 5 Nov 2013 18:39:47 +0000 (10:39 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 6 Nov 2013 15:25:06 +0000 (07:25 -0800)
commit9f5bbb005cde84505e112495e59604bf62e580ff
tree394bb1e346fb63a7ce2f740b98f0e8553c682a70
parentccb0ca0333816cdb92a5617f03c4ca6cd9924c86
ofproto-dpif: Disassociate datapath max_ports with openflow port numbers.

With single datapath, multiple userspace bridges share the same datapath.
As such it does not look beneficial that we decide a valid open flow port
number based on the number of ports in the datapath specially now that
we have the ofport_request column in OVSDB.

This commit does not remove ofproto_init_max_ports() interface as defined
in ofproto-provider.h as there may be other implementations that still use it.
But ofproto-dpif should not need it.

Bug #20163.
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/dpif.c
lib/dpif.h
ofproto/ofproto-dpif.c