From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E6F6C282C4 for ; Tue, 22 Jan 2019 06:49:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C457020879 for ; Tue, 22 Jan 2019 06:49:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548139745; bh=1Asg4KcNieEL/QmMpplOI/BIDp22m2qHK7sIGd07z74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=xv4x8K/RyAaZk2Fu6Y08htsY+Piw16NGl3fMJGN3XoHyg23TFbb/AuL9VXTzsMde1 A9yQhtN+w/MU2Sfegcu9L447SK7JtrLy3bwcXpCSLOGo7FEnBsdn3jQRSc/H3+Iv1Q S+HMvFAZE66gqmPVaiSELpiGhdbio25sWSwteC8I= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727094AbfAVGtE (ORCPT ); Tue, 22 Jan 2019 01:49:04 -0500 Received: from mail.kernel.org ([198.145.29.99]:42998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfAVGtD (ORCPT ); Tue, 22 Jan 2019 01:49:03 -0500 Received: from localhost (unknown [77.138.135.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD4F120861; Tue, 22 Jan 2019 06:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548139743; bh=1Asg4KcNieEL/QmMpplOI/BIDp22m2qHK7sIGd07z74=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=edmu+4nLfM94XrCvjSa0U4Q6kLnKrTFVZGEE/3gujUtvEqttQ1EEdSuyiWzHggENE Klj9MEvf77D3t/U19tHyDmeUneepBuVx+LUE0XmYCnmUpPmqWTZzonHpQ+f2nWIRCU BAuWTL5ZmgfyzixXLoFvnqDmHktdRyyWo9YM3PFw= From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , RDMA mailing list , Majd Dibbiny , Moni Shoua , Saeed Mahameed , linux-netdev Subject: [PATCH rdma-next 02/12] IB/core: Allocate bit for SRQ ODP support Date: Tue, 22 Jan 2019 08:48:41 +0200 Message-Id: <20190122064851.6032-3-leon@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190122064851.6032-1-leon@kernel.org> References: <20190122064851.6032-1-leon@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Moni Shoua ODP support matrix is per operation and per transport. The support for each transport (RC, UD, etc.) is described with a bit field. ODP for SRQ WQEs is considered a different kind of support from ODP for RQ WQs and therefore need a different capability bit. Signed-off-by: Moni Shoua Reviewed-by: Majd Dibbiny Signed-off-by: Leon Romanovsky --- include/rdma/ib_verbs.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index d6e0a7d35097..38438561b648 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -268,6 +268,7 @@ enum ib_odp_transport_cap_bits { IB_ODP_SUPPORT_WRITE = 1 << 2, IB_ODP_SUPPORT_READ = 1 << 3, IB_ODP_SUPPORT_ATOMIC = 1 << 4, + IB_ODP_SUPPORT_SRQ_RECV = 1 << 5, }; struct ib_odp_caps { -- 2.19.1