Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2355936rda; Tue, 24 Oct 2023 23:27:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6o42gV3Pj5GBnr3qi+EwXUfwdMGw/jM4GRn/2SLJdahEBXCwAQxHf8w8JCPitGKW8lwzH X-Received: by 2002:a05:6102:2:b0:457:c70d:96f5 with SMTP id j2-20020a056102000200b00457c70d96f5mr13270540vsp.15.1698215221180; Tue, 24 Oct 2023 23:27:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698215221; cv=pass; d=google.com; s=arc-20160816; b=P4srWDSqlSh3BtHgNiq/KMaNpnNzFoWvanACRbLLNxnXbP7kYpjN3dA7d8yEC7fRQT RR/Z/M2oruNkE+BGOJCsGf1E4e0jCSdegEgqX9fIaxz/WKMvVyP6cjO0fmtNwYV12+uO LDIaIpGdE6yTQb+MDsV30QybjRaF02feIlbLNfSlAhCIADmi+wPvxwS2zymcJsvz+gFc eoZsGX9NhcqEXwVqa5eJ5vArhTKHuCY3zzGblSTb+JR0FN/wwcrnHSAyRCevoy8CFNhT d4qxX9kcg1/UbKhDRdLGJMfm20vHXdQnOoj71JGC97DlD62kK5p6q9MoPGvW7AtDMbng ewyw== 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:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=3LCSkyvPK/SBZGSSDFbHKUvuoaWQhhIDW2XKKjsINPY=; fh=6t/6EkU5wGi/k+QQvu/L08BKyULZsQbiwWlfdLQtSTY=; b=JrtUo61V2dnJo6szHV39vcOzCjn3L8aGBKYOmARbnLAuB7z9F1BWjKrmyGVKKvylyp O9OSBHkQM25bIr1WCqFiD64sh8gwmEwW3pGATHNtuBkurcStQ5ru7W908VphLql7ymS3 71M91AlG8T0Va0jxB/lZFDTk7sjRZAXGXza53vGUt4D/iw8RaqfNTam7/vLZQksVdDsq 296zryKv9p/NYYwXxzLIJ2Vdo7673p92yBHCYCiJx0Sq+HaJOA5Mt54YBHIRN3R56asO bda/PtSbUe06TGacO94+onrEa2UXTVYn7ZWZLsHQSwZ9QliCnHxw6TKRz0pl4BJ85cSh MeOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=qwNtLxV0; 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:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s188-20020a815ec5000000b0059bfb110b0bsi11473142ywb.278.2023.10.24.23.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 23:27:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=qwNtLxV0; 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:8 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 fry.vger.email (Postfix) with ESMTP id 0C148801B93D; Tue, 24 Oct 2023 23:26:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231849AbjJYG0n (ORCPT + 99 others); Wed, 25 Oct 2023 02:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231637AbjJYG0m (ORCPT ); Wed, 25 Oct 2023 02:26:42 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2086.outbound.protection.outlook.com [40.107.220.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8D3E5; Tue, 24 Oct 2023 23:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KJeh4+HU+l2br4E71D+gE2An0FGDUgb8k38kOd+T4odMSSto3bVte5L8PIbZzXxCzWRprn/NrFmn4nxsFNOrwr1ufksugJk9UjxQWS6CSrLAlO2KeH890ZPlR+/hD9pNH9D8V3vmYu08fg3FAIjvPfyS8f9QJ/lH7vTVkG9bh7w5mUjj6BxzeYK5f1dc0zFMcIA+bBQAc8I0Dbx+OIr8dDe51ssMEtHE275qEYfDG9JWiQ19Vt3y63aNzjbMpdrEUm5/Ix89W0eo0GhjWInD3kcH6I1XTmf9c7Ezz+k75RvxQTmQkJdtXG+qN/zAwddzzv8SgZLLxz1s1wENP/XVcQ== 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=3LCSkyvPK/SBZGSSDFbHKUvuoaWQhhIDW2XKKjsINPY=; b=TCykrV60xO4PMOaJXNB6Kz/sFRcZjrhck14tih1nNfITGidWljhTtpj2VGQtLj21UQi4cPsnPgF1fCSWc40GUZueXTDKkwXlYPLQtrTYVWJHEGz+mBuSYyYmF8byX6jHE81NquwDxj5eIlQs900xkYF+6xKM6JKf6leXBfdv/t0O8VWtSHaUSucPV4LOlX6gf88UTSBllwg3txuYv4PiM7nRNK0ycCLQ8Vpb2s14Zhbi0OYGXFjoTdHMK5lHkvGw/pK1WsYuX6x8x3hPN2+sHMUtSdtgseDoPFq0z3lPXNJksZHXNw7+NkIXl7hHhb3g6l4jgEmDoan9WfC5utmKCQ== 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=3LCSkyvPK/SBZGSSDFbHKUvuoaWQhhIDW2XKKjsINPY=; b=qwNtLxV0hRIyYfoHbBjF2FZtmMFw6nVJyjFe7a1CfgiF2/EpeXSYnbkzMMuJyDM6PJCBGrryArWvGhu3c6+Bai7hd3+34hufYrzne9SlUU+oYHEhQHjSe/2q5loW3NV6LQc87lAdg0fo+RkwMvlFfgNOzOSfFcz6Je0NBLxB6lEpCCSHVyLMGMhEaUlq3fml+TKtCTXlbrjnVgWV1GtIZGBv/K4vw9OcEvSFa85ImBEbAyP4/3GMxJDMQA6xmiapOmYwKrWmRRb25q+BiHr2eXS3ZlAfBwl46hKFdEz+nVcEAf2N+ICsjXIWodt2amShZ41cIpMIam/yBJXwO+sqTg== 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 BY5PR12MB4050.namprd12.prod.outlook.com (2603:10b6:a03:207::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Wed, 25 Oct 2023 06:26:36 +0000 Received: from PH7PR12MB6660.namprd12.prod.outlook.com ([fe80::1f1d:ef30:13b2:ca9d]) by PH7PR12MB6660.namprd12.prod.outlook.com ([fe80::1f1d:ef30:13b2:ca9d%4]) with mapi id 15.20.6907.032; Wed, 25 Oct 2023 06:26:36 +0000 Message-ID: Date: Wed, 25 Oct 2023 09:26:29 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v2 iproute2-next 2/3] rdma: Add an option to set privileged QKEY parameter Content-Language: en-US To: David Ahern , jgg@ziepe.ca, leon@kernel.org, stephen@networkplumber.org Cc: netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linuxarm@huawei.com, linux-kernel@vger.kernel.org, huangjunxian6@hisilicon.com, michaelgur@nvidia.com References: <20231023112217.3439-1-phaddad@nvidia.com> <20231023112217.3439-3-phaddad@nvidia.com> <6a1632a4-28fd-4fdd-b9ff-34dd2f0bba88@gmail.com> From: Patrisious Haddad In-Reply-To: <6a1632a4-28fd-4fdd-b9ff-34dd2f0bba88@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P265CA0279.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:37a::18) To PH7PR12MB6660.namprd12.prod.outlook.com (2603:10b6:510:212::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB6660:EE_|BY5PR12MB4050:EE_ X-MS-Office365-Filtering-Correlation-Id: d271c0a1-efcf-489b-f1e1-08dbd523569f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W/SdR3xJy5AxAdYve5tpf7aA20WRKd4qQk+7ctyuwae4QXTTYEGEaJePbmwWgdKZjKedPdjphfSV0WPmoXLL5cixuPLIYCyzhdfo5cmgMMp4x+UJuvYwJoQcXVojmqcMw5U32PALcJjP9s3lIVrL5Di+uoQCPpGpGosQ/T3jtumOD7FU6yLKiMJ1320zrRMQn7YBGoqlFhxvhzu4HK1SOqTP/U9dXX1RsODj+aDjhI4Ic3VErhlcJm9sj1ujEJjs16b2BhQY4H7TpuvjDhR+3R6AKU0GlkinCLO+ZXTBF2Eh5mwWDis7UDPof+os3p9oYURnJPr9Ta0WRaodTcO8emX6+ui7ofOFqYveR2wynHYMPt8eEuV92lh8DUkjWbcl/7mVXQhae25T+9HUWen2uWMhczK2ZApVeiOlxJrcEQXTPvj+Gzs/llUzGkrXwVSn+gYwwPOszags4XeRNoMHruKU8u/bACco4wuOdj0SwrwENN6geZODJEhTF11ANaRYP6HkIq5S7b6ewOuZXGOIWNDWrmAHQhhRYrgaPUq47qlXhHAAoOGdolWUC6RA5fZxBF8EshQ3Qdtf3Runc5SVQiYu6Nl0pjz0eC30C3nbCWxgwR95EnLSFq90f1jKQB5b4wIUEmi6Ru9NlrwpxwznYg== 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)(366004)(136003)(346002)(376002)(39860400002)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(2906002)(86362001)(38100700002)(41300700001)(316002)(66476007)(66946007)(66556008)(6666004)(6506007)(478600001)(107886003)(6486002)(6512007)(53546011)(31696002)(36756003)(5660300002)(2616005)(8676002)(4326008)(8936002)(26005)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MkJDaWdYRDkwRmZQRXdxT205eGs1Zjh6TEpHOXl2Qm94V0xvNXd3cnp5bnFu?= =?utf-8?B?aTEvUERTWWgvU1lFd2lGaHl0eG40NE8xNHdrRnJkSlRza29SY3B3eVl3aW9U?= =?utf-8?B?ck10YVZj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ZnaFRzV3N2Y0ZLL2dVNlYvcUVB?= =?utf-8?B?Nm5SYXc2VWtJMVZRS3dmdCtGMU9lZGh5YlN5U1h2bmR2dmhRSHdtamVKSkFp?= =?utf-8?B?MWZvTkw4NWVRQ3NkQmpJNFE5dkJTQWxmRk5TMUlHUGplcUYvYlhtRzhZTlNa?= =?utf-8?B?YmRSN2JubWhmWnloeFhHSUdOZUxaNXZPcmxrTXlGbXMzVFZ1WTRXQWxkZGk4?= =?utf-8?Q?t0+cz3GnGRAdqHsQbqfXtXAGJ?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: d271c0a1-efcf-489b-f1e1-08dbd523569f X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6660.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 06:26:36.0012 (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: AupmIhkDPcnvimQe+EVnqrYM5mgoNWD8OwaBwUW5JFJ75bDh7zRu48VhtiHwrMsTQh3r89MUGXbNUDMReRngQg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4050 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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 24 Oct 2023 23:26:58 -0700 (PDT) On 10/24/2023 8:02 PM, David Ahern wrote: > External email: Use caution opening links or attachments > > > On 10/23/23 5:22 AM, Patrisious Haddad wrote: >> diff --git a/rdma/sys.c b/rdma/sys.c >> index fd785b25..db34cb41 100644 >> --- a/rdma/sys.c >> +++ b/rdma/sys.c >> @@ -40,6 +40,17 @@ static int sys_show_parse_cb(const struct nlmsghdr *nlh, void *data) >> mode_str); >> } >> >> + if (tb[RDMA_NLDEV_SYS_ATTR_PRIVILEGED_QKEY_MODE]) { >> + uint8_t pqkey_mode; >> + >> + pqkey_mode = >> + mnl_attr_get_u8(tb[RDMA_NLDEV_SYS_ATTR_PRIVILEGED_QKEY_MODE]); > just make it mode so it fits on one line. will do. > > 40 characters for an attribute name .... I will never understand this > fascination with writing a sentence for an attribute name. me neither, just following the naming convention in rdma/include/uapi/rdma/rdma_netlink.h sadly ... > >> + >> + print_color_on_off(PRINT_ANY, COLOR_NONE, "privileged-qkey", >> + "privileged-qkey %s ", pqkey_mode); >> + >> + } >> + >> if (tb[RDMA_NLDEV_SYS_ATTR_COPY_ON_FORK]) >> cof = mnl_attr_get_u8(tb[RDMA_NLDEV_SYS_ATTR_COPY_ON_FORK]); >> > keep Petr's reviewed-by tag on the respin. will do, just making sure I understand "the respin" , you mean when I re-send it ?