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

2017-06-29 Thread Jiayu Hu
Hi Stephen, On Thu, Jun 29, 2017 at 10:51:50AM -0700, Stephen Hemminger wrote: > On Thu, 29 Jun 2017 18:58:59 +0800 > Jiayu Hu wrote: > > > + /* allocate a reassembly table for TCP/IPv4 GRO */ > > + uint32_t tcp_item_num = RTE_MIN(item_num, > > + RTE_GRO_MAX_BURST_ITEM_NUM)

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

2017-06-29 Thread Stephen Hemminger
On Thu, 29 Jun 2017 18:58:59 +0800 Jiayu Hu wrote: > + /* allocate a reassembly table for TCP/IPv4 GRO */ > + uint32_t tcp_item_num = RTE_MIN(item_num, > + RTE_GRO_MAX_BURST_ITEM_NUM); > + struct gro_tcp_tbl tcp_tbl; > + struct gro_tcp_key tcp_keys[tcp_item_num

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

2017-06-29 Thread Jiayu Hu
In this patch, we introduce five 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_timeout_flush: flush timeout packets from a TCP reassembly ta