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

2020-10-20 Thread Olivier Matz
Hi Stephen, On Thu, Oct 15, 2020 at 10:20:19AM -0700, Stephen Hemminger wrote: > mbuf: allow dynamic flags to be used by secondary process Suggested title: mbuf: fix dynamic flags lookup from secondary process > > The dynamic flag management is broken for multi-process environment. > All calls t

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

2020-10-15 Thread Stephen Hemminger
The dynamic flag management is broken for multi-process environment. All calls to lookup dynamic flags or fields will fail in secondary process. This is 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 zo