From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) by dpdk.org (Postfix) with ESMTP id 8AD225956 for ; Fri, 4 Oct 2013 14:43:36 +0200 (CEST) Received: by mail-ie0-f176.google.com with SMTP id as1so8982785iec.35 for ; Fri, 04 Oct 2013 05:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=e0F3IVThCfMBly8+ABHLtLHF4L6/cB9hK90eUc+kcKQ=; b=DJ4Z5A/HD6zZXSjM8GQAKeVah5RU0XP1wlmFP3IcABmyt02FyzdQkw7w/fu4EV6964 bToA7VSrQtMclaIMAdPr44WPd1cK6xkOvxHiHRQI18CSyHXQhJYj3wKohvHlGFEbtdWU JIfWb88gRPPSoL5CTna1qM7/1dl1QbtK3WCKVL9gxTrKr/5xHNEodTLCop6YXeYQBJJX VSSxdtUiB3LF7ioVYyjF1MdIRo/Uofju94OVC5tKKDEvFLv7TIOfi8SUmonvqgzn+m1I IEX0qGPTByKgQrIHM/wmPwRPxP16R6P+LxGQWfPwzvK1OkbXpQ8ijjCdXbnMWQhaL4ML 3ixg== MIME-Version: 1.0 X-Received: by 10.50.61.205 with SMTP id s13mr6314407igr.29.1380890659409; Fri, 04 Oct 2013 05:44:19 -0700 (PDT) Received: by 10.42.67.205 with HTTP; Fri, 4 Oct 2013 05:44:19 -0700 (PDT) Date: Fri, 4 Oct 2013 15:44:19 +0300 Message-ID: From: jigsaw To: "dev@dpdk.org" Content-Type: text/plain; charset=ISO-8859-1 Subject: [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 12:43:36 -0000 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