From patchwork Thu Jun 19 17:08:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 4385121 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7CDD39F314 for ; Thu, 19 Jun 2014 17:08:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8542C20306 for ; Thu, 19 Jun 2014 17:08:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A93C2026D for ; Thu, 19 Jun 2014 17:08:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932894AbaFSRIJ (ORCPT ); Thu, 19 Jun 2014 13:08:09 -0400 Received: from mail-we0-f170.google.com ([74.125.82.170]:48204 "EHLO mail-we0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933062AbaFSRIH (ORCPT ); Thu, 19 Jun 2014 13:08:07 -0400 Received: by mail-we0-f170.google.com with SMTP id w61so2699564wes.15 for ; Thu, 19 Jun 2014 10:08:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=wu1vEiwuInA2n/OOwPFplpjQwO+kjOHkbp+uV5AfhuA=; b=cfUWZtpwF0wKzb1bzogzVvgJ5FO1JYAdrEPK1hJoYygcDW0PMR3U6lmyHGKj160xX3 BN67JrOMPI5Pe77c59aSU2UGwtNJgqaVngGXl61SxVdqww56fFZKlh8A6a7Fxj6GjG8g iVT+rWrFE1WOl/vFpSf5fg5bpqLlunGiOC2xG6zW7Xo+TRaeqeY5LfFHu7dWquweZA96 CzdiEyvb3QGi87/HdSuV4Q9FN4XTgDer6HdJI/p3iyLrLAAxa6GIa3fh7fSXa9tPF5Ya wlLRYcsU6xGNsg9mll2wfCW/UVNlEsfOuMsCHmhpVuko17WCPwWfi/65pvYun4qmSPxB IyDg== X-Gm-Message-State: ALoCoQnRZDq+WFZc+fC3NAfxYUMUlP8QdIkplfUVKXpmq/j10fyxXfp7Pb4LsHGyAsRsDK3tB0GQ X-Received: by 10.194.243.104 with SMTP id wx8mr6394903wjc.32.1403197685790; Thu, 19 Jun 2014 10:08:05 -0700 (PDT) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id 18sm9912995wju.15.2014.06.19.10.08.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Jun 2014 10:08:05 -0700 (PDT) Message-ID: <53A318F2.2030601@dev.mellanox.co.il> Date: Thu, 19 Jun 2014 13:08:02 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "Hefty, Sean" CC: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH librdmacm] [TRIVIAL] cma: In ucma_convert_path, fix selector values Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Intent is for the selectors to be equal to (exactly) rather than less than. Selector for exactly is value of 2 rather than 1. Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/cma.c b/src/cma.c index bedc95f..a2543f2 100644 --- a/src/cma.c +++ b/src/cma.c @@ -701,11 +701,11 @@ static void ucma_convert_path(struct ibv_path_data *path_data, sa_path->numb_path = 1; sa_path->pkey = path_data->path.pkey; sa_path->sl = ntohs(path_data->path.qosclass_sl) & 0xF; - sa_path->mtu_selector = 1; + sa_path->mtu_selector = 2; /* exactly */ sa_path->mtu = path_data->path.mtu & 0x1F; - sa_path->rate_selector = 1; + sa_path->rate_selector = 2; sa_path->rate = path_data->path.rate & 0x1F; - sa_path->packet_life_time_selector = 1; + sa_path->packet_life_time_selector = 2; sa_path->packet_life_time = path_data->path.packetlifetime & 0x1F; sa_path->preference = (uint8_t) path_data->flags;