From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0093.outbound.protection.outlook.com [65.55.169.93]) by dpdk.org (Postfix) with ESMTP id 5A15B591F for ; Tue, 3 May 2016 14:42:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-caviumnetworks-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qgQgO/PbSm9vox3CQUEjHkcctsslsvrJMfBO0KUzI08=; b=lYhLl6SgKe/0aeo6wNgBD7r1Cw1Pd7vgfIq5AZ8HdrtzinjEq5T5x7c052I+yPf3WrYX/2fvCniWpe0eV33nIr6s77H2hnobn2kJ6CCNOVVjXM842E4t+0xzQc23SzEHW8KKE4nfyakQg8vHYQzNy1gKptB/c+L1nqOMuo0dr6k= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.caveonetworks.com (111.93.218.67) by BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) with Microsoft SMTP Server (TLS) id 15.1.477.8; Tue, 3 May 2016 12:42:36 +0000 From: Jerin Jacob To: CC: , , Jerin Jacob Date: Tue, 3 May 2016 18:12:07 +0530 Message-ID: <1462279327-9876-1-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1462176465-21562-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1462176465-21562-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0028.INDPRD01.PROD.OUTLOOK.COM (10.163.198.163) To BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) X-MS-Office365-Filtering-Correlation-Id: cd4603db-7fa6-45cc-7b7c-08d37350687b X-Microsoft-Exchange-Diagnostics: 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pyAHOD2nao3qqOrvpOnKJ14WmwvbXcVHvVDcKgxUhKz3RFONwWSywzZ6Lw3wH2ZBs7Y/n2u9MLfBUCWImc8Ch3nYKlIFvneJd+JvKf1PT/zxW4j/cy/zYY5zF8fNrGxZe9WyO6U8iy51f4SYrrp+nfg== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 20:0ugqfmbwt0B04OTAdGyvgePxfvyYQVtZdczLwZK6Mhccm2gL1TuUOCSwLbV0QraATzSuplO6kt53W6tnJGwTGADv+CEV6yntCdnHHpD6sKBlYj2UMOESNYlW5d0IC74tgLwA3pzD3dZR6gm7kYFYve/Ggt1qKxaWkPNmOVrM5lMsLX+/VbGcgIZKxJqZP2pv4rBbwxb88PujV7UMGt3bNjLnhTogHHkCccphVvhelS+qM0uEYnyiqgSSCQ/T8p1oOfLtLnmz46cWmwEKKhyOOJmJapPHTukc/dA78wEnYt4KibJtBeN/Sxm18Rodswg4aCQWGStnug+Ic92GWBdqCynuvMWbQd1gZvruwXzK4W0ZCZbf6jw9VlOqFi0/HSWKbMCMKxruJDM3KAPnQeVEd/w/010r0cUOk1W6RagWiVy/hS1xOZ8isEpVtStvUxyfH1d0/3yW9Bxwc4L3oppNUo4n4GmaQ3sKYQ85L4zk9SvgNjd73/vgegRq8ljmcaYnzqK70Ko9ZhnaZzVhQv2EO6DYkMljN9DNBISeJ28bW7XuT4kWDqWsdKKuMrslwYvCzyvy1i94StWWE0hAF5+LVbnQLCRNBJNo/bQi/Ji73Oc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(9101521096)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BY1PR0701MB1724; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 4:leXLNVdq4b8vCT3ngB5W/keN11DCtOPPMRkBmPec4Dl3UTKmsMjHb7v8ueYpi3xl2K5Aj4GQZUsD9OGnvr68RlDrEZDei+SkWh9OQt1ybQJR+6p+V9kCGV3nBEkG3O+bCxY0HaVceh3H6Nmi3S38z2lKt0onNutsibl5PeerTUZLdkXIiPfn9Hp/RviYebBI9hUGHgRBkQ3aQQ8Yib8wxz8+ch13QUYUu+60vE0VhqiOhfba54MSuZU0ghGt5iWEDGGDgh2jZ+Zd5XAMMr+nwLYBP1+U/Du5Lvne6PYtLQq/gMAmuQiohGqAk/a4u0ERDyzV0MpA253aq5Kk9FM5u/ammMQ/zMY4UA+lkKhHnrRZvlhm9LH7XD6MqOo42cCmHrnWSz5r9SG6UIGG+AjNfQ== X-Forefront-PRVS: 0931CB1479 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(81166005)(110136002)(107886002)(3846002)(5008740100001)(6116002)(50986999)(76176999)(189998001)(15975445007)(19580395003)(2950100001)(77096005)(19580405001)(36756003)(586003)(92566002)(4001430100002)(5890100001)(33646002)(76506005)(42186005)(5009440100003)(47776003)(53416004)(15395725005)(86362001)(5004730100002)(50466002)(48376002)(229853001)(2351001)(5003940100001)(4326007)(2906002)(50226002)(66066001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1724; H:localhost.caveonetworks.com; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1724; 23:CVw6Kmxz6KrkQIW7C9QZRPs9AyUwbbF+0Z3jWnC?= =?us-ascii?Q?D193PHvRPLXD9MCmD3Z3cHLh2uo7UfLwuatoVJiVxDtmavOUuESCEIMbX57U?= =?us-ascii?Q?iPB8q/AmSt9r+mzpNPzRC3QXL1OXq+GRdvK3rGVJLmZaz21lBQJ1IbkiUGNW?= =?us-ascii?Q?P38qEOjKyIqJP/yAL4QLqB7Mqd4fwkhRz88Y5NioTkM1YJ+C/9plcbnaQZ2N?= =?us-ascii?Q?edIzzQzhhC9J8+Ce/eKqCvrLxT7TdcIfJMcLVopD0rF3Wr05SUnXSzLBotqX?= =?us-ascii?Q?RS/9bje/Eef8SyARH/Gz5n+RUn1rS8yfV75+gynETnXTBFV1jVXGWvHuurmR?= =?us-ascii?Q?8xs7gQC0SV2vmcJCukZa5/nRkHYFNuVoZZJ/uDGeR3p+ctRqpgqr3FDPfCKL?= =?us-ascii?Q?M5/hzzkTu1uXMFn68g4pVG+e2mgKTG5kLqs12iHUiG1qoIZQ/n2HRWFIozV2?= =?us-ascii?Q?nw/Z5ib7wMw4XonBHBileLwSGRmHe0w2FsTxYdSfWHABH+VV9HW9Dhqq4cxV?= =?us-ascii?Q?bgMndT8SnI082TyGqDORydBn5tB9tNboEMJz2dSH3yGPSuc5fy5xOY/jQ+Wx?= =?us-ascii?Q?oRLRXmKSvZ78a9iMfbo00Sf6nKrz0ralxYpxgX3N66lzOy/AP037hguIdxEl?= =?us-ascii?Q?N9m2vG6D4ungN93fGGl5t6pEjrnTWMyITc9pcInrTXIFk/LGtmqao/R6C+o6?= =?us-ascii?Q?rFnzkGkZN8yWDxVinNHIV6HMnsBMEi3s78v/3G7gFBDhLpdiG1b4O8iGXvTo?= =?us-ascii?Q?1Vyd6Qw8DewxvhYVLoswBIdXY8iqPJZLmpjnAbvP773lOH35TACvMEpZ/BtY?= =?us-ascii?Q?Dsi0PbwV0r7slQMWrylibr1Vfhod471ChU3YFsdlsAHsl2TJkB6spvP5Diw3?= =?us-ascii?Q?VzcKMos1CJcs3VCMyTxu/00imtiXWDlkiy5IN6mZuLKyZtivvHrYPgx4UNZP?= =?us-ascii?Q?Gho93BjcEX25Vg26BcjgoEIQWr+EzKdV02csqZIxBwHuX6gCkT7yghBoNQHo?= =?us-ascii?Q?8nMWZfdbCBudbgP30AFlKdEQ2Py31GabmaKr11s47u9d9cYV27XReUOs8paz?= =?us-ascii?Q?uysFC/hDxY9twKfR4z9swcd9loh7j55s3C+fSB8opUAQel6+LFF+1bpi/0I+?= =?us-ascii?Q?9zDt7bcmRWNk=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 5:Z3lJPNn4OtBvkH2sYrbN+klkkLbTw1916w1nCC1t6BwUDVZvN7jIlUYR51SL/pb1hEjwZBKoaVLeqomFNwaImlKqgXXs8Eb8uMxBi9/ZmgQMUYdajhzfV2qnBaTGGEYDdfifYglpu1S42oxrvaDeew==; 24:2HX51uuibpbaRSPKCclLsGTxWTslxCS/Sj0KiANhevVASAZp3lN6lvcVb64HH3QHytuXus1lCSyWe+JckewtlRIX8cBLtH4A+AmeC2rZHM8=; 7:QrmWMfcRNYsqhypASjPgD/HJBp2+3gjf1UzMrkKmoJuXbMmMUnM0i/g5nVffD6eMxmYaijq+dtfhziOhQh+2rqMKMHMVgwNwmHQNk0oD5ITqGIIWgdPKc8y/F4HwudTJDRXUqDqLsJZRHmC0J3iQPA87L32w5pmOsosPBgnoxJeoT22AyOYzVVWBM1GwPZ9w SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2016 12:42:36.1872 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1724 Subject: [dpdk-dev] [PATCH v2] ethdev: make struct rte_eth_dev cache aligned X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2016 12:42:39 -0000 Elements of struct rte_eth_dev used in the fast path. Make struct rte_eth_dev cache aligned to avoid the cases where rte_eth_dev elements share the same cache line with other structures. Signed-off-by: Jerin Jacob --- v2: Remove __rte_cache_aligned from rte_eth_devices and keep it only at struct rte_eth_dev definition as suggested by Bruce http://dpdk.org/dev/patchwork/patch/12328/ --- lib/librte_ether/rte_ethdev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 2757510..48f14d5 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -1615,7 +1615,7 @@ struct rte_eth_dev { struct rte_eth_rxtx_callback *pre_tx_burst_cbs[RTE_MAX_QUEUES_PER_PORT]; uint8_t attached; /**< Flag indicating the port is attached */ enum rte_eth_dev_type dev_type; /**< Flag indicating the device type */ -}; +} __rte_cache_aligned; struct rte_eth_dev_sriov { uint8_t active; /**< SRIOV is active with 16, 32 or 64 pools */ -- 2.1.0