From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5DE71A0517; Wed, 10 Jun 2020 11:34:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 108424C90; Wed, 10 Jun 2020 11:33:15 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60067.outbound.protection.outlook.com [40.107.6.67]) by dpdk.org (Postfix) with ESMTP id 9E36A2E8F for ; Wed, 10 Jun 2020 11:33:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N1SC4DBWhf9yiuk9zangWZfibcZKTVyWPzqgsTuHnJ4Z2rb5++JJxifCh62sltyOCLT7FYy54P/isCyDRKgU0TV8uSGFQHdxG6DAEDSFAuQzTNf0FjOyfD9w6JbPWmodGPw8mENPumJlGplEIg9xgttlTWtqE7Ky6LUQ7SB6jHfFnbrvEz6L10PgCc+Pk0bYyNSBGfmH3UfhfWE3vpoJPbOFTA+MRcNRF+cy/Aj6/fhnxZUz0N+3jNS9oVUqQKzMfcqndODBZMICT39h4x0ZxsCqNeBmjVfcjt71T91HHOhyNIdN6uwHfQEffWng32sVaiMJiLp/JJF8ZVRsSTDSWA== 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-SenderADCheck; bh=cvJW8qp4zEhm0Nc+HjUJ6esBx8maJspRLKvpEWP3MEI=; b=IMsTl3TtrXCiKnzB9qtaFFQhfGkJOE2x0VTCI3+4vzBVb7xmjsXOsxPxyrW/e3uwq134DN0aFMWbDCnPGGiDIdVA21miAhqF5YW7mQvrR1QrtFokWafAfDYZ4t1cFbiZ23yjGuLGkpGMfEwctO09qIlw4Lpjrrh+YA6p3UGAcyikEqASWSaliqKwx7pb8Pkf+99fHdk0j4bz01tHNhkwAj4BdSi2YKVmovwslRB3L/j8wCVMOqV/rwzB2PtRvb1dOWepdIc1ZV7i4bmNAiNh9dkUPNRrIQHKIOleLwCgam8G/VzBk81nmxSaSdRx/v026B2peQZ48vCnT3/dSWUPqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none 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=cvJW8qp4zEhm0Nc+HjUJ6esBx8maJspRLKvpEWP3MEI=; b=hXlL2ONtfJPagt9LEnX7qmxrVyOecRVu3oxRIwc7w++14z6vkeEN9kK+TN3m9cTHVauHwq/gY7YK7+5ugwZYnkYImP0tC5ps1kVu/MZBiPhpDjTNXDgFaUyrKR5exyjnnE/nXe7ltwoDmL7TwcBNcbSSOZcc82q9uB4pJdNnwYA= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=mellanox.com; Received: from AM0PR05MB4209.eurprd05.prod.outlook.com (2603:10a6:208:61::22) by AM0PR05MB4545.eurprd05.prod.outlook.com (2603:10a6:208:b9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.20; Wed, 10 Jun 2020 09:33:10 +0000 Received: from AM0PR05MB4209.eurprd05.prod.outlook.com ([fe80::1068:89a9:41d3:b14a]) by AM0PR05MB4209.eurprd05.prod.outlook.com ([fe80::1068:89a9:41d3:b14a%3]) with mapi id 15.20.3066.023; Wed, 10 Jun 2020 09:33:10 +0000 From: Ophir Munk To: dev@dpdk.org, Matan Azrad , Raslan Darawsheh Cc: Ophir Munk Date: Wed, 10 Jun 2020 09:32:31 +0000 Message-Id: <20200610093233.23902-7-ophirmu@mellanox.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20200610093233.23902-1-ophirmu@mellanox.com> References: <20200610093233.23902-1-ophirmu@mellanox.com> Content-Type: text/plain X-ClientProxiedBy: MRXP264CA0003.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:15::15) To AM0PR05MB4209.eurprd05.prod.outlook.com (2603:10a6:208:61::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mellanox.com (37.142.13.130) by MRXP264CA0003.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:15::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.18 via Frontend Transport; Wed, 10 Jun 2020 09:33:10 +0000 X-Mailer: git-send-email 2.8.4 X-Originating-IP: [37.142.13.130] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1549a3d0-b171-42ad-13eb-08d80d214a60 X-MS-TrafficTypeDiagnostic: AM0PR05MB4545: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtFwd X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1388; X-Forefront-PRVS: 0430FA5CB7 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FuW0OY/uCOHF9cS3EdKYYm7oe9OzZBZmNrwC24VoZvSAeAUaD4W0hXayDmjhto8X8AVSRhXf4zb1xNqEisgBzJbTHcOE2xnpm7kdzcQbs5bcfhSHaqX5aK16ASBJPB39zeCVcM2BgmEFHc4wdjx8vgMOrxerpTBVNRo87TwPuQcx/nsW+2eHhW0z116VaDZNnrPVyevuf5xwEMeN4a2MROWP6iO1eF1fq8K42PwlGVbKmDCxvLwZ+hWAgNaYAShBTc53w/gACyk4l4yfbynpHUMfcXtEwg0IdX6t6LekuYwcZU1aXvZXuketzr2cD24q6yDsTaW7WbhlYt5xP6kz/A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB4209.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(376002)(39860400002)(396003)(366004)(136003)(6666004)(478600001)(26005)(186003)(8676002)(5660300002)(8886007)(66476007)(66556008)(36756003)(66946007)(2906002)(956004)(2616005)(55016002)(52116002)(7696005)(8936002)(6636002)(110136005)(1076003)(16526019)(316002)(86362001)(107886003)(4326008); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: rhsl8qGOCBy1mSTcWZss5kl6yrN4j+cNsSy525zXkg86+kYq/ac9DFjX3nfk1CpRAaPBuyBQXG65msfXO/lWAsGrQ/oLR/198jRP9wx2GpLQipfpyY7972M1kkKdJZKZFcYUJwVxfukhiRncQ/rPN6Jt6lXqARzC1beMAh5R2YyiN5qRWyE+jBCddvrr24g1uxnO41F8Ra/OhaovNIngmiRDPDEqw+FqqLUlxDfkgA3CgGk7ztX767QV6a+46StQW8VI7CN2rQwzfdjSAjY02sZRqzy5OVlqRl2CpG/qaKb4f/5Y1pz/QL/zLGPq8AYMHTCh2Yr1I7DyGYNSt+smmf5+Bkp8XUJWxbk68iOZd8oqis9kHye6JD2bMfxt5+rr8DCoB023Uze0geB/hLNRS3ifeABvY3NTlIroaxh/AsilCCsYHtlWS8e2lOPWFzO5Th58jYaErMqbgmluayj4qhP3tgvK2lns5B38MWAV96BOqPeS1d/7SouEOUgRd9+5 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1549a3d0-b171-42ad-13eb-08d80d214a60 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2020 09:33:10.8236 (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-CrossTenant-UserPrincipalName: ncoJ7LoPQsfrPdAd8241TPLr7XZkELjEPfd+2q8bqeBKptY8OgKbEnX5C2uUYnpSMQs7kbvy6uIj/BIADtCRwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4545 Subject: [dpdk-dev] [PATCH v1 6/8] common/mlx5: exclude ibv dependent calls in devx commands 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" Function mlx5_devx_cmd_qp_query_tis_td() receives as parameter a pointer to verbs QP returned by ibv_create_qp. Therefore support it only if HAVE_IBV_FLOW_DV_SUPPORT is defined. Otherwise return an error ENOTSUP. Signed-off-by: Ophir Munk --- drivers/common/mlx5/mlx5_devx_cmds.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index fba485e..091a825 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -577,6 +577,7 @@ int mlx5_devx_cmd_qp_query_tis_td(void *qp, uint32_t tis_num, uint32_t *tis_td) { +#ifdef HAVE_IBV_FLOW_DV_SUPPORT uint32_t in[MLX5_ST_SZ_DW(query_tis_in)] = {0}; uint32_t out[MLX5_ST_SZ_DW(query_tis_out)] = {0}; int rc; @@ -592,6 +593,12 @@ mlx5_devx_cmd_qp_query_tis_td(void *qp, uint32_t tis_num, tis_ctx = MLX5_ADDR_OF(query_tis_out, out, tis_context); *tis_td = MLX5_GET(tisc, tis_ctx, transport_domain); return 0; +#else + (void)qp; + (void)tis_num; + (void)tis_td; + return -ENOTSUP; +#endif } /** -- 2.8.4