Skip to content

[PATCH v2] linux-gen: check actual api pool type in alloc calls#2308

Merged
MatiasElo merged 1 commit intoOpenDataPlane:masterfrom
MatiasElo:dev/event-vector-debug
Feb 4, 2026
Merged

[PATCH v2] linux-gen: check actual api pool type in alloc calls#2308
MatiasElo merged 1 commit intoOpenDataPlane:masterfrom
MatiasElo:dev/event-vector-debug

Conversation

@MatiasElo
Copy link
Collaborator

Check that correct pool type is used with odp_buffer_alloc() and odp_buffer_alloc_multi() functions also from application PoV. odp_dma_compl_alloc() and odp_ml_compl_alloc() functions now use implementation internal _odp_event_alloc() function for allocating their events and check the used pool type. Also, make _odp_event_alloc() function inlined.

@odpbuild odpbuild changed the title linux-gen: check actual api pool type in alloc calls [PATCH v1] linux-gen: check actual api pool type in alloc calls Feb 4, 2026
Check that correct pool type is used with odp_buffer_alloc() and
odp_buffer_alloc_multi() functions also from application PoV.
odp_dma_compl_alloc() and odp_ml_compl_alloc() functions now use
implementation internal _odp_event_alloc() function for allocating their
events and check the used pool type. Also, make _odp_event_alloc() function
inlined.

Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
@MatiasElo MatiasElo force-pushed the dev/event-vector-debug branch from bbc4274 to 69c8c3d Compare February 4, 2026 11:16
@odpbuild odpbuild changed the title [PATCH v1] linux-gen: check actual api pool type in alloc calls [PATCH v2] linux-gen: check actual api pool type in alloc calls Feb 4, 2026
@MatiasElo MatiasElo enabled auto-merge (rebase) February 4, 2026 11:20
@MatiasElo MatiasElo merged commit 2cf3b19 into OpenDataPlane:master Feb 4, 2026
164 checks passed
@MatiasElo MatiasElo deleted the dev/event-vector-debug branch February 4, 2026 13:16
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