From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id 9C2755933 for ; Mon, 12 May 2014 16:29:58 +0200 (CEST) Received: by mail-wi0-f177.google.com with SMTP id f8so4592746wiw.4 for ; Mon, 12 May 2014 07:30:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=oVdUM32IkXfqeoy9qVMhV3rlB69M2FtBvNrA3hN66vo=; b=cAEIgaLWiJRM8K+mbIDv0FfJzfCjz8/doSV/vxzAoHSF0Dxaw/txvtiSG0mHWwGxN8 KACYcEZ3Khn6Xvqsp9k9ZJ3JIk3rNt8rCuFLY5OyLyjuHi9NnqJjRfpWc8TianmIqQ5Q GNHz7dU80DsXPdspm74rTI0SmypKdco2oRJuDLM8OiVo/p469X5c2gCWXVpJKPXjMTZP ucytsiDMsoG/rwLg4cb18E92wWSWFvFTYGDN/nO972gXKAvqZixMUZmKu1TyjWw/dE5U YlIOSONjDohs0oo/0NgyA4S7+mXxdo5ykPzjppjOYtxOOWPBQjvHMbGL6/W1MLm7m9ii RK4w== X-Gm-Message-State: ALoCoQlnXOZzJqOmkIqdpo/sCQeF6Pak/93CGlFZPqxJY2frLQJCdlzwtldtFObACbwBKv9+G9l1 X-Received: by 10.194.48.80 with SMTP id j16mr3458050wjn.44.1399905005635; Mon, 12 May 2014 07:30:05 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id vm8sm18154442wjc.27.2014.05.12.07.30.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 May 2014 07:30:04 -0700 (PDT) From: Thomas Monjalon To: Olivier Matz Date: Mon, 12 May 2014 16:30:02 +0200 Message-ID: <2457400.rFcz2m2zim@xps13> Organization: 6WIND User-Agent: KMail/4.13 (Linux/3.14.2-1-ARCH; KDE/4.13.0; x86_64; ; ) In-Reply-To: <1399647038-15095-12-git-send-email-olivier.matz@6wind.com> References: <1399647038-15095-1-git-send-email-olivier.matz@6wind.com> <1399647038-15095-12-git-send-email-olivier.matz@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH RFC 11/11] ixgbe/mbuf: add TSO support 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: Mon, 12 May 2014 14:29:58 -0000 2014-05-09 16:50, Olivier Matz: > Implement TSO (TCP segmentation offload) in ixgbe driver. To delegate > the TCP segmentation to the hardware, the user has to: > > - set the PKT_TX_TCP_SEG flag in mbuf->ol_flags (this flag implies > PKT_TX_IP_CKSUM and PKT_TX_TCP_CKSUM) > - fill the mbuf->hw_offload information: l2_len, l3_len, l4_len, mss > - calculate the pseudo header checksum and set it in the TCP header, > as required when doing hardware TCP checksum offload > - set the IP checksum to 0 > > This approach seems generic enough to be used for other hw/drivers > in the future. Minor note: it would be nice to separate ixgbe support in another patch. Thanks -- Thomas