With a single datapath, we no longer need to special case bridges
beginning with "br*" for testing, since all netdev-based bridges
are named "ovs-netdev". This removes that unnecessary code.
Signed-off-by: Justin Pettit <jpettit@nicira.com>
struct dp_netdev **dpp)
{
struct dp_netdev *dp;
- int port_no;
int error;
int i;
hmap_init(&dp->flow_table);
list_init(&dp->port_list);
- port_no = !strncmp(name, "br", 2) ? choose_port(dp, name) : OVSP_LOCAL;
- error = do_add_port(dp, name, "internal", port_no);
+ error = do_add_port(dp, name, "internal", OVSP_LOCAL);
if (error) {
dp_netdev_free(dp);
return error;