Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp315588lqt; Thu, 6 Jun 2024 04:44:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQa69NOm8EhJAwAQD+kq8u71EW/CMWQwOTNT5tvevhP1W858rxAG5sDs+n2/rAwkwzwBXltb/HrPL7Rz7uigB6gRjid9DHWrKBh2/tAw== X-Google-Smtp-Source: AGHT+IHytHgzTgwMeHRNnW21jkYzxrSkyDWNYTBozgbiiU7J0rOvaOMCc1rDcGrtU72YZTggr09/ X-Received: by 2002:a05:6a00:2eaa:b0:702:2e33:af2e with SMTP id d2e1a72fcca58-703e5978514mr5518752b3a.16.1717674268674; Thu, 06 Jun 2024 04:44:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717674268; cv=pass; d=google.com; s=arc-20160816; b=usdByHqT9eIRadLSHZm/gq3jJBUSdMcgB7ltTvNB5v2bnABHwfjWT8/iH68aeC77hs qQ5QSqQQbFyWTi+t6bIm2QAdCDOz2gZNmrgb9fymk8VQODwvkbA6njqynbRNxtAFFtEX 4rgkk7Ai5RwpfQGp5ZBwJu3ISqR6Zz4dQfr6SzITxq2g8DBcNthabyv/PIFXWIcgL53W EBP/uOfxcYc+q5ifKRmNESIhkoMyhHdhNMUvZh2XuAZBhNLFfzGIi7FvmKE2BWY86Zrv 78Oj8QAXD0NcYnTAIF20ZpMWoBH5zvlXIkuh3NowKFnqtaokVZxFY9xB/62WJftEopzg 2j0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=n8NGORqPx5S77js4I5wTAiUClyaMTWInL1TMRlZygzM=; fh=wE+TG1G2siL7pq6tEtBc1ZVqk1uTHN8yX+i53uigddk=; b=afwwkFt3075zDCY2qlk5kQjD37dZk8sYheD5gwW7djrZqBm9dTguqBSGiE8t1bpa6v JlIgr/dtazwTPQo+gYhvStgJ6nVgZprwWxrXLmIPJybf06e2n5N4AjFBAm6sMduKIGrh Fycod52Jga5Zyq3NvL1QKgxMCdeIFO5Xmb9Mj9uMWewtWcdGvEh4S3qCgSoj+wchpV9l hzuo5U5b9kYFFPOlEqul0st+EZygCJZF6dM2ufGtETqUwFJpRBjSRy6+ddFfMj1ZeKkq vAEBu5VBIXciW+naQyITbJEik/6k1xIDA6tfsQq7gt+Ph4+MW9cC69s5kyS//BJsRdLq n/ZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PxluKUId; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd5668d3si968567b3a.333.2024.06.06.04.44.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 04:44:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PxluKUId; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-204189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3DA02B230A9 for ; Thu, 6 Jun 2024 11:39:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0047D195813; Thu, 6 Jun 2024 11:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PxluKUId" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2664D13D2A2; Thu, 6 Jun 2024 11:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717673976; cv=none; b=fWmmYRGPWKhWyXSrzJQIMm8iGvu2UsTJcdXT2O6BmrYYB1KYI3czDAq4HLfk6tttMmnAEeJX6LdXd34lBTO/vHGHCTlQQKiTFPiyTHSwsdauBa6GWkNjC9SHkN8FGzBrCXLuqvOYg5IQfPcdqa7zTYIGxoXFU+pH2BWERSWYUSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717673976; c=relaxed/simple; bh=p8wXrhQRix7YyGimgIgbUuipMII47I8TqUv3RdMezL8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=naU0BAQdXSj1gT/eZ0w1lZHuzU3SyobSxZWSLFB25RBeSY3PkF2T7pZGdnC3m02SGKJbBIRAmQC7mcvIo4ObUHqzhQ5dlAk3nNBLhVT7k+UHBvg9wNBLkKKKFbajn+FGxLxBSKCafkOUpgBZJ6DidOE/adOB/XJYdcVFFRvQR2U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PxluKUId; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 270C8C32786; Thu, 6 Jun 2024 11:39:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717673975; bh=p8wXrhQRix7YyGimgIgbUuipMII47I8TqUv3RdMezL8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PxluKUId4GjYQC8dsW1AOb0RjdQbh1NXSyqlZtJoxvIcRyf14R+TlveN6Lcs1Uh2N +Jzd2EU2gJmZhjJYNBARNqSGiDC4r474yF/rmdVZ5/0OgQlSIlQzfxQWshjkEVBacV OVgPa1/3ZcRm7Oyi2eINvLeLpk1YVT2cwhKTRv61YLCU8CYSOEonRglAWUrh8schYj nyM3MXWanslqZjSZoxi9KM9F9HaCruvI99/jgfNiF07F3BRfAIT0JQprGZkBfYzFxr Y/98qm7aAd8nFtgRneD4B2OWDfjZRqb6okrLgZP4Xi4/AwOCR/37N17F2YeDbPJusX ifVl1oZkRDmhw== Date: Thu, 6 Jun 2024 14:39:31 +0300 From: Leon Romanovsky To: Konstantin Taranov Cc: Long Li , Konstantin Taranov , "sharmaajay@microsoft.com" , "jgg@ziepe.ca" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 1/1] RDMA/mana_ib: ignore optional access flags for MRs Message-ID: <20240606113931.GH13732@unreal> References: <1717575368-14879-1-git-send-email-kotaranov@linux.microsoft.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jun 06, 2024 at 08:30:06AM +0000, Konstantin Taranov wrote: > > > Ignore optional ib_access_flags when an MR is created. > > > > Can you add details on why this is needed? > > Do you mean to the commit message? > If we do not ignore these optional flags, the reg user mr fails because the next 2 lines: > if (access_flags & ~VALID_MR_FLAGS) > return ERR_PTR(-EINVAL); I took this patch as is. Thanks