Re: [dpdk-dev] [PATCH v3 1/3] ethdev: add Rx HW timestamp capability

2017-09-30 Thread Shahaf Shuler
Hi Andrew, Friday, September 29, 2017 10:26 AM, Andrew Rybchenko: >On 09/28/2017 07:48 PM, Raslan Darawsheh wrote: >>Add a new offload capability flag for Rx HW timestamp and enabling/disabling >>this via rte_eth_rxmode. > >I think it should be on top [1] and ideally follow a new offload API wi

Re: [dpdk-dev] [PATCH v2 12/12] net/vhost: support to run in the secondary process

2017-09-30 Thread Yuanhan Liu
On Sat, Sep 30, 2017 at 12:06:44PM , Jianfeng Tan wrote: > +/* share callfd and kickfd */ > +params->type = VHOST_MSG_TYPE_SET_FDS; > +vring_num = rte_vhost_get_vring_num(vid); > +for (i = 0; i < vring_num; i++) { > +if (r

Re: [dpdk-dev] [PATCH v2 12/12] net/vhost: support to run in the secondary process

2017-09-30 Thread Yuanhan Liu
On Thu, Sep 30, 2017 at 12:53:00PM +, Jianfeng Tan wrote: >On 9/30/2017 4:23 PM, Yuanhan Liu wrote: > > On Thu, Sep 28, 2017 at 01:55:59PM +, Jianfeng Tan wrote: > >> +static int > >> new_device(int vid) > >> { > >>struct rte_eth_dev *eth_dev; > >> @@ -610,6 +685,8 @@ new_device(in

Re: [dpdk-dev] [PATCH v2 12/12] net/vhost: support to run in the secondary process

2017-09-30 Thread Tan, Jianfeng
On 9/30/2017 4:23 PM, Yuanhan Liu wrote: On Thu, Sep 28, 2017 at 01:55:59PM +, Jianfeng Tan wrote: +static int new_device(int vid) { struct rte_eth_dev *eth_dev; @@ -610,6 +685,8 @@ new_device(int vid) _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC,

Re: [dpdk-dev] [PATCH 10/12] vhost: support to kick in secondary process

2017-09-30 Thread Tan, Jianfeng
On 9/30/2017 4:18 PM, Yuanhan Liu wrote: On Thu, Sep 28, 2017 at 08:09:38AM +, Tan, Jianfeng wrote: Actually, the key (and typical) issue of multi-process here is the fds are process specific, while they are stored in the shared memory. That means only one will take effect eventually. Wors

Re: [dpdk-dev] [PATCH v2 12/12] net/vhost: support to run in the secondary process

2017-09-30 Thread Tan, Jianfeng
On 9/30/2017 4:16 PM, Yuanhan Liu wrote: On Sat, Sep 30, 2017 at 12:03:33PM +0800, Tan, Jianfeng wrote: + if (rte_eal_mp_sendmsg("vhost pmd", params, sizeof(*params) + len, To me, it's not a good idea to identify an object by a string. The common practice is to use a handler, which coul

Re: [dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ?

2017-09-30 Thread Bill Bonaparte
Hi Jianfeng, Thank you for replying, I appreciate so much for this. we are trying to run our dpdk application on AWS cloud which use xen platform. for this case, what should I do to support AWS cloud ? Is there any way to do this ? On Sat, Sep 30, 2017 at 4:53 PM, Tan, Jianfeng wrote: > H

Re: [dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ?

2017-09-30 Thread Tan, Jianfeng
Hi Bill On 9/30/2017 4:47 PM, Bill Bonaparte wrote: Hi, everybody: I am trying to run dpdk in xen guest, after trying dpdk17.05 without success, I tried dpdk16.04 again. and it's sucessful to run testpmd this time. but it can't receive any packets. the command I used is : ./testpmd

[dpdk-dev] Can xenvirt pmd work in xen guest (aka DomU) without xen-vhost in Dom0 ?

2017-09-30 Thread Bill Bonaparte
Hi, everybody: I am trying to run dpdk in xen guest, after trying dpdk17.05 without success, I tried dpdk16.04 again. and it's sucessful to run testpmd this time. but it can't receive any packets. the command I used is : ./testpmd -l 1,2 -n 4 --vdev="eth_xenvirt0,mac=a6:38:57:e8:d5:be" -

Re: [dpdk-dev] [PATCH v2 12/12] net/vhost: support to run in the secondary process

2017-09-30 Thread Yuanhan Liu
On Thu, Sep 28, 2017 at 01:55:59PM +, Jianfeng Tan wrote: > +static int > new_device(int vid) > { > struct rte_eth_dev *eth_dev; > @@ -610,6 +685,8 @@ new_device(int vid) > _rte_eth_dev_callback_process(eth_dev, RTE_ETH_EVENT_INTR_LSC, > NULL, N

Re: [dpdk-dev] [PATCH 10/12] vhost: support to kick in secondary process

2017-09-30 Thread Yuanhan Liu
On Thu, Sep 28, 2017 at 08:09:38AM +, Tan, Jianfeng wrote: > > Actually, the key (and typical) issue of multi-process here is the fds are > > process specific, while they are stored in the shared memory. That means > > only one will take effect eventually. Worse, the old ones are lost. > > > >

Re: [dpdk-dev] [PATCH v2 12/12] net/vhost: support to run in the secondary process

2017-09-30 Thread Yuanhan Liu
On Sat, Sep 30, 2017 at 12:03:33PM +0800, Tan, Jianfeng wrote: > >>+ if (rte_eal_mp_sendmsg("vhost pmd", params, sizeof(*params) + len, > >To me, it's not a good idea to identify an object by a string. The common > >practice is to use a handler, which could either be a struct or a nubmer. > > My

[dpdk-dev] It's failed to run dpdk(17.05) on xen guest (aka DomU), e.g. ubuntu16.04

2017-09-30 Thread Bill Bonaparte
Hi, everybody: I can't wait to write this mail for help, I am trying to run dpdk on xen guest (aka DomU), but whatevery I do, it's always failed. The followings is my environment: xen guest OS which dpdk is running on is ubuntu 16.04 sever. dpdk version is 17.05. I enable the x