Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp929169ybp; Thu, 17 Oct 2019 05:45:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxEDkRiAc5vB3sTxKD3cStG1qeQWDRQoj9TAsLto3rkLdphw1XYcPYKptDadoUav4bgi2f7 X-Received: by 2002:a05:6402:28c:: with SMTP id l12mr3615394edv.145.1571316346867; Thu, 17 Oct 2019 05:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571316346; cv=none; d=google.com; s=arc-20160816; b=NYNf2Ai+zhgA/619GhKuMjZh5rj9/OADKM61PdvZJ1CEZUrY6JGHuaRXNec+51Ys7H +5YtXHLRBh4JlhLbfujf/nnsKyj3YcmBCWjz5Wfvt714xTV8fnKcMFsxIHAzhF9p0q87 lHLp7DOoqW9Hn+6E4vyfsPm4Y/osoWDvr6JBzRBiMxxVkg9CdLnJ2zExfg2JJsphesze 08lvSejDiBAhy1qiLf03Rb3jWgeHVz4k1FxFVHl/BNJ91nQfK329BLc/kL/HF2EORRtU +46A2B5C9oMCFToueOa2+GDApb8MoH5bQBlydND8KN5yN1KunH0Hw+Khz1KkWvZ8j2CG gyWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=0cNywFNADhUI1kRZtOJYpH0zXDmwDMxvQ8ELH46NO6Q=; b=cdsPhPyEMadkPHEmq+XtA1XZDpFhiar6z04XMrC9d6dOK6KXtE3frFPSnVtQ1oVInp ATUPqBrJaYSCwjXMYLwhFBWDhv/aWRthym97kXg+jYZKmdA7soVMc5uf0PV2vzwIgto0 XokwFHSXIi8Md67mVfYThNhbTZvsL5IXmP7SUjc6bQkYf0hPYSpc7ACGiE2Wq9194Hpb xCehYrqLlGA3aX+TIDVllv7W/rBDZ5B24wGU9cqA0pZgadVcNrkg16WuOyW97+/WHdmk XQzYH19VgiOPa1aBKAMoPuYEQXNouH8yWnf313XGhIa8ub+l9t5PanBM2ntbgT6g/PGp X+Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=UkDzwlkB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r24si1279174ejs.166.2019.10.17.05.45.23; Thu, 17 Oct 2019 05:45:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=UkDzwlkB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404848AbfJPRK3 (ORCPT + 99 others); Wed, 16 Oct 2019 13:10:29 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:42578 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406453AbfJPRK2 (ORCPT ); Wed, 16 Oct 2019 13:10:28 -0400 Received: by mail-pg1-f195.google.com with SMTP id f14so9541404pgi.9 for ; Wed, 16 Oct 2019 10:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=0cNywFNADhUI1kRZtOJYpH0zXDmwDMxvQ8ELH46NO6Q=; b=UkDzwlkBo8OxWsWkSSsM66G5Tk3Xp4HPoJ0xHC3/biSsKCEmqEmYg79o6SAGQn5jzx CaG+uZzeEI5fkMpGY+A97dgs2n4KkNfXVbia3hkFrbv2fB74wdMJevcIQDqRgY8nqbTo 62QB/n/vspsIOi9R5YHoK5hn1LtOoXoEiOr19iGFUXip1kNS+v9gh9BsMRic9lDOt8Ik ZRHgD6wnA2g2TV0XWgiQfJS2+R25imNWGL2PhGtBd3OXwPvGMNvq8KT9UJhLD/d0K0Ge F6GdEUtB819mcEcYFknS9xnVXzPqmKPBoO2YUCKgPLgxqgP9b8Fr0A9eZyiv5N+hPcKb 2qyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=0cNywFNADhUI1kRZtOJYpH0zXDmwDMxvQ8ELH46NO6Q=; b=bZpENTzryq7zSEsg9W/MshqrQPoR7312dgj/YjP70K+2JkgunFXpa25GjH3Cw9fXQc QkB3n3zttF6U0Sy72VTsCAFlWJklzII5lgdXMNvsX18YWeC7tQuj72Wuwu8YFc2pTTyy IYGJeEZprTkY1dS18TWzKyuiI2L7KOzo8ZDAUP2/hvNZEl4ePzBhaORKDDSBPxVTTmrE bjSsJF0QCT2LvRh6TzpbtW3lUIofrY7EZAjlrN9QuaTOiYN9DGCBrhHDcrykuJy+N1fT lXWf0oN6MjJ5t5aZufir1j/+B26AUJgHdlL1Q1verg7nOXpk/wdwFY0R+PsdcTTBo3rP ZRng== X-Gm-Message-State: APjAAAXYLngR49ys3l6vPF7h9URfoPYSRxDckFVBwoHITAMn9+Av1dQX VNMI2ER6VBuFPteJO2SKiqnuhQ== X-Received: by 2002:a63:9d49:: with SMTP id i70mr28109095pgd.120.1571245827703; Wed, 16 Oct 2019 10:10:27 -0700 (PDT) Received: from cakuba.netronome.com (c-73-202-202-92.hsd1.ca.comcast.net. [73.202.202.92]) by smtp.gmail.com with ESMTPSA id w6sm30670953pfj.17.2019.10.16.10.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2019 10:10:27 -0700 (PDT) Date: Wed, 16 Oct 2019 10:10:23 -0700 From: Jakub Kicinski To: Huazhong Tan Cc: , , , , , , Yunsheng Lin Subject: Re: [PATCH net-next 08/12] net: hns3: introduce ring_to_netdev() in enet module Message-ID: <20191016101023.21915feb@cakuba.netronome.com> In-Reply-To: <1571210231-29154-9-git-send-email-tanhuazhong@huawei.com> References: <1571210231-29154-1-git-send-email-tanhuazhong@huawei.com> <1571210231-29154-9-git-send-email-tanhuazhong@huawei.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Oct 2019 15:17:07 +0800, Huazhong Tan wrote: > From: Yunsheng Lin > > There are a few places that need to access the netdev of a ring > through ring->tqp->handle->kinfo.netdev, and ring->tqp is a struct > which both in enet and hclge modules, it is better to use the > struct that is only used in enet module. > > This patch adds the ring_to_netdev() to access the netdev of ring > through ring->tqp_vector->napi.dev. > > Also, struct hns3_enet_ring is a frequently used in critical data > path, so make it cacheline aligned as struct hns3_enet_tqp_vector. That part seems logically separate, should it be a separate patch? > Signed-off-by: Yunsheng Lin > Signed-off-by: Huazhong Tan