Re: [dpdk-dev] [PATCH v4] mbuf: allow dynamic flags to be used by secondary process

2020-11-04 Thread Olivier Matz
Hi Stephen, On Tue, Nov 03, 2020 at 09:53:10PM -0800, Stephen Hemminger wrote: > The dynamic flag management is broken if rte_mbuf_dynflag_lookup() > is done in a secondary process because the local pointer to > the memzone is not ever initialized. > > Fix it by using the same checks as dynfield_

[dpdk-dev] [PATCH v4] mbuf: allow dynamic flags to be used by secondary process

2020-11-03 Thread Stephen Hemminger
The dynamic flag management is broken if rte_mbuf_dynflag_lookup() is done in a secondary process because the local pointer to the memzone is not ever initialized. Fix it by using the same checks as dynfield_register(). I.e if shared memory zone has not been looked up already, then discover it. F