[dpdk-dev] 答复: [PATCH v2] bus/pci: resolve multiple NICs address conflicts

Burakov, Anatoly anatoly.burakov at intel.com
Wed Nov 6 11:29:52 CET 2019


On 06-Nov-19 6:15 AM, Wangyu (Eric) wrote:
> 
> In 64K pagesize system, DPDK will read the size NIC need in uio/uio1/maps/map1/size,  when the size small than pagesize(e.g.,82599 is 16K), dev->mem_resource[i].len will be 16K, but the mmap function applies for at least 1 page size, which is 64K.
> Then second NIC mmap, start address is first NIC address + 16K, which already used by first NIC.
> So if change the size to first NIC address + 64K, problem solved.
> 

It seems like something that should be fixed at the mapping stage, 
rather than modifying length of the resources.

-- 
Thanks,
Anatoly


More information about the dev mailing list