From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 015CB63DC5 for ; Tue, 5 Dec 2023 16:05:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nMOh+HwG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1663C433C7; Tue, 5 Dec 2023 16:05:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701792350; bh=+Bt5QHGEn+NcmUs3Y/cRZWLtedKhM+nUoyWs0FuXtsQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=nMOh+HwGmpWhom8QIOLR3L45FaRfEUBrv7R6zP7pvTSwBAmBjQxiK6wiA3fWoNUfM Arekj+Y902uHdPXEEy29YayaljcaXU5YluEvkblu9YiLhZ/EauJ/GZi4+THQZPGNXC v2XqVpahFZ6NGuZbNIu92dMyH5gWIoV9+DByYzHUX7RM5/zFNoJlw1lzeXcdv5RuTR XawP5tafKhuBkjgZ6gR+zKMidbQuu3c2IqboM60xF26rL3jhfckuET7QgwUr2WQhEY jNWoFgeUUCvGKHjrh3vjcSEmTlCwHhS9AyMoNcDfvqB5JVlTA2wdybYnTDV2lJFJ8u gkxTX5zV0OTNQ== Message-ID: <074c0c5c-3336-416e-aad4-dc1b4a442edd@kernel.org> Date: Tue, 5 Dec 2023 09:05:49 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 net-next 1/2] net-device: reorganize net_device fast path variables Content-Language: en-US To: Coco Li , Jakub Kicinski , Eric Dumazet , Neal Cardwell , Mubashir Adnan Qureshi , Paolo Abeni , Andrew Lunn , Jonathan Corbet , Daniel Borkmann Cc: netdev@vger.kernel.org, Chao Wu , Wei Wang , Pradeep Nemavat References: <20231204201232.520025-1-lixiaoyan@google.com> <20231204201232.520025-2-lixiaoyan@google.com> From: David Ahern In-Reply-To: <20231204201232.520025-2-lixiaoyan@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/4/23 1:12 PM, Coco Li wrote: > Reorganize fast path variables on tx-txrx-rx order > Fastpath variables end after npinfo. > > Below data generated with pahole on x86 architecture. > > Fast path variables span cache lines before change: 12 > Fast path variables span cache lines after change: 4 > > Suggested-by: Eric Dumazet > Signed-off-by: Coco Li > --- > include/linux/netdevice.h | 117 +++++++++++++++++++++----------------- > net/core/dev.c | 56 ++++++++++++++++++ > 2 files changed, 120 insertions(+), 53 deletions(-) > Reviewed-by: David Ahern