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 86736D4E0; Wed, 11 Jan 2017 09:06:22 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 11 Jan 2017 00:06:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,345,1477983600"; d="scan'208";a="1092614887" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga001.fm.intel.com with ESMTP; 11 Jan 2017 00:06:19 -0800 Date: Wed, 11 Jan 2017 16:08:34 +0800 From: Yuanhan Liu To: Maxime Coquelin Cc: dev@dpdk.org, Tan Jianfeng , Wang Zhihong , Olivier Matz , "Michael S. Tsirkin" , stable@dpdk.org, Thomas Monjalon Message-ID: <20170111080834.GE2402@yliu-dev.sh.intel.com> References: <1484108832-19907-1-git-send-email-yuanhan.liu@linux.intel.com> <1484108832-19907-2-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: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 1/2] net/virtio: fix performance regression due to TSO enabling 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 08:06:23 -0000 On Wed, Jan 11, 2017 at 08:59:28AM +0100, Maxime Coquelin wrote: > >+/* avoid write operation when necessary, to lessen cache issues */ > >+#define ASSIGN_UNLESS_EQUAL(var, val) do { \ > >+ if ((var) != (val)) \ > >+ (var) = (val); \ > >+} while (0) > As it is intended to go in -stable, I think this is fine to have it > only in the driver, but for v17.02, maybe we should have another patch on > top that declares it somewhere so that other libs and drivers can > make use of it? Yes, if it has any other usages :) --yliu