mbuf: fix dump of dynamic fields and flags
The dump of dynamic fields and flags fails if the shm is already
allocated. Add a check to fix the issue.
Fixes: d4902ed31c
("mbuf: check shared memory before dumping dynamic space")
Cc: stable@dpdk.org
Signed-off-by: Alexander Bechikov <asb.tyum@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
parent
a1b2558cdb
commit
c0b48da45c
@ -531,7 +531,7 @@ void rte_mbuf_dyn_dump(FILE *out)
|
|||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
rte_mcfg_tailq_write_lock();
|
rte_mcfg_tailq_write_lock();
|
||||||
if (init_shared_mem() < 0) {
|
if (shm == NULL && init_shared_mem() < 0) {
|
||||||
rte_mcfg_tailq_write_unlock();
|
rte_mcfg_tailq_write_unlock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user