Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-22 Thread Jiayu Hu
Hi Jianfeng, On Thu, Jun 22, 2017 at 05:35:23PM +0800, Tan, Jianfeng wrote: > Hi Jiayu, > > > -Original Message- > > From: Hu, Jiayu > > Sent: Thursday, June 22, 2017 4:18 PM > > To: Tan, Jianfeng > > Cc: dev@dpdk.org; Ananyev, Konstantin; y...@fridaylinux.org; Wiles, Keith; > > Bie, Tiwe

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-22 Thread Tan, Jianfeng
Hi Jiayu, > -Original Message- > From: Hu, Jiayu > Sent: Thursday, June 22, 2017 4:18 PM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Ananyev, Konstantin; y...@fridaylinux.org; Wiles, Keith; > Bie, Tiwei; Yao, Lei A > Subject: Re: [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support > > On Mon, Ju

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-22 Thread Jiayu Hu
On Mon, Jun 19, 2017 at 11:43:20PM +0800, Tan, Jianfeng wrote: > > > On 6/18/2017 3:21 PM, Jiayu Hu wrote: > > > > Each element in the flow array records the information of one flow, > > which includes two parts: > > - key: the criteria of the same flow. If packets have the same key > > val

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-22 Thread Jiayu Hu
Hi Jianfeng, On Wed, Jun 21, 2017 at 07:30:08AM +0800, Tan, Jianfeng wrote: > Hi Jiayu, > > > On 6/20/2017 11:22 AM, Jiayu Hu wrote: > > Hi Jianfeng, > > > > On Mon, Jun 19, 2017 at 11:43:20PM +0800, Tan, Jianfeng wrote: > > > > > > On 6/18/2017 3:21 PM, Jiayu Hu wrote: > > > > In this patch,

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-20 Thread Stephen Hemminger
On Wed, 21 Jun 2017 07:30:08 +0800 "Tan, Jianfeng" wrote: > >>> To process an incoming packet, we need three steps: > >>> a. check if the packet should be processed. Packets with the following > >>> properties won't be processed: > >>> - packets without data; > >>> - packets with wrong

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-20 Thread Tan, Jianfeng
Hi Jiayu, On 6/20/2017 11:22 AM, Jiayu Hu wrote: Hi Jianfeng, On Mon, Jun 19, 2017 at 11:43:20PM +0800, Tan, Jianfeng wrote: On 6/18/2017 3:21 PM, Jiayu Hu wrote: In this patch, we introduce six APIs to support TCP/IPv4 GRO. Those functions are not used outside of this library. Don't make

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-20 Thread Jiayu Hu
On Tue, Jun 20, 2017 at 11:15:58PM +0800, Ananyev, Konstantin wrote: Hi Konstantin, > Hi Jiayu, > > > -Original Message- > > From: Hu, Jiayu > > Sent: Tuesday, June 20, 2017 4:22 AM > > To: Tan, Jianfeng > > Cc: dev@dpdk.org; Ananyev, Konstantin ; > > y...@fridaylinux.org; Wiles, Keith

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-20 Thread Ananyev, Konstantin
> -Original Message- > From: Hu, Jiayu > Sent: Tuesday, June 20, 2017 4:22 AM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Ananyev, Konstantin ; > y...@fridaylinux.org; Wiles, Keith ; Bie, > Tiwei ; Yao, Lei A > Subject: Re: [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support > > Hi Jianfeng,

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-20 Thread Ananyev, Konstantin
Hi Jiayu, > -Original Message- > From: Hu, Jiayu > Sent: Tuesday, June 20, 2017 4:22 AM > To: Tan, Jianfeng > Cc: dev@dpdk.org; Ananyev, Konstantin ; > y...@fridaylinux.org; Wiles, Keith ; Bie, > Tiwei ; Yao, Lei A > Subject: Re: [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support > > Hi

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-19 Thread Jiayu Hu
Hi Jianfeng, On Mon, Jun 19, 2017 at 11:43:20PM +0800, Tan, Jianfeng wrote: > > > On 6/18/2017 3:21 PM, Jiayu Hu wrote: > > In this patch, we introduce six APIs to support TCP/IPv4 GRO. > > Those functions are not used outside of this library. Don't make it as > extern visible. But they are ca

Re: [dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-19 Thread Tan, Jianfeng
On 6/18/2017 3:21 PM, Jiayu Hu wrote: In this patch, we introduce six APIs to support TCP/IPv4 GRO. Those functions are not used outside of this library. Don't make it as extern visible. - gro_tcp_tbl_create: create a TCP reassembly table, which is used to merge packets. Will tcp6

[dpdk-dev] [PATCH v5 2/3] lib/gro: add TCP/IPv4 GRO support

2017-06-18 Thread Jiayu Hu
In this patch, we introduce six APIs to support TCP/IPv4 GRO. - gro_tcp_tbl_create: create a TCP reassembly table, which is used to merge packets. - gro_tcp_tbl_destroy: free memory space of a TCP reassembly table. - gro_tcp_tbl_flush: flush packets in the TCP reassembly table. - gro_tcp_tbl_ti