[dpdk-dev] [PATCH 6/7] vmxnet3: introduce command to register memory region

Ferruh Yigit ferruh.yigit at intel.com
Fri Mar 3 11:51:34 CET 2017

On 2/25/2017 9:59 PM, Shrikrishna Khare wrote:
> In vmxnet3 version 3, the emulation added support for the vmxnet3 driver
> to communicate information about the memory regions the driver will use
> for rx/tx buffers. The driver can also indicate which rx/tx queue the
> memory region is applicable for. If this information is communicated
> to the emulation, the emulation will always keep these memory regions
> mapped, thereby avoiding the mapping/unmapping overhead for every packet.
> Signed-off-by: Shrikrishna Khare <skhare at vmware.com>
> Signed-off-by: Guolin Yang <gyang at vmware.com>
> Acked-by: Yong Wang <yongwang at vmware.com>
> Acked-by: Jin Heo <heoj at vmware.com>


> +			     "index: %u startPA: %lu  length: %u, rxBits: %x",
> +			     j, mr->startPA, mr->length, mr->rxQueueBits);

Also this gives following build error for 32bit (i686) build:

.../drivers/net/vmxnet3/vmxnet3_ethdev.c: In function
.../drivers/net/vmxnet3/vmxnet3_ethdev.c:564:52: error: format ‘%lu’
expects argument of type ‘long unsigned int’, but argument 6 has type
‘uint64 {aka long long unsigned int}’ [-Werror=format=]
         j, mr->startPA, mr->length, mr->rxQueueBits);

More information about the dev mailing list