X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=datapath%2Ftunnel.c;h=c0e8b1e860d25db7acb0fa7ec3f57eca9e41d644;hb=d774cadf7b661f099687049a0c4a7c1a3b679987;hp=aae3f3d911484b8f15474e1ac42a26dcb879aec5;hpb=1e71f10f38d2ad09ee854b7e926a63744a1883e1;p=openvswitch diff --git a/datapath/tunnel.c b/datapath/tunnel.c index aae3f3d9..c0e8b1e8 100644 --- a/datapath/tunnel.c +++ b/datapath/tunnel.c @@ -247,7 +247,6 @@ static int add_port(struct vport *vport) err = tbl_insert(port_table, &tnl_vport->tbl_node, mutable_hash(tnl_vport->mutable)); if (err) { - (*find_port_pool(tnl_vport->mutable))--; check_table_empty(); return err; } @@ -278,6 +277,7 @@ static int move_port(struct vport *vport, struct tnl_mutable_config *new_mutable err = tbl_insert(port_table, &tnl_vport->tbl_node, hash); if (err) { + (*find_port_pool(tnl_vport->mutable))--; check_table_empty(); return err; }