Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorder: fix sequence number mbuf field register
[ upstream commit ec87595f4de01cb81878874d209fa03e6963b3e4 ] It's possible to initialize reorder buffer with user allocated memory via rte_reorder_init() function. In such case, rte_reorder_create() is not required and reorder dynamic field in rte_mbuf will not be registered. Both reorder lib and mbuf dynamic field are using `rte_mcfg_tailq` read/write lock for synchronization. To avoid deadlocking, move reorder buffer initialization before queue insertion. Fixes: 01f3496 ("reorder: switch sequence number to dynamic mbuf field") Signed-off-by: Volodymyr Fialko <vfialko@marvell.com>
- Loading branch information
1 parent
7dd9b2a
commit b71a128
Showing
2 changed files
with
62 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters