From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10065.outbound.protection.outlook.com [40.107.1.65]) by dpdk.org (Postfix) with ESMTP id 825981B480 for ; Mon, 22 Apr 2019 19:46:18 +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:X-MS-Exchange-SenderADCheck; bh=wynH+r1mzoxPJo9GUKODTz4bGWFjjQ1hH2DMlpnjfDM=; b=phKm6uvmC2FgF7/qNs6k6wCC37B2qofKvhrNbyZGiypM1rFzy3beS8uaW3TsxDW1rXlKpEaU0zl38j5b48nj8iNwT557m2sv0wanmv9cjgWt8iCmeLleJSnbaG7gx8wARbMeLSCsz+/YOsrnZqv2joiU4aKm1wXIquHR8DV/SPQ= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB3747.eurprd05.prod.outlook.com (52.133.47.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Mon, 22 Apr 2019 17:46:16 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323%4]) with mapi id 15.20.1813.017; Mon, 22 Apr 2019 17:46:16 +0000 From: Shahaf Shuler To: Slava Ovsiienko CC: "dev@dpdk.org" , Ori Kam Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix query host adapter if no DevX enabled Thread-Index: AQHU+QhHjP9qJpvSyU+58xqjoiNfPKZIcjjg Date: Mon, 22 Apr 2019 17:46:16 +0000 Message-ID: References: <1555936697-1096-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1555936697-1096-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 167c6946-98fe-46dd-5b45-08d6c74a6b84 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR0502MB3747; x-ms-traffictypediagnostic: AM0PR0502MB3747: x-microsoft-antispam-prvs: x-forefront-prvs: 00159D1518 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(376002)(39860400002)(396003)(346002)(199004)(189003)(66556008)(66446008)(64756008)(66476007)(4744005)(33656002)(14454004)(6116002)(68736007)(229853002)(26005)(73956011)(6636002)(66946007)(76116006)(52536014)(71190400001)(71200400001)(74316002)(186003)(81156014)(81166006)(76176011)(55016002)(86362001)(7696005)(3846002)(478600001)(25786009)(54906003)(66066001)(316002)(9686003)(14444005)(256004)(6246003)(4326008)(6862004)(99286004)(107886003)(97736004)(476003)(8936002)(486006)(305945005)(6506007)(5660300002)(446003)(7736002)(102836004)(11346002)(6436002)(2906002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3747; H:AM0PR0502MB3795.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ZSjv9x6vk/9f2qJSVf2+ywt+A4prTMtZSMDuM7zXzgKQkdNDH7Zz3rh8q7FedSJQvFitLKvVNQ5pXgszOM1LCRRSoWGGfpozOKICCTKE0SXrEjyvdwdAiuE0kN7ywhVEp5uEF9KhoIV/lYExs6KNG3OTzpbUsrzeUkZ9Q3NQgXEs05bvPOoPjluFNFvYfWGTB1MtPWNw0CwNpacGx25d2iJdIg1wNdHkRYFppilFaaRP0dmzip1HWtmMOesIJkrSyr/REtnPkCDDBdI/RYagRC+iZOXfrgBUB22QpqV+6oH4lCVaEiAo8UTzmMGBUuyMv3yHLl1N3/+/QX1gCKLAyPL5K6l+DWiKiKnPN8oHo5aGJUuvDoDNaEN1dfuUUuJ4TyFiM86HXzSMkDDSicmOS5EIxsWgDsgU5eTZCvwkKiw= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 167c6946-98fe-46dd-5b45-08d6c74a6b84 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2019 17:46:16.3716 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3747 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix query host adapter if no DevX enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Apr 2019 17:46:18 -0000 Monday, April 22, 2019 3:38 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH] net/mlx5: fix query host adapter if no DevX > enabled >=20 > If there is the support of DevX is exposed by rdma-core but DevX is not > supported by or disabled for the specific interface the > mlx5_devx_cmd_query_hca_attr() routine returns an error preventing the > device from successful probing. The routine should be invoked only in cas= e of > enabled DevX. >=20 > Fixes: e2b4925ef7c1 ("net/mlx5: support Direct Rules E-Switch") > Cc: Ori Kam >=20 > Signed-off-by: Viacheslav Ovsiienko Applied to next-net-mlx, thanks.=20 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id C2B79A05D3 for ; Mon, 22 Apr 2019 19:46:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A7F9D1B470; Mon, 22 Apr 2019 19:46:20 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10065.outbound.protection.outlook.com [40.107.1.65]) by dpdk.org (Postfix) with ESMTP id 825981B480 for ; Mon, 22 Apr 2019 19:46:18 +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:X-MS-Exchange-SenderADCheck; bh=wynH+r1mzoxPJo9GUKODTz4bGWFjjQ1hH2DMlpnjfDM=; b=phKm6uvmC2FgF7/qNs6k6wCC37B2qofKvhrNbyZGiypM1rFzy3beS8uaW3TsxDW1rXlKpEaU0zl38j5b48nj8iNwT557m2sv0wanmv9cjgWt8iCmeLleJSnbaG7gx8wARbMeLSCsz+/YOsrnZqv2joiU4aKm1wXIquHR8DV/SPQ= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB3747.eurprd05.prod.outlook.com (52.133.47.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.12; Mon, 22 Apr 2019 17:46:16 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323%4]) with mapi id 15.20.1813.017; Mon, 22 Apr 2019 17:46:16 +0000 From: Shahaf Shuler To: Slava Ovsiienko CC: "dev@dpdk.org" , Ori Kam Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix query host adapter if no DevX enabled Thread-Index: AQHU+QhHjP9qJpvSyU+58xqjoiNfPKZIcjjg Date: Mon, 22 Apr 2019 17:46:16 +0000 Message-ID: References: <1555936697-1096-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1555936697-1096-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 167c6946-98fe-46dd-5b45-08d6c74a6b84 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR0502MB3747; x-ms-traffictypediagnostic: AM0PR0502MB3747: x-microsoft-antispam-prvs: x-forefront-prvs: 00159D1518 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(376002)(39860400002)(396003)(346002)(199004)(189003)(66556008)(66446008)(64756008)(66476007)(4744005)(33656002)(14454004)(6116002)(68736007)(229853002)(26005)(73956011)(6636002)(66946007)(76116006)(52536014)(71190400001)(71200400001)(74316002)(186003)(81156014)(81166006)(76176011)(55016002)(86362001)(7696005)(3846002)(478600001)(25786009)(54906003)(66066001)(316002)(9686003)(14444005)(256004)(6246003)(4326008)(6862004)(99286004)(107886003)(97736004)(476003)(8936002)(486006)(305945005)(6506007)(5660300002)(446003)(7736002)(102836004)(11346002)(6436002)(2906002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3747; H:AM0PR0502MB3795.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ZSjv9x6vk/9f2qJSVf2+ywt+A4prTMtZSMDuM7zXzgKQkdNDH7Zz3rh8q7FedSJQvFitLKvVNQ5pXgszOM1LCRRSoWGGfpozOKICCTKE0SXrEjyvdwdAiuE0kN7ywhVEp5uEF9KhoIV/lYExs6KNG3OTzpbUsrzeUkZ9Q3NQgXEs05bvPOoPjluFNFvYfWGTB1MtPWNw0CwNpacGx25d2iJdIg1wNdHkRYFppilFaaRP0dmzip1HWtmMOesIJkrSyr/REtnPkCDDBdI/RYagRC+iZOXfrgBUB22QpqV+6oH4lCVaEiAo8UTzmMGBUuyMv3yHLl1N3/+/QX1gCKLAyPL5K6l+DWiKiKnPN8oHo5aGJUuvDoDNaEN1dfuUUuJ4TyFiM86HXzSMkDDSicmOS5EIxsWgDsgU5eTZCvwkKiw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 167c6946-98fe-46dd-5b45-08d6c74a6b84 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Apr 2019 17:46:16.3716 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3747 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix query host adapter if no DevX enabled X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Message-ID: <20190422174616.t6biz4hLR7luTKOS8fZPi3gGdnqllk8T_0JXLXqTExc@z> Monday, April 22, 2019 3:38 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH] net/mlx5: fix query host adapter if no DevX > enabled >=20 > If there is the support of DevX is exposed by rdma-core but DevX is not > supported by or disabled for the specific interface the > mlx5_devx_cmd_query_hca_attr() routine returns an error preventing the > device from successful probing. The routine should be invoked only in cas= e of > enabled DevX. >=20 > Fixes: e2b4925ef7c1 ("net/mlx5: support Direct Rules E-Switch") > Cc: Ori Kam >=20 > Signed-off-by: Viacheslav Ovsiienko Applied to next-net-mlx, thanks.=20