Skip to content

Conversation

@rjarry
Copy link
Collaborator

@rjarry rjarry commented May 20, 2025

Change the concept of init_prio and fini_prio to a single depends_on field. This new field takes a module name that must be equal to another module. When the field is left NULL, the modules will be initialized first and finalized last (in no particular order). Other modules will be initialized after (and finalized before) the modules they depend on.

The topological sort algorithm was inspired from multiple sources and adapted for grout module objects.

Link: https://mohammad-imran.medium.com/understanding-topological-sorting-with-kahns-algo-8af5a588dd0e
Link: https://www.techiedelight.com/kahn-topological-sort-algorithm/

@rjarry rjarry force-pushed the modules-dependencies branch 2 times, most recently from be43bf2 to 386e5ee Compare May 22, 2025 12:01
Change the concept of init_prio and fini_prio to a single depends_on
field. This new field takes a module name that must be equal to another
module. When the field is left NULL, the modules will be initialized
first and finalized last (in no particular order). Other modules will be
initialized after (and finalized before) the modules they depend on.

The topological sort algorithm was inspired from multiple sources and
adapted for grout module objects.

Link: https://mohammad-imran.medium.com/understanding-topological-sorting-with-kahns-algo-8af5a588dd0e
Link: https://www.techiedelight.com/kahn-topological-sort-algorithm/
Signed-off-by: Robin Jarry <[email protected]>
@rjarry rjarry force-pushed the modules-dependencies branch from 386e5ee to d24d369 Compare May 22, 2025 13:56
@rjarry rjarry requested a review from christophefontaine May 26, 2025 16:39
@christophefontaine christophefontaine merged commit 4cee36e into DPDK:main May 28, 2025
8 checks passed
@rjarry rjarry deleted the modules-dependencies branch May 28, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants