From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D1FF4A0C4E; Tue, 19 Oct 2021 10:24:33 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B343740E2D; Tue, 19 Oct 2021 10:24:33 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2047.outbound.protection.outlook.com [40.107.243.47]) by mails.dpdk.org (Postfix) with ESMTP id 0B6664003E for ; Tue, 19 Oct 2021 10:24:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P8sq/PjzKKxHrvBkF3lcs6nAj7ocyPgeiZOLeIaYlIuLuBHowmc4n5ZQtRWSXAmcniTNTRqctVechDlwYUsckfrq0OFawyO4pRLSWo+nQy1gQgJA5RBVYLU/6P+LXbEJF/ePdY/KupPs3WsMGBQdbxSk4ZfKvekMl1FsHc5GHZQc61gAgRq95l/nDdJEbONR8Ue4Ok0N4dtYrpcRRRqDGvuYq05xd6shyRwl/TXNVeVmPFEBaECci4+Byje/KChT+bwBGtvj0jD4+Ssk977ECfMwuV6gu7jW+G+YFmrgmaJh+HVY0jbcxKb7nkzM6D0amc6HWbON2GoXBjZnEfk2hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VK6ePXWpCu3w+XUZV4xRD6WRkuan0+GHHhXozXouAEM=; b=PMs5+1QVJF6QUGHaAcvLjCUKlPk3lHOyRF02QvTwxKIe8cRn9cLlqaunuNij7lVRfG46+v9bzZwxBlzKXb+pGSvGfflwLEgOh5eOSUtY/9FmIp7qQrtX7KTOsTSs1yDT08ljWBSnW5xCAoulCnFre58x8phQVzFbh1WwL+I26WkpQ5TuuSeBv0y4h7yDxhNOz9Ov8hBQa4xXNBfo5FrR3XSDYJmGh5E2ND/zPzn7GSE8ieD9YQ7zAFdynwqWZR7syzfGWUvSDiqav4g4tiagKd+4wCC3SU7yNkovmGNt30xVTEsx8g2KSHQnAVCbP5xvcuYOT9TkWDfa5UK2oAOVrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VK6ePXWpCu3w+XUZV4xRD6WRkuan0+GHHhXozXouAEM=; b=iC7VaR9xwCty4cYJKG5glzTQstgzw7ZUqQ0kp3X0oK8AOfwt4YO1cAhX6prcnS3XwVnJ/C+VsvRzb1lknx7JIE25sTx33A4uwnGTslb3BX05LIck7n9C3qld0wXACH+qvHtA3tu1YrmdZ0W/Gzdnvmuw86omb73eLMv+wNheLZUyiDNLgkIwSHYfp0YA9ErD8cQ70On9siHbdFeFXg/lsqQwwzyIG6pjpg9DuB2xmxY7ki8vvjR0doOD3N/ulRRCqrTK/gQVzO7O8b2LLsmUT7B+LK50iLEsWjNr64LjD8B/5HZG3ywynT9dRRm5M7uGrrmp7rfGFEzpiJxa8lmToQ== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM5PR12MB2566.namprd12.prod.outlook.com (2603:10b6:4:b4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Tue, 19 Oct 2021 08:24:30 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e550:35a2:96e5:657f]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::e550:35a2:96e5:657f%4]) with mapi id 15.20.4608.018; Tue, 19 Oct 2021 08:24:30 +0000 From: Slava Ovsiienko To: "Xueming(Steven) Li" , "dev@dpdk.org" CC: Lior Margalit , Matan Azrad Thread-Topic: [PATCH v2 2/8] net/mlx5: use netlink when IB port greater than 255 Thread-Index: AQHXwmTy0HCRuYrxSUO2ovXloT2eQavaAJBA Date: Tue, 19 Oct 2021 08:24:30 +0000 Message-ID: References: <20210927083256.337450-1-xuemingl@nvidia.com> <20211016080732.1781622-1-xuemingl@nvidia.com> <20211016080732.1781622-3-xuemingl@nvidia.com> In-Reply-To: <20211016080732.1781622-3-xuemingl@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8938b0b0-54bc-40f1-8434-08d992d9df99 x-ms-traffictypediagnostic: DM5PR12MB2566: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:586; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 28t6T58eO2mXNz+nny7aUf70KBR5Xk0sRFoBDkN9VAmqvDDYN//KiVVqOLZI0Ehdwl8Uh//5GKCxpkcVIj0JuHiN8kzJuJk6tUZn9W92HYdM5+Hdrue4uoxew+Idd85/Nv0xBXKjiY9Z71gBdkze67DrBECScLBTxkIgMkPUVuGspQAdQLvtBv4H6TT9/y0COBEgc6V9lj44x6I0M2vWP7bpUpxlWIy7pkJl48Ws7Tpd9wYQ9lftJRPo32gTOKhc3Fm9/MdxVPMr+xEN94pu6R7PTwS3CK0eKYdRg9VIeGzB4ui9DGLRNZP3ZpB2ld3bq0IPeyPM6MvAFgZNQ8uQI+j6ks1ejjBsxzf42OYCCWKttJ4dhIq691rMZABadaj3Tf+4ntW0NWNKqfFOdzmVEjX8RE8YipHqdEdiuaugIWePcvnP/sHSmdWNKWH2QdRJ+PDXDBSfbuMoPUBNUAsGLjgFIC9+WNXAfbfCUyfMG2yzuG5+KddYKX40M7JppTDSFLbSXPLl/fHS7T/2X3u4RDB6JGK1OzuvAuFVgn9NLJAqrXuV5G7yBtwF12zhmT03HAs4AcQv6RFw64UY64CJYWZCDeYZ5Aq89r3uYcmcMZ+AW3YEqCnoo1BphAPT6cYC/Pmy8YPH8x+jOYKyfbvIIqq7B9kLeclk5Ft7Yv1ZxzjEVP0fGbxkAYh29ugu1uFsi0enqk4/PiWMP1lmHWyhow== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(107886003)(5660300002)(52536014)(9686003)(4326008)(76116006)(66476007)(55016002)(186003)(83380400001)(8936002)(71200400001)(7696005)(122000001)(64756008)(66446008)(66556008)(33656002)(316002)(4744005)(54906003)(110136005)(86362001)(38070700005)(66946007)(508600001)(26005)(2906002)(8676002)(38100700002)(6506007)(53546011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?G8WCdrvXpTP1vMZ1PeP41CsAyyTTgHtxSFWjgXUriX4dyqOF8nJ8Rl/LhQtK?= =?us-ascii?Q?YHTCK3GKfzfUjQrnXB+MMk1Mm7JHMn2u+6n4c7hUBP3K7BfUzHQIkdJ+tFhI?= =?us-ascii?Q?X5T2BjPPzFyAyA8NGCH382b2uuZxgva/7Tl7gtBZRFNGaYaGV0MqKJ6FkEQM?= =?us-ascii?Q?tf10hAaKt9gjYPHT/6xsL77FTOGzthZYcqcku+v37eo4HRY30OmQHfJ7ZWFD?= =?us-ascii?Q?hYhfb/R688CPCLMrFzGX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JS?= =?us-ascii?Q?99G0rBPchRntNJR1eyWvgjG4+pvoFWObJDL8sIIxt60V2pzqPh9mTORJmeyf?= =?us-ascii?Q?0GuK3VmhLRPX1Vm/GcDmuqNYmbnwQgMOwbtqQXC5gNYDyH/fUuxIAHgA0ST1?= =?us-ascii?Q?BsNYjOCUWj++fp+pQRI8DgOL5NNgXP6wkqObDdw9pgWwSyqMJPvm6M0KhwZv?= =?us-ascii?Q?RhOBYEZl4UTRqNuFEWtr1m2u?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8938b0b0-54bc-40f1-8434-08d992d9df99 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Oct 2021 08:24:30.5195 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9rzSTMcv/DPjSKPKkd4JGTu3Qsv4M3lAk64SExokOPpb63YC1PkHn2/qwkEbdptDBUiIBcLtYIMOm1EBoUdIpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2566 Subject: Re: [dpdk-dev] [PATCH v2 2/8] net/mlx5: use netlink when IB port greater than 255 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Xueming(Steven) Li > Sent: Saturday, October 16, 2021 11:07 > To: dev@dpdk.org > Cc: Xueming(Steven) Li ; Slava Ovsiienko > ; Lior Margalit ; Matan > Azrad > Subject: [PATCH v2 2/8] net/mlx5: use netlink when IB port greater than 2= 55 >=20 > IB spec doesn't allow 255 ports on a single HCA, port number of 256 was c= ast > to u8 value 0 which invalid to ibv_query_port() >=20 > This patch invokes Netlink api to query port state when port number great= er > than 255. >=20 > Signed-off-by: Xueming Li Acked-by: Viacheslav Ovsiienko