From patchwork Tue May 28 06:11:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Selvin Xavier X-Patchwork-Id: 13676180 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65C758F48 for ; Tue, 28 May 2024 06:32:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716877947; cv=none; b=TX5O+Py/qdq60NWss8/wpQbt/oTyzzEAI3Dbp7DhMCAIZWD7x9NF2Wkl1Ei0unwclAsZG9WdowKZ2VB7a3sbST9bQjG3hvLjz30Bieka1eGh0Yel4jgRWEygSJa1vAMRdX9v3/R2sOvrGcLjixIRRyNwZPvQQCh4C5Qmf82Rw2I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716877947; c=relaxed/simple; bh=7gOMlPhqDVm2FbhUkRtkPSE2Res5OkyBmsvA2wuN2rw=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type; b=ehIsNHVniqSru7OpbOJUX7CR+roZ0ZSy2xGvF9kDCZBrP4eFWVORCwqHz5ulHCYFhVX5ELuCzaOF7d3khxmB7iw8EQxd/M1BAwawCN5H6nB6Nnl5tqJNgwSR5FY5Sp/I0kP+Jww2pwEklEKncm55BNi9n45F9DyQdMXcoPmC350= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=QbA69aKJ; arc=none smtp.client-ip=209.85.216.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="QbA69aKJ" Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2bfb6668ad5so355834a91.0 for ; Mon, 27 May 2024 23:32:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1716877946; x=1717482746; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0z7ftDOAyCOgBvaOrqy7mtIDvfJXK3uQzHujkVjY6xU=; b=QbA69aKJBeS3RG+n/kAfO3G1J9Puei6b5IkL3AspRmY3u9wII6Y2PPH7lZJjHEteA4 Vu9I3+dTZ8CfNbi8F25LN8VolQTwNv5/u/HRR14FWpJ28xpjEyNlxvdh5c7Bxy4tT4ZX 4mTlQ9nczANAbwdvXIO5+bEAL5gQB7VKR+sBc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716877946; x=1717482746; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0z7ftDOAyCOgBvaOrqy7mtIDvfJXK3uQzHujkVjY6xU=; b=ka3sa2y9EuoTj/1Ybu9E/ybYoG4EhF6kGwW79gk/xUrIZlcCo3IpYmARsdX6fu9iJy /KL3oBHbd4p9xdXumT1On0zUko6RJkVBiZntUjj9aUGNsJcmmWa8XSjIRGpVFGKWycTr 2Yvszng7sXa2o3aNC7MLwQYhCPhZgYb2+ZGZjLb3jXS0OjR80UC8Xzih+qk5UTLMSZ66 NxiFmMqjl5gqw0oivWsuerNG7OyIEhRq+9PFOYpLoSE6CncMXzIUCoubVbXZnPTdYKvJ EvXhTBOlLOv4SL6+AlSGKgzBF7W2JhFMen1wchf8pfemrhndImwVzslXxXeiKtXxZhif vTLQ== X-Gm-Message-State: AOJu0YwDZBCYSxMCaiAmepCfrutvhvupyyDTNNTDzhGafSUmb2dosHSq kMolB+82JAyyeXCHP8W5/1TPfO+pfF/MYnO8tCDwhgYeeI9OrWzfF1gEL9uFWKLXCup89Ev+RpX mFP/C X-Google-Smtp-Source: AGHT+IG3NrGcagCL3KPfAw6wPbNUtabkU4ZjJuCs+sdm4OEWf5ILD+ZFjW5oLpH1pXeA4OOqpLBtSQ== X-Received: by 2002:a17:90b:3a8a:b0:2bf:cf47:939b with SMTP id 98e67ed59e1d1-2bfcf47946fmr4346125a91.36.1716877945549; Mon, 27 May 2024 23:32:25 -0700 (PDT) Received: from sxavier-dev.dhcp.broadcom.net ([192.19.252.234]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bf9edebd4asm4584847a91.55.2024.05.27.23.32.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 May 2024 23:32:24 -0700 (PDT) From: Selvin Xavier To: leon@kernel.org, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, andrew.gospodarek@broadcom.com, Selvin Xavier Subject: [PATCH v4 for-next 0/2] RDMA/bnxt_re: MSN table capability check for latest adapters Date: Mon, 27 May 2024 23:11:35 -0700 Message-Id: <1716876697-25970-1-git-send-email-selvin.xavier@broadcom.com> X-Mailer: git-send-email 2.5.5 Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Add MSN table capbility check for newer adapters. Expose this capability to user library. Please review and apply. Thanks, Selvin Xavier v3 -> v4: Rebasing the code to latest for-next branch v2 -> v3: Use data type bool instead of u16 for is_host_msn_tbl v1 -> v2: Updated the commit message of both the patches with more details Selvin Xavier (2): RDMA/bnxt_re: Allow MSN table capability check RDMA/bnxt_re: Expose the MSN table capability for user library drivers/infiniband/hw/bnxt_re/ib_verbs.c | 3 +++ drivers/infiniband/hw/bnxt_re/qplib_fp.c | 12 ++++++------ drivers/infiniband/hw/bnxt_re/qplib_fp.h | 2 +- drivers/infiniband/hw/bnxt_re/qplib_res.h | 6 ++++++ drivers/infiniband/hw/bnxt_re/qplib_sp.c | 1 + drivers/infiniband/hw/bnxt_re/qplib_sp.h | 1 + drivers/infiniband/hw/bnxt_re/roce_hsi.h | 30 +++++++++++++++++++++++++++++- include/uapi/rdma/bnxt_re-abi.h | 2 +- 8 files changed, 48 insertions(+), 9 deletions(-)