From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH 1/2] net/virtio: fix performance regression due to TSO enabling Date: Wed, 11 Jan 2017 16:08:34 +0800 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 Cc: dev@dpdk.org, Tan Jianfeng , Wang Zhihong , Olivier Matz , "Michael S. Tsirkin" , stable@dpdk.org, Thomas Monjalon To: Maxime Coquelin Return-path: Content-Disposition: inline In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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