From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH][net-next] vxlan: reduce dirty cache line in vxlan_find_mac Date: Sun, 19 Aug 2018 11:11:40 -0700 (PDT) Message-ID: <20180819.111140.2282097352981887816.davem@davemloft.net> References: <1534649768-24074-1-git-send-email-lirongqing@baidu.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org To: lirongqing@baidu.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:33672 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726423AbeHSVYB (ORCPT ); Sun, 19 Aug 2018 17:24:01 -0400 In-Reply-To: <1534649768-24074-1-git-send-email-lirongqing@baidu.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Li RongQing Date: Sun, 19 Aug 2018 11:36:08 +0800 > vxlan_find_mac() unconditionally set f->used for every packet, > this cause a cache miss for every packet, since remote, hlist > and used of vxlan_fdb share the same cacheline. > > With this change f->used is set only if not equal to jiffies > This gives up to 5% speed-up with small packets. > > Signed-off-by: Zhang Yu > Signed-off-by: Li RongQing Please resubmit this when the net-next tree opens back up. Thanks.