From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v2 1/2] app/testpmd: support the heavywight mode GRO Date: Mon, 21 Aug 2017 12:03:43 +0100 Message-ID: References: <1502333448-75976-1-git-send-email-jiayu.hu@intel.com> <1502960892-112960-1-git-send-email-jiayu.hu@intel.com> <1502960892-112960-2-git-send-email-jiayu.hu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: konstantin.ananyev@intel.com, jianfeng.tan@intel.com, thomas@monjalon.net, jingjing.wu@intel.com, lei.a.yao@intel.com To: Jiayu Hu , dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id B137B7D12 for ; Mon, 21 Aug 2017 13:03:48 +0200 (CEST) In-Reply-To: <1502960892-112960-2-git-send-email-jiayu.hu@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 8/17/2017 10:08 AM, Jiayu Hu wrote: > The GRO library provides two reassembly modes: lightweight mode and > heavyweight mode. This patch is to support the heavyweight mode in > csum forwarding engine. > > With the command "set port gro (heavymode|lightmode) (on|off)", > users can select the lightweight mode or the heavyweight mode to use. With > the command "set gro flush interval ", users can set the interval of > flushing GROed packets from reassembly tables for the heavyweight mode. > With the command "show port gro", users can display GRO > configuration. > > Signed-off-by: Jiayu Hu <...> > lcoreid_t cpuid_idx; /**< index of logical core in CPU id table */ > @@ -434,13 +436,21 @@ extern struct ether_addr peer_eth_addrs[RTE_MAX_ETHPORTS]; > extern uint32_t burst_tx_delay_time; /**< Burst tx delay time(us) for mac-retry. */ > extern uint32_t burst_tx_retry_num; /**< Burst tx retry number for mac-retry. */ > > +#define GRO_HEAVYMODE 0x1 > +#define GRO_LIGHTMODE 0x2 Why these are not part of the gro library? Is the concept "lightweight mode and heavyweight mode" part of gro library or implemented only in testpmd? > + > #define GRO_DEFAULT_FLOW_NUM 4 > #define GRO_DEFAULT_ITEM_NUM_PER_FLOW DEF_PKT_BURST > + > +#define GRO_DEFAULT_FLUSH_INTERVAL 2 > +#define GRO_MAX_FLUSH_INTERVAL 4 > + > struct gro_status { > struct rte_gro_param param; > uint8_t enable; > }; > extern struct gro_status gro_ports[RTE_MAX_ETHPORTS]; > +extern uint32_t gro_flush_interval; <...>