Comment 37 for bug 1497833

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/14730
Committed: http://github.org/Juniper/contrail-vrouter/commit/04cadf78d6651580b8b007d979255087259b8112
Submitter: Zuul
Branch: R2.20

commit 04cadf78d6651580b8b007d979255087259b8112
Author: Divakar <email address hidden>
Date: Fri Oct 30 21:37:25 2015 +0530

Maintaining free overflow entries as linked list

As of now the over flow entries are represented using bitmap. To
allocate a free entry this bitmap is searched for free bit. This can
lead to performance issues if most of the entries are used and very few
entries are empty, as there will be search of complete bitmap.

To overcome this, the free overflow entries are maintained as a linked
list, and entry from head of the list is used to allocate one. To
release it, the entry is added back at head.

Change-Id: I20343a0be290c540a935adac4ef2614bf5f955e4
closes-bug: #1497833