Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbdFFPDf (ORCPT ); Tue, 6 Jun 2017 11:03:35 -0400 Received: from mail-bn3nam01on0066.outbound.protection.outlook.com ([104.47.33.66]:19424 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751433AbdFFPAr (ORCPT ); Tue, 6 Jun 2017 11:00:47 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Ioana Radulescu To: CC: , , , , , , , , Subject: [PATCH 15/18] staging: fsl-dpaa2/eth: Reorder priv fields Date: Tue, 6 Jun 2017 10:00:38 -0500 Message-ID: <20170606150041.10955-16-ruxandra.radulescu@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> References: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131412348454230166;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39860400002)(39840400002)(39380400002)(39450400003)(39850400002)(39400400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(1076002)(48376002)(39060400002)(5003940100001)(8936002)(47776003)(50466002)(105606002)(50226002)(81166006)(8676002)(189998001)(5660300001)(86362001)(7416002)(50986999)(76176999)(85426001)(305945005)(2906002)(33646002)(77096006)(4326008)(106466001)(2351001)(110136004)(38730400002)(498600001)(104016004)(36756003)(356003)(8656002)(2950100002)(6916009)(6666003)(53936002)(54906002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1PR03MB171;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;MX:1;A:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD018;1:FjVfGsHBJ1WuRu79Rzw+jRehLKQLWimaTLKEJ3n8J444pFNHif4APqm5ADhbYk4GQXQdUtJqyx3cRBeFlEpPj8FBr3dP8Qkcw7OsbJiHetW78lYDnYvOemY1+e3qnnOsDGJmMJmDL6T18wonNUsxupE3qwZc+2z0TD6l8ROZYm0cmALTFsWW5jWuoA6yy7Rpp27zYDGVR/MZLrlOe5tePFQkFfutvQ4DYhi4+MbDJtR4xnWOheSyRGK8xdzmjgw7x3GUi+Ic0r4tPpGsECr3sn3tr2jQ6umm2V7P+YzVQfBrVFbztoljuCwmYsIBEO/zHfMatcVtGhPXwDrZRgVOkRb4WW49/uidsetwiWEpkJFajvmQR2VgZ81M9fE+YmAMRvTNBL/OGCqo7aJw0pfaWyKmVhBFTwGc1l1v+wvfmWvF5qb+IAbxovSAbpMYwnlCPyTlnrG4kZT98WrvTeZ/W8ZmsrZYfhd1zDX8upgz3lky8Eofh9or58yteg1asRt4m0fzEMMoEQerwzD0MtqwfudbnEnAmZVnwhO68vdHJENHF44wMClpvee532Kp0Ame6cogD1H4RVZjjrGCOscbvOBFBpZvUJTnU9BMdaiCKCHZp5v1H8moFs/GNbbKWCEfS2g5BhhlditrQXTEn9+voAVasj6mY2UDe3ATD+hp9iWvn5U/m1b/ygrmexdLZYp0 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PR03MB171: X-MS-Office365-Filtering-Correlation-Id: d19651ec-2cac-4071-7734-08d4aceccf2b X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BN1PR03MB171; X-Microsoft-Exchange-Diagnostics: 1;BN1PR03MB171;3:58DQfKWQtdiY5wOVuuPkT7cND8PS47QGBF0qQSG3B4e07PjQ3tACeIAt/ewvjI/JlIXQcII3tHYordbH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0Fwq5aDRa/QGYbIbGtpzqkp0BVJbx0tCtTbEtKIpKQBXNkA001wCmsWoswbEeJW706lFeyAZ+/CK72m+FiZUHZySqc8F8S6/w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123561025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123565025)(20161123556025)(20161123559100)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN1PR03MB171;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN1PR03MB171; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1PR03MB171;4:NKJLC5T8EoRDXg6mpAfDd86828Wdj96SKB0GFwx/AlW?= =?us-ascii?Q?LzHIOEiXQUskm8ocqizpAqz/QlmIDaftwgUaePPgSAEUQzHrYgkcor2HCqjb?= =?us-ascii?Q?lCmcHxm9bzfIlVApgzURFSEEPMWP7EVMYp66R18rh2Qg4a7mSLtrGvu5yW02?= =?us-ascii?Q?I42izqf6Xz9bivt9LAg04mW52Zs2jFdBDCWey7TNbKhWlCj967OHFT/3RIwW?= =?us-ascii?Q?xRdepdl2EZKMpGRQf5fOTaMvsMJNu/XIaDzflRRwBzUfD6xQ3qcHYE6ORvbc?= =?us-ascii?Q?xpNmz+3r5fyjKEZZZQXp1G9wfedBf2l0IqQPpmXuY1Rk2udBwdyZtQW9FUMn?= =?us-ascii?Q?Eaoo0LTfWXLnIM2yxYX4vFA0LYZpZBJyKLTWw8MGE5cCsISAGX4J5Ry64vWp?= =?us-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ront-PRVS: 033054F29A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1PR03MB171;23:geiVS+h6A+ezPgL0WJxTD4LxCD95RSaSZifZaSmIUU?= =?us-ascii?Q?bskvU5OjTWamrPQ/ZvReunraZConWGg+IlBOQnkAW6o6y7rmCL6TsRuTILBr?= =?us-ascii?Q?q4+uIw/OCnYCqnPwH4A+f7N0Xy8ZbyeQCOlPcQ56Rs62bh3tC4FyoLAaBzFT?= =?us-ascii?Q?0ydGgmYZ4WGJAOOxKtd/YRY14ZgTLanJpxXc3f90QcYt3YPCNNJZs5qZAuI9?= =?us-ascii?Q?aosIzlUL/jQis3u9EvkWYay/LuH20EYf96ZMDaNofEcCftNg9i7dTiRY8rBd?= =?us-ascii?Q?g1zSGeyfcQZaP2XdiY8YMFE76TILy19V74PU+gM4+MHjpvtx1/vixfMkeFOh?= =?us-ascii?Q?yLYPZrx3rhrgfwdbfTskxmFZ0s3YyvOGM3K1g61z6kRWUA5rqLu6RfShcbyu?= =?us-ascii?Q?CscxLcD311zhf8YBLVLx5Dw6SPCKY7H0THDBoyEiJvNylKIgQNeRGf83xWKY?= =?us-ascii?Q?NJkkR89cygB7yY8qRLWTl7CHNHSoWXEKmFuiY+m5oKsT9P4OLrjTSrKzQz3N?= =?us-ascii?Q?3jnbHZwRH04GMYFTW2OFfXJekeC7Nc56/0eQJmruMtQDxq2/AgPEFhegJCNG?= =?us-ascii?Q?EHDVqAsXwkNG1zW5BGa+iNfpAQT+4txTxQC6Xu8ArZf+mEJcICZ4yyFAjs8x?= =?us-ascii?Q?qmSLfy0TJSLytiFqDQUV8aIdLBew+alljLXxsIyxAhrotUi9EjhFGk852Epl?= =?us-ascii?Q?1/0DSzD7863/R9jN8LXTS4LEoIW9ZXBPsskvDYotFStKJZql1Tp1R+ihnQOm?= =?us-ascii?Q?ClE0GSp3B9ObMijuGVbJdx2UsmpLfXvIErH2DRBebovdfPjCYAdjU2jn8Egn?= =?us-ascii?Q?z2xlOgro4y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5LlWvrtjatfKU5Ar/fPbe488E/HivzI+LFkIWls4wT7VWCnWvDwzoZ7cCXiqXiOSIcEWfi7DxtoQUDGKJlLifT2Dl3MA7fRL2zZumIxtOvMZZtEQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 15:00:45.2202 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR03MB171 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1969 Lines: 64 Reorder fields in the device's private structure such that the ones most used on the hotpath are at the beginning of the structure. This brings a small performance improvement due to better cache usage. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h index 886a0681fee1..c760e9b77e22 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.h @@ -290,34 +290,30 @@ struct dpaa2_eth_hash_fields { /* Driver private data */ struct dpaa2_eth_priv { struct net_device *net_dev; + /* Standard statistics */ + struct rtnl_link_stats64 __percpu *percpu_stats; + /* Extra stats, in addition to the ones known by the kernel */ + struct dpaa2_eth_drv_stats __percpu *percpu_extras; + struct iommu_domain *iommu_domain; + u16 tx_data_offset; + u16 bpid; + u16 tx_qdid; u8 num_fqs; - struct dpaa2_eth_fq fq[DPAA2_ETH_MAX_QUEUES]; - u8 num_channels; + struct dpaa2_eth_fq fq[DPAA2_ETH_MAX_QUEUES]; struct dpaa2_eth_channel *channel[DPAA2_ETH_MAX_DPCONS]; + struct fsl_mc_io *mc_io; + u16 mc_token; struct dpni_attr dpni_attrs; - u16 tx_data_offset; - struct fsl_mc_device *dpbp_dev; - u16 bpid; - struct iommu_domain *iommu_domain; - u16 tx_qdid; - struct fsl_mc_io *mc_io; /* Cores which have an affine DPIO/DPCON. * This is the cpu set on which Rx and Tx conf frames are processed */ struct cpumask dpio_cpumask; - /* Standard statistics */ - struct rtnl_link_stats64 __percpu *percpu_stats; - /* Extra stats, in addition to the ones known by the kernel */ - struct dpaa2_eth_drv_stats __percpu *percpu_extras; - - u16 mc_token; - struct dpni_link_state link_state; bool do_link_poll; struct task_struct *poll_thread; -- 2.11.0