[ovs-dev] [PATCH] ofproto: Start ofport allocation from the previous max after restart.

Ben Pfaff blp at nicira.com
Tue Aug 20 19:46:17 UTC 2013


On Mon, Aug 19, 2013 at 04:59:16PM -0700, Gurucharan Shetty wrote:
> We currently do not recycle ofport numbers from interfaces that are recently
> deleted by maintaining the maximum allocated ofport value and
> allocating new ofport numbers greater than the previous maximum.
> But after a restart of ovs-vswitchd, we start again from ofport value of '1'.
> This means that after a restart, we can immeditaley recycle the 'ofport'
> value of the most recently deleted interface.
> 
> With this commit, during ovs-vswitchd initial configuration, we figure
> out the previously allocated max ofport value. New interfaces get ofport
> value that is greater than this.
> 
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list