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

2020-11-04 Thread David Marchand
On Wed, Nov 4, 2020 at 5:27 PM Olivier Matz wrote: > On Wed, Nov 04, 2020 at 08:20:00AM -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. >

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

2020-11-04 Thread Olivier Matz
On Wed, Nov 04, 2020 at 08:20:00AM -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_register(). >

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

2020-11-04 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