[dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-11 Thread Xiaoyun Li
Enable an example for rawdev ntb. Support interactive mode to send file on one host and receive file from another host. The command line would be 'send [filepath]' and 'receive [filepath]'. But since the FIFO is not enabled right now, use rte_memcpy as the enqueue and dequeue functions and only su

Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-05 Thread Ye Xiaolong
On 06/05, Li, Xiaoyun wrote: >> >> Yes, I agree, but I don't think it is the case here. >> >> >It will cause segment fault in enqueue/dequeue. >> >> Hmm, have you debug it? Which line caused the segfault? >> >> You can refer to test_rawdev_enqdeq function in skeleton_rawdev_test.c, what >> it d

Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-05 Thread Li, Xiaoyun
> > Yes, I agree, but I don't think it is the case here. > > >It will cause segment fault in enqueue/dequeue. > > Hmm, have you debug it? Which line caused the segfault? > > You can refer to test_rawdev_enqdeq function in skeleton_rawdev_test.c, what > it does is similar to my suggestion, and y

Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-05 Thread Ye Xiaolong
On 06/05, Li, Xiaoyun wrote: >Hi >> > I noticed that there are two allocations, one for pkts_recv[0] and another >> > for >> > pkts_recv[0]->buf_addr, How about we declare >> > >> >struct rte_rawdev_buf pkts_recv[1]; >> > >> > and allocate memory for its buf_addr >> > >> >pkts_recv[0].buf_

Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-05 Thread Li, Xiaoyun
Hi > > I noticed that there are two allocations, one for pkts_recv[0] and another > > for > > pkts_recv[0]->buf_addr, How about we declare > > > > struct rte_rawdev_buf pkts_recv[1]; > > > > and allocate memory for its buf_addr > > > > pkts_recv[0].buf_addr = malloc(size); > > > > then we

Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-04 Thread Li, Xiaoyun
Hi > -Original Message- > From: Ye, Xiaolong > Sent: Tuesday, June 4, 2019 16:49 > To: Li, Xiaoyun > Cc: Wu, Jingjing ; Wiles, Keith > ; > Liang, Cunming ; Maslekar, Omkar > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable a

Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-04 Thread Ye Xiaolong
On 06/03, Xiaoyun Li wrote: >Enable an example for rawdev ntb. Support interactive mode to send >file on one host and receive file from another host. The command line >would be 'send [filepath]' and 'receive [filepath]'. > >But since the FIFO is not enabled right now, use rte_memcpy as the enqueue

Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-04 Thread Li, Xiaoyun
.org > Subject: Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb > > On 06/03, Xiaoyun Li wrote: > >Enable an example for rawdev ntb. Support interactive mode to send file > >on one host and receive file from another host. The command line would > >b

Re: [dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-03 Thread Ye Xiaolong
On 06/03, Xiaoyun Li wrote: >Enable an example for rawdev ntb. Support interactive mode to send >file on one host and receive file from another host. The command line >would be 'send [filepath]' and 'receive [filepath]'. > >But since the FIFO is not enabled right now, use rte_memcpy as the enqueue

[dpdk-dev] [PATCH 4/6] examples/ntb: enable an example for ntb

2019-06-03 Thread Xiaoyun Li
Enable an example for rawdev ntb. Support interactive mode to send file on one host and receive file from another host. The command line would be 'send [filepath]' and 'receive [filepath]'. But since the FIFO is not enabled right now, use rte_memcpy as the enqueue and dequeue functions and only su