Received: by 10.192.165.148 with SMTP id m20csp466733imm; Wed, 9 May 2018 16:20:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq5yXKtFFnufFSNIM5ajHLHTUIYznOL/BYdnG9bb6vLP2DQ059yzHCAXSj26VQ2Bj+csfAw X-Received: by 10.98.59.203 with SMTP id w72mr45625736pfj.129.1525908028461; Wed, 09 May 2018 16:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525908028; cv=none; d=google.com; s=arc-20160816; b=bmRAd0rYMp8zR2nrZNPRFvcd1i+GxAHIgzx3D09xXkFpSyeA5v0R8aENpfjR6XjIIp FVajLH/83gcL+MQXKOFG7lbrjIaftuuYn60Qi3rIhxwUdUw9HmUGioGu9Y/9zad/XriP T+85qZH/umfAEa54hD2uYP9bdoP1bNs872t6bND/XkMuZMuidCxhDfXqhOUVbhASiE6L m5brXT4qD6RtBtjTdSvksh/gj54RMwWkNodXKjQIxx3BIQ1hPGhpqyRkvS7b7xrCY3oY djI6W2+EDsYYahzl+6hS+YzD3271pbxYONE1MNgIX9rm5na8ZPHlN/xm5hS8Rn44UyFZ QehQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=7xOZbSxIu0RmhUrmhjNJGKdLsqp7OGVuXT7Rin8ow9M=; b=UJSMEvGW5HxSclLKm3Grrn3VRBizMQWwWLgObk7K5CUU24WEtcxlyhhP7+mWYFmy9q yH3T5N/lo0dYsyk3aVW9vjuNtMCBuyEMS2KxMN0bkVpbl4UhJzFhXCPKz5RK8v/IF3sO ATJpodFbwv5rddKtr8O15CYsB95VbqOJeAvETeY3zLh4s+RAs8M2pkhZGzjiHMw4so5s xwC45zwgmXPcgo4nwoDhZq4Dlcba7E74alEidBCKPiNcwtEJ1T5Dzx1uyoWYWU0P9zUh nQ1KUHkuah25vn1nkGLTxSfSdxfyZUKuYO51V9qgDx25SVrgIz/pwDH8/rw3vHle1cXC 4ocw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Mellanox.com header.s=selector1 header.b=v+9aRqWl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4-v6si11321416pls.407.2018.05.09.16.20.14; Wed, 09 May 2018 16:20:28 -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=@Mellanox.com header.s=selector1 header.b=v+9aRqWl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965988AbeEIXTm (ORCPT + 99 others); Wed, 9 May 2018 19:19:42 -0400 Received: from mail-ve1eur01on0086.outbound.protection.outlook.com ([104.47.1.86]:58341 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965902AbeEIXTk (ORCPT ); Wed, 9 May 2018 19:19:40 -0400 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=7xOZbSxIu0RmhUrmhjNJGKdLsqp7OGVuXT7Rin8ow9M=; b=v+9aRqWl5ZDxMd6NxYAjcPlgzrNL0SCGxV8Uluaa8oxVN0hz2h1W1fguwNA7rEe7UP8eg18wBeja645K8+A54FcCxczjhZz7NkOPaSixXCudQDXdxhDwUYdbDrJysHTzHxTv6h3TTPOlBp70Wd78Z6TknASpK3sv9SKgMyQQWsg= Received: from DB6PR0502MB2901.eurprd05.prod.outlook.com (10.172.249.140) by DB6PR0502MB2903.eurprd05.prod.outlook.com (10.172.249.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.19; Wed, 9 May 2018 23:19:36 +0000 Received: from DB6PR0502MB2901.eurprd05.prod.outlook.com ([fe80::dd73:6609:a95a:e02b]) by DB6PR0502MB2901.eurprd05.prod.outlook.com ([fe80::dd73:6609:a95a:e02b%17]) with mapi id 15.20.0735.018; Wed, 9 May 2018 23:19:36 +0000 From: Saeed Mahameed To: "linux@roeck-us.net" , "tglx@linutronix.de" CC: "netdev@vger.kernel.org" , Max Gurtovoy , Israel Rukshin , "linux-rdma@vger.kernel.org" , Matan Barak , "dledford@redhat.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] net/mlx5: Fix mlx5_get_vector_affinity function Thread-Topic: [PATCH] net/mlx5: Fix mlx5_get_vector_affinity function Thread-Index: AQHT5H7Lky6HIhVp9kiUqFhSa8f8sqQiUAwAgAWucgCAABDkgA== Date: Wed, 9 May 2018 23:19:36 +0000 Message-ID: <1525907973.19800.1.camel@mellanox.com> References: <20180505143838.GA12621@roeck-us.net> <20180509221906.GA7548@roeck-us.net> In-Reply-To: <20180509221906.GA7548@roeck-us.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.26.6 (3.26.6-1.fc27) authentication-results: spf=none (sender IP is ) smtp.mailfrom=saeedm@mellanox.com; x-originating-ip: [2601:647:4000:4586::50a1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB6PR0502MB2903;7:uUA8vPi6LKGMnXl496rimFTthIAErObguFuZ55TnKr6TsT1QP11cF0Q84xCS2SO2u/U/UVjGxLUdtGtEbHc9oT43tTjF//ExUDLWOX1LlUEzjcRFrMVUaKDafumSluQlUBWENCiKo53J2T9b3BvNUDLBu4tNfNXUJvRJwf+rpzaIS+jxEBy3pjzMndam0Lfrz0Blzo9w8qvUazZh0PmVwlO6YSjQYA0H9H0VWHztoA0wj8G+FZAGirblq84y3Nom x-ms-exchange-antispam-srfa-diagnostics: SOS; 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:DB6PR0502MB2903; x-ms-traffictypediagnostic: DB6PR0502MB2903: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011);SRVR:DB6PR0502MB2903;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0502MB2903; x-forefront-prvs: 0667289FF8 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(376002)(39380400002)(346002)(396003)(366004)(199004)(189003)(377424004)(102836004)(2900100001)(106356001)(11346002)(2501003)(446003)(476003)(53936002)(54906003)(97736004)(316002)(110136005)(5660300001)(6506007)(186003)(46003)(76176011)(99286004)(86362001)(25786009)(5250100002)(15760500003)(486006)(2616005)(3280700002)(81166006)(68736007)(3660700001)(6116002)(2906002)(81156014)(36756003)(6436002)(7736002)(8676002)(478600001)(50226002)(6512007)(6246003)(4326008)(305945005)(105586002)(229853002)(103116003)(6486002)(8936002)(14454004)(99106002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0502MB2903;H:DB6PR0502MB2901.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: xGVNdgRTjutVpKrn6ogjHzeUfDhofTCkOMB+Y5ptur4T5XDCDKIyOtVKiRRgZE0XYJIckGdf4cyUSQz+7KLjSB68pAv0jzy7dyMzmWLYiyjdoXxsJBTVfy0B62NUidOWCTutt9p483Oh3C7hCyJfTUzm0zE0NPdMvKEA+ZR9+90IqVuf0XZt82zlOzpkpMrm spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <49144164A709E24DBB0AFE285EBE216D@eurprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 3641e208-dbe5-43f2-7a1a-08d5b60354ad X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3641e208-dbe5-43f2-7a1a-08d5b60354ad X-MS-Exchange-CrossTenant-originalarrivaltime: 09 May 2018 23:19:36.2886 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0502MB2903 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gV2VkLCAyMDE4LTA1LTA5IGF0IDE1OjE5IC0wNzAwLCBHdWVudGVyIFJvZWNrIHdyb3RlOg0K PiBPbiBTdW4sIE1heSAwNiwgMjAxOCBhdCAwOTozMzoyNkFNICswMjAwLCBUaG9tYXMgR2xlaXhu ZXIgd3JvdGU6DQo+ID4gT24gU2F0LCA1IE1heSAyMDE4LCBHdWVudGVyIFJvZWNrIH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