Re: [dpdk-dev] [PATCH v1 2/2] examples/vdpa: add a new sample for vdpa

2018-09-09 Thread Ye Xiaolong
On 09/10, Wang, Haiyue wrote: >Can we add options to support 'int rte_vdpa_find_device_id(struct >rte_vdpa_dev_addr *addr)' API calling >to get the device id ? Not just hard code 0 ~ num ? Like choosing one of >vDPA engines explicitly by BDF: >-w :06:00.2,vdpa=1 -w :06:00.3,vdpa=1 > G

Re: [dpdk-dev] [PATCH v1 2/2] examples/vdpa: add a new sample for vdpa

2018-09-09 Thread Wang, Haiyue
Can we add options to support 'int rte_vdpa_find_device_id(struct rte_vdpa_dev_addr *addr)' API calling to get the device id ? Not just hard code 0 ~ num ? Like choosing one of vDPA engines explicitly by BDF: -w :06:00.2,vdpa=1 -w :06:00.3,vdpa=1 BR, Haiyue > -Original Message---

Re: [dpdk-dev] [PATCH v1 2/2] examples/vdpa: add a new sample for vdpa

2018-09-06 Thread Ye Xiaolong
Hi, Rosen. Thanks a lot for your comments. On 09/06, Rami Rosen wrote: >Hi all, >First, thanks for the vdpa example patches. >Second, I am getting a compilation error under Ubuntu 18.04, with gcc >version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) >... > CC main.o >/work/src/dpdk/examples/vdpa/main.c: In fu

Re: [dpdk-dev] [PATCH v1 2/2] examples/vdpa: add a new sample for vdpa

2018-09-06 Thread Rami Rosen
Hi all, First, thanks for the vdpa example patches. Second, I am getting a compilation error under Ubuntu 18.04, with gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) ... CC main.o /work/src/dpdk/examples/vdpa/main.c: In function ‘main’: /work/src/dpdk/examples/vdpa/main.c:321:5: error: ignoring return