From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) by dpdk.org (Postfix) with ESMTP id D203A68BF for ; Fri, 4 Oct 2013 19:27:42 +0200 (CEST) Received: by mail-ie0-f177.google.com with SMTP id qd12so9638678ieb.22 for ; Fri, 04 Oct 2013 10:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rQrGd+rYrEDYuYqKBnRFlWJG9a8QUOG/vJ+PH/KqELc=; b=Rn1kW40BQO9775UxtpZkLQ2h4UnK+9bvagmVxKjYCDgUNFptR7DbqRnLxXQ2pCnF5f rmHcZpynisQnIzrhCyWznUwiLNP+pepcv3AxtOnxpoG9d00JWi+4Q363wGFDLP9c0GhD 331el0UIhb44O6zrEmfS7rIhGEI3hFZHDakqoGAp5cGbTYlwirC9u+5yoz0TSixhVVUh pRQMLXkeidJGCJpBcZDZyFy7KeFcq+uOzSFdNtuERH1+W61BnsOLBGm87AA2rfPHEIA0 fR4io1UNKyPPD1Sxrf8Nx90FzBAyE6sCvVDY3nF3BQjY3mgFSB5Guqr5ZQCXJB5mYPMG 1RmQ== MIME-Version: 1.0 X-Received: by 10.42.49.12 with SMTP id u12mr1074532icf.85.1380907705576; Fri, 04 Oct 2013 10:28:25 -0700 (PDT) Received: by 10.42.67.205 with HTTP; Fri, 4 Oct 2013 10:28:25 -0700 (PDT) In-Reply-To: <20131004094122.0166e406@nehalam.linuxnetplumber.net> References: <20131004094122.0166e406@nehalam.linuxnetplumber.net> Date: Fri, 4 Oct 2013 20:28:25 +0300 Message-ID: From: jigsaw To: Stephen Hemminger Content-Type: text/plain; charset=ISO-8859-1 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Need comment on 82599 TSO X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Oct 2013 17:27:43 -0000 Hi Stephen, Thanks for comment. Pls check the other thread that I just posted. thx & rgds, -Qinglai On Fri, Oct 4, 2013 at 7:41 PM, Stephen Hemminger wrote: > On Fri, 4 Oct 2013 15:44:19 +0300 > jigsaw wrote: > >> Hi, >> >> I'm working on TSO for 82599, and encounter a problem: nowhere to store MSS. >> >> TSO must be aware of MSS, or gso in skb of kernel. >> But MSS nees 16 bits per mbuf. And we have no spare 16 bits in >> rte_mbuf or rte_pktmbuf. >> If we add 16 bit field in rte_pktmbuf, the size of rte_mbuf will be >> doubled, coz currently the size is at the edge of cacheline(32 byte). >> >> I have two solutions here: >> >> 1. Store MSS in struct rte_eth_conf. >> This is actually a very bad idea, coz MSS is not bound to device. >> >> 2. Turn on and off TSO with rte_ctrlmbuf. >> I found that rte_ctrlmbuf is not used at all. So it could be the first >> use case of it. >> With rte_ctrlmbuf we have enough space to store MSS. >> >> Looking forward to your comments. >> >> thx & >> rgds, >> -Qinglai > > The mbuf needs to grow to 2 cache lines. There are other things that need > to be added to mbuf eventually as well. For example the QoS bitfield is > too small when crammed into 32 bits. Ideally the normal small packet > stuff would be in the first cacheline; and the other part of the struct > would have things less likely to be used.