From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: [PATCH 0/2] net/virtio: optimize virtio net header reset Date: Wed, 11 Jan 2017 12:27:10 +0800 Message-ID: <1484108832-19907-1-git-send-email-yuanhan.liu@linux.intel.com> Cc: Tan Jianfeng , Wang Zhihong , Yuanhan Liu To: dev@dpdk.org 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) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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