From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BF2EF5A44 for ; Wed, 11 Jan 2017 05:25:01 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP; 10 Jan 2017 20:25:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,345,1477983600"; d="scan'208";a="211972484" Received: from yliu-dev.sh.intel.com ([10.239.67.162]) by fmsmga004.fm.intel.com with ESMTP; 10 Jan 2017 20:24:59 -0800 From: Yuanhan Liu To: dev@dpdk.org Cc: Tan Jianfeng , Wang Zhihong , Yuanhan Liu Date: Wed, 11 Jan 2017 12:27:10 +0800 Message-Id: <1484108832-19907-1-git-send-email-yuanhan.liu@linux.intel.com> X-Mailer: git-send-email 1.9.0 Subject: [dpdk-dev] [PATCH 0/2] net/virtio: optimize virtio net header reset X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2017 04:25:02 -0000 This two patches optimized the virtio net header reset when TSO is not actually used (though it could be enabled). The basic idea is to not reset (assign 0) when it's already 0. This could avoid some severe cache issues. Micro benchmarking shows it could boost the performance up to 20+%. --- Yuanhan Liu (2): net/virtio: fix performance regression due to TSO enabling net/virtio: optimize header reset on any layout drivers/net/virtio/virtio_rxtx.c | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) -- 1.9.0