Re: [vpp-dev] Question about libmemif API

2019-08-15 Thread Yao, Chengqiang
Hi William, That's what memif_refill_queue() does. When you call this function, libmemif knows you are done with these buffers. Best Regards, Chengqiang Yao -Original Message- From: William Tu Sent: 2019年8月15日 23:26 To: Yao, Chengqiang Cc: vpp-dev@lists.fd.io Subject: Re: [vpp

Re: [vpp-dev] Question about libmemif API

2019-08-15 Thread Yao, Chengqiang
Hi William, You do not need to copy the packets out of memif. Once you finish processing all these packets, call memif_refill_queue() function to free these buffers. Let's say if you receive 32 packets in memif_rx_burst function, after processing, call memif_refill_queue with count=32 to

Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Yao, Chengqiang
to check my setup. Best Regards, Chengqiang Yao From: Marco Varlese [mailto:mvarl...@suse.de] Sent: Thursday, November 8, 2018 6:52 PM To: Yao, Chengqiang Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] #vpp sctp echo test crash Dear Yao, First of all, are you on MASTER branch or some other

Re: [vpp-dev] #vpp sctp echo test crash

2018-11-08 Thread Yao, Chengqiang
Yao From: Marco Varlese [mailto:mvarl...@suse.de] Sent: Thursday, November 8, 2018 4:07 PM To: Yao, Chengqiang Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] #vpp sctp echo test crash Hi Yao, As per test_sctp.py the command is: test echo server appns 0 fifo-size 4 [URI] Where URI is made

Re: [vpp-dev] #vpp

2018-10-25 Thread Yao, Chengqiang
Hi Macro, Thanks for your information, I will have a try. Best Regards, Chengqiang Yao From: Marco Varlese [mailto:mvarl...@suse.de] Sent: Thursday, October 25, 2018 9:09 PM To: Yao, Chengqiang ; vpp-dev@lists.fd.io Subject: Re: [vpp-dev] #vpp Hi, On Thu, 2018-10-25 at 04:59 +, Yao

Re: [vpp-dev] #vpp

2018-10-24 Thread Yao, Chengqiang
Hi Macro, Is there any sample code to show how to use SCTP (such as association, packet transmission/reception, etc.)? And is there any performance report for SCTP? Best Regards, Chengqiang Yao From: vpp-dev@lists.fd.io [mailto:vpp-dev@lists.fd.io] On Behalf Of Marco Varlese Sent:

Re: [vpp-dev] about gtpu encap

2018-10-23 Thread Yao, Chengqiang
Hi Daolin, You can see the code below in gtpu4_encap node, if you set gtpu4_encap as next node, the sw_if_index should be set correctly. In you case, it should be set to the gtpu tunnel1. sw_if_index0 = vnet_buffer(b0)->sw_if_index[VLIB_TX]; A workable solution is add a node as the next node

[vpp-dev] memif issues

2018-08-01 Thread Yao, Chengqiang
Hi Jakub, I’m testing VPP memif and ICMP responder example app. I found there might be some issues in extras/libmemif code when it runs in zero-copy mode. 1. In memif_connect1 function, only the first region is mmaped, while if VPP memif runs in zero-copy mode, there will be multiple

Re: [vpp-dev] ip header checksum calculation issue

2018-06-29 Thread Yao, Chengqiang
Hi Marion, Yes, I just tried latest code committed 10 days ago, it works. Thanks for your reply. I will also try your optimized code later. Best Regards, Chengqiang Yao From: Damjan Marion [mailto:dmar...@me.com] Sent: Friday, June 29, 2018 5:34 PM To: Yao, Chengqiang Cc: vpp-dev

[vpp-dev] ip header checksum calculation issue

2018-06-29 Thread Yao, Chengqiang
Hi, I have an issue when calculating the checksum of two IP headers with ip4_header_checksum function. The content of these two IP headers are exactly the same. The only difference between these 2 IP headers is that, one IP header's address is 64 bits aligned, while the other one is not (My