From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id A42D4378B for ; Fri, 25 Mar 2016 06:59:00 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 24 Mar 2016 22:58:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,388,1455004800"; d="scan'208";a="675375609" Received: from yliu-dev.sh.intel.com ([10.239.66.49]) by FMSMGA003.fm.intel.com with ESMTP; 24 Mar 2016 22:58:58 -0700 From: Yuanhan Liu To: dev@dpdk.org Cc: huawei.xie@intel.com, Thomas Monjalon , Ksiadz MarcinX , Yuanhan Liu Date: Fri, 25 Mar 2016 14:01:30 +0800 Message-Id: <1458885694-31111-1-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 Subject: [dpdk-dev] [PATCH 0/4] vhost vlan tag and TSO fixes/cleanups 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 05:59:01 -0000 Ksiadz reported that TSO won't work for OVS with NIC, even with those similar changes from the commit 9fd72e3cbd29 ("examples/vhost: add virtio offload"). This gives me another chance to look at the TSO implementation a bit deeper, and then came up with this small patch set, which moves some left settings for enabling TSO to vhost lib. With this patch set, an application can do mimimal (or even no) changes to get the TSO capability. Take OVS as example, it just need set MTU correctly and set the NIC port txq_flags properly to enable NIC offloading ability, which is disabled by default for some drivers. Patch 4 is a vlan tag fix reported by Qian. --- Yuanhan Liu (4): vhost: remove unnecessary return vhost: complete TSO settings examples/vhost: remove unnessary settings for TX offload examples/vhost: fix wrong vlan_tag examples/vhost/main.c | 64 +++---------------------------------------- lib/librte_vhost/vhost_rxtx.c | 49 +++++++++++++++++++++++---------- 2 files changed, 39 insertions(+), 74 deletions(-) -- 1.9.0