Re: [dpdk-dev] [PATCH v1] windows/netuio: fix pci resouce translation

2021-10-08 Thread William Tu
On Thu, Oct 7, 2021 at 5:23 PM William Tu wrote: > > When BAR array is filled like this > * Bar[4] = c844000c > * Bar[5] = null > ex: > while ((descriptor->Type != CmResourceTypeMemory) || > !(descriptor->Flags & CM_RESOURCE_MEMORY_BAR)); > returns true, the loop continue

[dpdk-dev] [PATCH v1] windows/netuio: fix pci resouce translation

2021-10-07 Thread William Tu
When BAR array is filled like this * Bar[4] = c844000c * Bar[5] = null ex: while ((descriptor->Type != CmResourceTypeMemory) || !(descriptor->Flags & CM_RESOURCE_MEMORY_BAR)); returns true, the loop continue and the decriptor will be NULL, but it's not an error. So I fix i