Skip to content

QID#655

Merged
AltraMayor merged 2 commits intoAltraMayor:v1.2.0-devfrom
mengxiang0811:qid
Aug 18, 2023
Merged

QID#655
AltraMayor merged 2 commits intoAltraMayor:v1.2.0-devfrom
mengxiang0811:qid

Conversation

@mengxiang0811
Copy link
Collaborator

No description provided.

We should call the FIB entry initialization
function when the entries are first created
to avoid future bugs in initialization.
The QID library allows functional blocks to quickly
fetch consecutive IDs, such as to use as indexes of
an array. The library uses a stack to quickly push
and pop IDs onto and from the set of unused IDs.

The GK block's routing table is also changed to use
the QID library. Instead of linearly searching for a
free FIB entry to use, it pops an ID (index) from the
QID library, which serves as the index of the free
FIB entry.
@AltraMayor AltraMayor changed the title Qid QID Aug 18, 2023
@AltraMayor AltraMayor added this to the Version 1.2 milestone Aug 18, 2023
@AltraMayor AltraMayor merged commit 5fbe430 into AltraMayor:v1.2.0-dev Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants