From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 441652C69 for ; Fri, 25 Mar 2016 08:10:39 +0100 (CET) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 25 Mar 2016 00:10:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,389,1455004800"; d="scan'208";a="941247835" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.66.49]) by orsmga002.jf.intel.com with ESMTP; 25 Mar 2016 00:10:31 -0700 Date: Fri, 25 Mar 2016 15:13:07 +0800 From: Yuanhan Liu To: dev@dpdk.org Cc: huawei.xie@intel.com, Thomas Monjalon , Ksiadz MarcinX , "Xu, Qian Q" Message-ID: <20160325071307.GA979@yliu-dev.sh.intel.com> References: <1458885694-31111-1-git-send-email-yuanhan.liu@linux.intel.com> <1458885694-31111-3-git-send-email-yuanhan.liu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458885694-31111-3-git-send-email-yuanhan.liu@linux.intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 2/4] vhost: complete TSO settings 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, 25 Mar 2016 07:10:39 -0000 On Fri, Mar 25, 2016 at 02:01:32PM +0800, Yuanhan Liu wrote: > Commit d0cf91303d73 ("vhost: add Tx offload capabilities") has only > done partial settings for enabling TSO, and left the following part > to the application, say vhost-switch example, by commit 9fd72e3cbd29 > ("examples/vhost: add virtio offload"). > > - Setting PKT_TX_IP_CKSUM and ipv4_hdr->hdr_checksum = 0 for IPv4. > > - calculate the pseudo header checksum without taking ip_len in > account, and set it in the TCP header > > Here we complete the left part in vhost side, so that an user (such > as OVS) can do minimal (or even no) changes to get TSO enabled. > > Signed-off-by: Yuanhan Liu ... > + ipv4_hdr->hdr_checksum = 0; Nah.. we can't do that here. This hurts VM2VM case badly. Thanks Qian for letting me be aware of it. --yliu