From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50081.outbound.protection.outlook.com [40.107.5.81]) by dpdk.org (Postfix) with ESMTP id 3C8CE2C6D for ; Sun, 6 May 2018 08:06:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=chOExNJ3UrJKQ5z9g4vEmIRz+ROx8hcmFwv8Bh/7RTY=; b=ZqCvUK8ng2k+YRIPuaxs9gkak0lGUbb9852V/X7PmEyYKgXv3gncholI2QjGsd92FnB9iUZFdWfv8cNVVp4cVEhL8pwcS2gtY7U71MpEDcBFR6NTE7wQiXvRJFTH3t/wEYBOpn9dWoRgTsLlpmL+NPqcY0hucGNyC0a3L4GA8WY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (141.226.120.58) by AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.16; Sun, 6 May 2018 06:06:52 +0000 From: Shahaf Shuler To: bluca@debian.org Cc: stable@dpdk.org, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, adrien.mazarguil@6wind.com Date: Sun, 6 May 2018 09:05:51 +0300 Message-Id: X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 In-Reply-To: References: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [141.226.120.58] X-ClientProxiedBy: LO2P265CA0008.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::20) To AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4422; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 3:UcrO+1kiLZfyPlsYxakT0O5PcmCpk1Ygu7LxqzdniOntx1CdqixCKcs9M6uEQ9LWmd1j18upGIXq97akm9wg9qJOkJMi+4rBIIHKZBMwOhTD/V/hGXCc4as10i0F5eIwNLk0Sgdr+KstN37UENP6GBgQGaZRBzCX322uUfYmt1gSrYaLPwmpPkVOddY/h+T1AeJWOnE7IgnHLzgsbcTrjAGtnv31+Tc/PQ5BsaAp+feBbXfRVXhEWzHF60WEjysT; 25:Pz6nqMNeNKMbOmDZCSXgWGIUL6h5KQGZQLpAErEMEujPWwO4mTh7qL4sEtAtoT/nAn3zO4CToMIMZ6OHcyRzkLlINgaUISBxQ9VARm+LuAz872bYy1nzV7ubnynF/NZ/PBbEj3pOMFEMiesU480wVmDoYWWx7DtIdFIxXB1VeA8e4iERb5a2Sf4I02XUS8Jvo0h2mmJDNXJ5R23A4JGt//Clso6jn7Dl6U/5+gjTJnQB6z4GqpIyW2jfZbcL6eDf3tsvjC1dWRuURqQTrwtM61H55rUTAxG+fbxfDuVfBFAr2rpQYqyvuPKw0rqQEb88n8lubKAWzxEfh6VQQJSFNg==; 31:oxSudDLBZWGDDKCFy7YWbL9l6ANN3kMEcBah+bPgXgV/GkirssOAm/Bzh6uAc7dRWpUzRVUz8QAiB7GB3UwY9gMP2SF4JhSfip+LjF0JnRIknxZxHoAOxt+hfLfFfFL/GpsfwMnEFRmle+LhSs5uBMLQm2x8o9wcEXi3J37wK8izBfNQyo742hkFHcqXIihhBNVjW+fKGwwgeditzcOmu8eOjgm1eg15js5nyMMp4Nc= X-MS-TrafficTypeDiagnostic: AM6PR05MB4422: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 20:eDEmj8GK1X/SsIfCGobUYYmk3qAhfCP2mzITT6AQ1Yp7NB5X+fmMk/XWPQEUFjoFLOpLDC/YkQeSYTBCfto4AFH0gFlY93xTrAMrtvyIvR6eigIXLTZOr+Bsz7pAjQI4S3ZPL4VUdcqf0FMMQuLQz9hD5ddlrnNh19q7FhVkQEkcddQr7E53jGf741FKr+WQ9UxxsJCqjWhnB2PmxnJJlbGJmMqcIPSIM1VDJBp24GkaSY705OoFnCbAchXuAVNItdPV4lcrIjdhKXAo4yklazMzCw5G6J0MeoDiOWIji7gaRLFv0gY3/DXNubyscDpCm0uKkThxDvomhm+X1Jbw2Fv7F45vlGhpxvcXrvQ69V8Jn4kKUJPjmDtKaDftJXDZMo42SlfcOqnN3ctNmKB3IYYOOdcEZuhvmxyArth4j4siwiRTBwYPJdFZ5oBmQ1rTdjYvzoNrG3Rqd48uY/s1uv7RfMvAnqOAUnYlUt1Y3QoLD1bGVCVoR91j33BJ1DXe; 4:+21NscixTbUgsnXEmTZLzuYKA8/Tm4BgtGf+POswzXjmHoT83PON2Z3l0Ciaksj1TKgW7a90EBWb5S4aajNiAjneWwIcIeKRGw9SqcM/XtYWXd/NKL0bjo5T0o+2XWcjGO105wt+wfaMWyOZWhPLwqPH5mNvvLoarMRgpyjWvFXTbdnON+JFL4hEZ0kdKqbYufsE2FxAECbQpqnxrVcVpJwOvXjUOKRJEXdDrm9Nu8kuJIqnRHkI5h0pP6v6kW27saoiRnf6v6ojhxjGq+urf1bGhLjnf6iyJ0BrjjPAnlx+NL9t28LGkDFMamwr0HfIfTNfTIWfGeB3w9CW/PQ9QtEL1qpbBVUcNvNmuLEqgbs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:AM6PR05MB4422; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4422; X-Forefront-PRVS: 06640999CA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39380400002)(396003)(346002)(39860400002)(189003)(199004)(105586002)(8676002)(8936002)(316002)(2351001)(53936002)(86362001)(2361001)(6116002)(3846002)(106356001)(118296001)(66066001)(36756003)(47776003)(81156014)(55016002)(2906002)(2870700001)(50226002)(4326008)(68736007)(305945005)(7736002)(6306002)(81166006)(50466002)(25786009)(486006)(5660300001)(476003)(2616005)(69596002)(16526019)(26005)(386003)(97736004)(956004)(186003)(478600001)(7696005)(52116002)(23676004)(6916009)(966005)(21086003)(446003)(11346002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4422; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTZQUjA1TUI0NDIyOzIzOkkrSjVNSW1pSVNxbFFXY0tKZEFqMm54MDVr?= =?utf-8?B?N2pialJLSDhHY04vM3NCRVlxWXFLTTBQUjF4TWd0OFVTRnhTRS84anVubDVp?= =?utf-8?B?dnlvdnJlWWRmSktLTnptZGxzVW1KMTVvZHg0VitTL042emlQaWJjSEgxUG9z?= =?utf-8?B?bGdBUVI5MTRwM0dJT1BHcDhVMzkzSEJyZ2dHKzhRNzVFd2czUHk2eHpVTUJI?= =?utf-8?B?d01CMHBzc2dnRkoyMjFGclVseHBiK01iZXFKL1M2NUJEa1l4c1cvVEkxa3pF?= =?utf-8?B?RjRDaThrY0RBTVEvd1A4ODlZbm9IRElPbWJLYnlZcjYrZmM5RzQ2bS9vbXRy?= =?utf-8?B?aVFkWC8vbmVXTGRkMXl3dXl5KzFRZG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IFo9e49oxanEIfkTBKe3z8asSR/CUA7Sdd3cFEfb74EBdblMWofgvMFbtFCI3oKjeWAgpB1E3dz5kAl7iSPc3F6eyDcsOZGEmyjgtiQ+Xra+E19951I5bZu1VvL/cxJUO8FUqT605a+nEkd3LxjQruxMl0sY7wRY/C3Pr45Pc2siFf7ya785X4JFw==; 5:PqOYX3TVFcsEFxS3GOkqthvsEh1OYc7CfLdQCV1wtIdX2JuJu9e51SYADHgcGOwH0TubMSrJ3q6kLwjC6Q9YLRcdYr9yyWtjRDDj5xwm28BwheLJI9op3cUOQaylycQq6jJMphm0lp1AVJ+IVdK7fioDTsorLXHvaGSyP/K/ud4=; 24:V9OhGw5QwcMrmshlIAHX/0YgtqrfinHzwqnsuAirxx6Nn7bLEq/GiUlHEikj5XEuY39+56Ztl2mSWkCmbSvEZQ5VrJSPoIcb+cB74Ck+MMo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 7:56fhA/Dfif1O0ZkSrFsD6FY1x48SfOVP41IrgH17RmVQux7viAH1y5W4+vuBVTqUp7xwFFBTD/Dww6cFq51QJXCkyvqti2TB2UTHCCP+/h34kRwA2XRLh4tczLNptjvQjOvN3AqGDI3SFeUhisnwfCr0eeqjMiauZ3hWHADK/+biwcpjiD1zuXv9Ts3j1t92sC71q2kRH1BkpqqDKpDVFCULjowhrgU791oS5/cdYrZ3uBmMaHfC1q3bMdJO9Lrp X-MS-Office365-Filtering-Correlation-Id: 6a6df25f-d008-4c5a-3eb6-08d5b3179076 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2018 06:06:52.6768 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6a6df25f-d008-4c5a-3eb6-08d5b3179076 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4422 Subject: [dpdk-stable] [PATCH 22/33] net/mlx5: fix icc build X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2018 06:06:54 -0000 From: NĂ©lio Laranjeiro [ upstream commit 7b2207afe86df58b571e722dcee14734e91cdb2e ] Remove the second declaration of device_attr [1] inside the loop as well as the query_device_ex() which has already been done outside of the loop. [1] https://dpdk.org/ml/archives/dev/2018-March/091744.html Fixes: 9a761de8ea14 ("net/mlx5: flow counter support") Cc: stable@dpdk.org Reported-by: Ferruh Yigit Signed-off-by: Nelio Laranjeiro Acked-by: Yongseok Koh Tested-by: Ferruh Yigit --- drivers/net/mlx5/mlx5.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index 476bbb5a7f..fc934b8018 100644 --- a/drivers/net/mlx5/mlx5.c +++ b/drivers/net/mlx5/mlx5.c @@ -702,7 +702,6 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, struct rte_eth_dev *eth_dev = NULL; struct ibv_device_attr_ex device_attr_ex; struct ether_addr mac; - struct ibv_device_attr_ex device_attr; struct mlx5_dev_config config = { .cqe_comp = cqe_comp, .mps = mps, @@ -759,7 +758,6 @@ mlx5_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, err = ENODEV; goto port_error; } - mlx5_glue->query_device_ex(ctx, NULL, &device_attr); /* Check port status. */ err = mlx5_glue->query_port(ctx, port, &port_attr); if (err) { -- 2.12.0