Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp617602rda; Sun, 22 Oct 2023 02:23:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFpxf6wZw8J8QmtJPwzySa2LSDdJGb4zl8VZw09DNS8Ecs8Ro/aeqfPUE66l8LiHzCpom4e X-Received: by 2002:a54:4090:0:b0:3a3:ed41:5ab with SMTP id i16-20020a544090000000b003a3ed4105abmr7049898oii.9.1697966584163; Sun, 22 Oct 2023 02:23:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697966584; cv=pass; d=google.com; s=arc-20160816; b=Z+2/FGc8an6n5VSCMDLd98WPISUS/ty2yzxyV/ZdS+Q61fq9BfTJ9/mYkAn1vOsZsf xeqVLnVPVVrbyNrK3QGtIt80mUgDaY8+decsBpxeB+2FT9VmkuDr3uAE1DQE99BEafL1 OnU4mmOcOOuBaOWhQM3N7MXg16lys8yFoLHs2fJk25zYay1xsyCCR9tOYTaOOsSCH5Oa 4Z1vx3Nz/8/L7g2t3ayM/QofhF2Eotro6QD/Zbrsa3pFIdaTQf7u7955ozoZWwIPjwsr UtsE/7D0v+du0VbVLZo5DsTNznpaFJ5DJQq2bfzi0LOR1/4JpRQFMNmZipQzdRv3NcLx NItQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=8VyTbXwAcag/aEhdvUmXmc7eeIDUeVhhpHrTmU7Nf5U=; fh=8rQFo2LRxRw/2J8HGYuzJ7UCO9DPm6maLLBX54xlSpg=; b=dolv97Hsh9UjLW45tSDA7q664ODdbEz8bojejqnQppDIxd1E4/maeAvKcPcyEfUc2X EcPduMKvDnoHiQvwyWjfu5ze9burEVP02MeNKr7rblbGko/eX3Gje7uUlDxZbAdR9Vb+ +f0WkEY3PNKwXaEbhFSXrVVUcdu/0K5cHYiPKq8djqevfdpBwb0c/cEcN8kRqCbqO5ij 3PYOFdHAAsWVYA1lYyC4Sh67kSTXhQjTD8lFB2+PY4na7YqrG3mWJ0IKGXp84ftrGpxm aJa5fRfNdFxIEgPGvIvc7O267/rFM/S9GywTcDSdD811FxY0TnSpssc272ZFf8vs5UTd XAuw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=iNKNCdlg; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j12-20020a056a00174c00b006be55174f3fsi4943337pfc.28.2023.10.22.02.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 02:23:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=iNKNCdlg; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0D125805A787; Sun, 22 Oct 2023 02:23:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbjJVJWn (ORCPT + 99 others); Sun, 22 Oct 2023 05:22:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbjJVJWl (ORCPT ); Sun, 22 Oct 2023 05:22:41 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2075.outbound.protection.outlook.com [40.107.223.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C450CC; Sun, 22 Oct 2023 02:22:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XOEuY7zwuJbpZbI3PNXtKXmeDAL6UQaYvT0qUwu6XoCLAFCcvOcXyAqCAcdF5FHiSssDgHUl1TQZXGXmEYYrOtCeTOzJ6SbCJKBpIa4/xzm3X+4fPvXCG1v0K5McPyjvNFT81TpoWIxZlExWzMeGfpWMA/fUJfze8Kwx0maJap8rmnFm8mmEOijVxkCG50ACsq6xP2xf13eJwubZGE2W88nVmUR8Ei1UepkgiceeQYwynwzmMOHhj6ipepkE79zz1ld6yv9KWJSCq8q9OmgXVD15FuoC94eJdSUNjL6N0fPonEOzJMOgZMSlYyLVHQOXiKtt0LyJC4eVkbsFwr809w== 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=8VyTbXwAcag/aEhdvUmXmc7eeIDUeVhhpHrTmU7Nf5U=; b=W73doEQIVB2mIE7yy60PddQ33MK0ooVzXlFWU+Mlao6X3v4Wk38sdh6s7YWRfavq4fiHjvX7wrE5vdjKHxAPk3g18AMoq7DusBLxmZRIS9oVU4bQp3LJs9YKA98vCY7eCJB8KxXqwxpbdgYX1j8N8nq6SNFeKCEqFBgAPbUXNBgBMgdOeyKtfv1gXOlaTMCvKPr6LScK2TYaOqOW2OSpD/dgFo4qG8ueuyuSw5xR3Srz1Vnd+Qz139KG3a+v54LRkrQj+8ACmk5nxSRK2NOSVcBoVoOjyVUgxpCR2QKJtclJfH2A7oB7bkg5TCuVAu3JeMl71Sd+NNsRFJh96JE9sw== 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=8VyTbXwAcag/aEhdvUmXmc7eeIDUeVhhpHrTmU7Nf5U=; b=iNKNCdlg8WmFMLqz9vNUHZ6DncrByAnLECw+YoQPHvPu2Jm4+4BzUM2EgsvFZLXAZFFPbSKkawRaFshfNPNulpZQ/bnXOr3yKrDLXDQcNRMxVbiqebHuLdcbQYoxSOIMb37DP5Qhjg5T68el/oRQpBlVFYPrdM4S6g9igbXyXGBKVAxIFOiwdoCbL0uJgK3RlSsRny0nDQpsFqrmcDx3fJE8YDjAvpFkfk1n0EGqx4CRSehnIeV6jc0hokc0mUcy7kgi8IjctM5u5rVx2qlWbsQvYT2xa6dLnfxd1TJZlhihv37NwI983imL+lc7u5Lz5+JLKL6l/aNhWCVLSgO7VA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from PH7PR12MB6660.namprd12.prod.outlook.com (2603:10b6:510:212::10) by IA1PR12MB6458.namprd12.prod.outlook.com (2603:10b6:208:3aa::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.23; Sun, 22 Oct 2023 09:22:35 +0000 Received: from PH7PR12MB6660.namprd12.prod.outlook.com ([fe80::4ecd:16b8:fd21:7cf4]) by PH7PR12MB6660.namprd12.prod.outlook.com ([fe80::4ecd:16b8:fd21:7cf4%7]) with mapi id 15.20.6907.022; Sun, 22 Oct 2023 09:22:35 +0000 Message-ID: Date: Sun, 22 Oct 2023 12:22:03 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH iproute2-next 2/3] rdma: Add an option to set privileged QKEY parameter To: Petr Machata Cc: jgg@ziepe.ca, leon@kernel.org, dsahern@gmail.com, stephen@networkplumber.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linuxarm@huawei.com, linux-kernel@vger.kernel.org, huangjunxian6@hisilicon.com, michaelgur@nvidia.com References: <20231019082138.18889-1-phaddad@nvidia.com> <20231019082138.18889-3-phaddad@nvidia.com> <87il72aiqm.fsf@nvidia.com> Content-Language: en-US From: Patrisious Haddad In-Reply-To: <87il72aiqm.fsf@nvidia.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DO0P289CA0003.QATP289.PROD.OUTLOOK.COM (2603:1096:790:20::6) To PH7PR12MB6660.namprd12.prod.outlook.com (2603:10b6:510:212::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB6660:EE_|IA1PR12MB6458:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ad97df9-dd82-4f9c-fe46-08dbd2e061ba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4OAgMRVeRrDU6aKnsWEC/py4O8mvAmLEfs6dRsE6liG6ToXPK3bWPl1XbM+k+lX+LtxEFk/RFPX+WJG+VFc93AtFMGSqx6dEJ4onH1uwBwxXeQPktbFN5ClkUAk9sv/Y20pfwoF+dD21sFkz+WBDYwjgcMnRMimET9A2jw7z8TYiVt4q2Uxu1SxhUKUGm7Bmzur0WLlnphhBHJlOwtkHfDWkDHnMaTJc9V5IOzFN3Wh9+0dDklvssOXsRuDpI4QMh68uudH5RfjJv/2IAhz31xETmpl+GXxNRxtj8trdfxUEyLavZ0afDH36sPIw05SliGoTgYfW+a8dKYhSFzf0gKqNGWWgEpwbKTIeP6OdKUtl0AuQdZ2EzH7CArS7YDGEG/4Pa4CTgSAtUDm6bXD7TTeYbmHIkXP+Eo9xSlrPQa1LTk6FjlQj5+Jee69g1DJl7XiyELV5vgaQKxOn6vsFF8tUveDW7o/w04/601ohoMqkJo5HyqrrpmdOSnZxt2piu9BsctFGHcY2TK9hfmZE4voSE6vc4O3/gVS8EC8enDBow0IN+0qJj+jBrEi6hFHyOC95qr5PfoZWWfwBXHkC4NTST1cAlXrIU0u25dDL79gHUIvIoPKEhJlL9DX+L/bkEtT8fKxwfDVmDndAX6bQZg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB6660.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(396003)(39860400002)(136003)(346002)(376002)(366004)(230922051799003)(186009)(64100799003)(1800799009)(451199024)(26005)(31686004)(38100700002)(83380400001)(5660300002)(37006003)(31696002)(4326008)(316002)(86362001)(8676002)(66946007)(8936002)(6862004)(6636002)(66556008)(66476007)(41300700001)(6486002)(53546011)(6666004)(478600001)(6506007)(2906002)(2616005)(107886003)(36756003)(6512007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?S0tSWXByaFkyTHd6N3czRU1KT2VxUzZmaHhpYXVOK1ZHZnRha1ZpZmhyOUhw?= =?utf-8?B?S3lkcERzaXkyRkhpKytvOUNocEdXeEdJQUVLTWFIL0xReDY4YjNFQ3V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pNURMNU56VG9ERGVGamN5RUZ6S0JiTTF3ZzM2VjQ4SHNrM0F1?= =?utf-8?B?ZUlDUktBcVVuTTFvMUJwUVp4S3RwUlE2ZUQ4L0dFYnlia1AwMjhqZmdSNjll?= =?utf-8?B?eU5IcVpMTmI5QUJxUnJ3aUNVMlh4TElCRXZBU2JHZHFnMWJPSTd5MVRFWHNF?= =?utf-8?B?ZTRlSW9kOXR6RHNkSEJwcmEwTDNHSlJhZDNUaTA5Zm9yOHhzQUhxSXNoaFVU?= =?utf-8?Q?9Dfnykk5KWO+4gmeBjf5paf8q?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ad97df9-dd82-4f9c-fe46-08dbd2e061ba X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6660.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Oct 2023 09:22:16.3097 (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: wU0pPh/uEKb1bKRjlWAd0nPB8nAxCx0eQ9sXVcmCPMPIIOJw3PfOZlZ/yNJ1nhFyIGb5jpNxr8ksOpIaEiZh5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6458 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 22 Oct 2023 02:23:01 -0700 (PDT) On 10/19/2023 1:38 PM, Petr Machata wrote: > Patrisious Haddad writes: > >> @@ -40,6 +45,22 @@ static int sys_show_parse_cb(const struct nlmsghdr *nlh, void *data) >> mode_str); >> } >> >> + if (tb[RDMA_NLDEV_SYS_ATTR_PRIVILEGED_QKEY_MODE]) { >> + const char *pqkey_str; >> + uint8_t pqkey_mode; >> + >> + pqkey_mode = >> + mnl_attr_get_u8(tb[RDMA_NLDEV_SYS_ATTR_PRIVILEGED_QKEY_MODE]); >> + >> + if (pqkey_mode < ARRAY_SIZE(privileged_qkey_str)) >> + pqkey_str = privileged_qkey_str[pqkey_mode]; >> + else >> + pqkey_str = "unknown"; >> + >> + print_color_string(PRINT_ANY, COLOR_NONE, "privileged-qkey", >> + "privileged-qkey %s ", pqkey_str); >> + } >> + > Elsewhere in the file, you just use print_color_on_off(), why not here? About this as I previously answered I don't really see a big difference between it and "print_color_string" but if the maintainer thinks this is an essential change I can fix and re-send. Thanks for the review. > >> if (tb[RDMA_NLDEV_SYS_ATTR_COPY_ON_FORK]) >> cof = mnl_attr_get_u8(tb[RDMA_NLDEV_SYS_ATTR_COPY_ON_FORK]); >> >> @@ -111,10 +155,25 @@ static int sys_set_netns_args(struct rd *rd) >> return sys_set_netns_cmd(rd, cmd); >> } >> >> +static int sys_set_privileged_qkey_args(struct rd *rd) >> +{ >> + bool cmd; >> + >> + if (rd_no_arg(rd) || !sys_valid_privileged_qkey_cmd(rd_argv(rd))) { >> + pr_err("valid options are: { on | off }\n"); >> + return -EINVAL; >> + } > This could use parse_on_off(). More importantly I looked a bit more into it, and I prefer not to use it, it would also lead to additional error prints that are not consistent with what we previously had for this API, so I prefer to keep it as is , so that the error messages for all arguments of this command be identical. > >> + >> + cmd = (strcmp(rd_argv(rd), "on") == 0) ? true : false; >> + >> + return sys_set_privileged_qkey_cmd(rd, cmd); >> +} >> + >> static int sys_set_help(struct rd *rd) >> { >> pr_out("Usage: %s system set [PARAM] value\n", rd->filename); >> pr_out(" system set netns { shared | exclusive }\n"); >> + pr_out(" system set privileged-qkey { on | off }\n"); >> return 0; >> } >> >> @@ -124,6 +183,7 @@ static int sys_set(struct rd *rd) >> { NULL, sys_set_help }, >> { "help", sys_set_help }, >> { "netns", sys_set_netns_args}, >> + { "privileged-qkey", sys_set_privileged_qkey_args}, >> { 0 } >> }; > The rest of the code looks sane to me, but I'm not familiar with the > feature.