From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ananyev, Konstantin" Subject: Re: [PATCH 2/5] gso/lib: add TCP/IPv4 GSO support Date: Mon, 11 Sep 2017 13:04:07 +0000 Message-ID: <2601191342CEEE43887BDE71AB9772584F249883@irsmsx105.ger.corp.intel.com> References: <1503584144-63181-1-git-send-email-jiayu.hu@intel.com> <1503584144-63181-3-git-send-email-jiayu.hu@intel.com> <2601191342CEEE43887BDE71AB9772584F23E097@IRSMSX103.ger.corp.intel.com> <20170904033150.GA9009@dpdk15.sh.intel.com> <2601191342CEEE43887BDE71AB9772584F244E8C@irsmsx105.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" , "Kavanagh, Mark B" , "Tan, Jianfeng" To: "Hu, Jiayu" Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 670D36841 for ; Mon, 11 Sep 2017 15:04:38 +0200 (CEST) In-Reply-To: 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" Hi Jiayu, > > > Linux supports two kinds of IP identifier: fixed identifier and incre= mental > > identifier, and > > > which one to use depends on upper protocol modules. Specifically, if = the > > protocol module > > > wants fixed identifiers, it will set SKB_GSO_TCP_FIXEDID to skb->gso_= type, > > and then > > > inet_gso_segment() will keep identifiers the same. Otherwise, all seg= ments > > will have > > > incremental identifiers. The reason for this design is that some prot= ocols > > may choose fixed > > > IP identifiers, like TCP (from RFC791). This design also shows that l= inux > > ignores the issue > > > of repeated IP identifiers. > > > > > > From the perspective of DPDK, we need to solve two problems. One is i= f > > ignore the issue of > > > repeated IP identifiers. The other is if the GSO library provides an = interface > > to upper > > > applications to enable them to choose fixed or incremental identifier= s, or > > simply uses > > > incremental IP identifiers. > > > > > > Do you have any suggestions? > > > > > > Do the same as Linux? > > I.E. add some flag RRE_GSO_IPID_FIXED (or so) into gso_ctx? >=20 > OK, I see. We can do that. >=20 > In the GRO library, we check if the IP identifiers are incremental compul= sorily. If we > enable fixed IP identifier in GSO, it seems we also need to change the GR= O library. > I mean ignore IP identifier when merge packets, and don't update the IP i= dentifier > for the merged packet. What do you think of it? I suppose we can, if there is a use-case for it. Konstantin >=20