Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2336487imm; Wed, 16 May 2018 11:16:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpKsUhsgRzS554ZV8zfAtpHpDawLt8miHZD+edVuW+OtGNN6K9peEYAQuIp99srRPvkGO/V X-Received: by 2002:a17:902:ac96:: with SMTP id h22-v6mr1964020plr.338.1526494578394; Wed, 16 May 2018 11:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526494578; cv=none; d=google.com; s=arc-20160816; b=ar5yW5GbV7TGoghBPrviKSICdVZcz0FiU6A5Uy64iihoZ/npNVgVETI4K8wOTF58qI FYOwFc6jMEzKN46mAii5hBvL+gbcld8nVedB/ZfHSre7X5z6KhrQCHb4w81hr9JBtpPM qr0EfZe7SvJGl27FtiUBw3QoTQVMHk07LUdA9AgYYGQB5Ex8PwF63byp6zBAo2DljkXe Kd7kJEQ35qRr+HGwg1wRWaelO2m9+VGXsssW/uVktVxlg/wDmIUPFesaa7TbbkLXYlGX 34B34pQrppmOV1l5tXHEto7w4Ol8MTS+K51K9SR40TgNglNzJVe7kFPcAh45qU65zNrk aAlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:arc-authentication-results; bh=b5CbmOhTnzbS+Sbcf8pVT73nmrj7mJtwPbwrmEUrQKE=; b=aXtjY1AuGSrukN3uQjqCetXnXedzjsUENEHE6dpu8RqXREhgfXPmw9NtrzyZKZdGrP R1OF8QVmi1hmeFOEleul1+NroScxdBD/zyqhtocvjQqEVqQtKzOGofvN3cTE9oyWYZkQ KsXo5h1IxL70n+WtRrfM7G0+1rz8KMlXU5EXk5bIUExaMcenDasoF5WQqEjdlTmhN55n NvbbSs8zrdwYWnW6drBcHIOWMyLhsjXpu6O+34m1Pitmi4M0YCnX16C0yHMqPXj7+7Kq m2ekmzjV+zfOU3uOmFbx0yPik94YNPzj3gh1/MOOTCx7qFjLSz8Fq/ezjGC+SRXmgEog aZAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=ds2YuKpR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w9-v6si3160475plk.28.2018.05.16.11.16.04; Wed, 16 May 2018 11:16:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=ds2YuKpR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751213AbeEPSPM (ORCPT + 99 others); Wed, 16 May 2018 14:15:12 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:45910 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750759AbeEPSPL (ORCPT ); Wed, 16 May 2018 14:15:11 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4GI72bZ005744; Wed, 16 May 2018 18:14:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2017-10-26; bh=b5CbmOhTnzbS+Sbcf8pVT73nmrj7mJtwPbwrmEUrQKE=; b=ds2YuKpRDvB5vY6EmifqbV/9il1erNfH455fEBfTg+d1fwbqSEWco65NHxs8hzS2dW4p 9GOv8PjVpRjFWocQWzUKUof/aDekb6BCpxXEkfTTIDWHLbv4ZQShJVbrPpJOCE572Etj G0jDNLf2Fx9gGqZGydQKwjIeUeKszbmgMu5EmgSloIT3+j2WTYOVbgpx95smFKl5+cHW PShXsqOHdIi8yrFw/9jvGSMgV32BnRe5Ka4M2hXNpETvdn68gnBp7ShMcYcActX1sMMe KVx93rZZ77753401u7KdvsX3v43MRFjIRmhqzHornppGYbOxgMi0+HBTXwhBGTwtK6HS QA== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2hx29w62wb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 May 2018 18:14:57 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4GIEtZ1014405 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 16 May 2018 18:14:56 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4GIEtmB022216; Wed, 16 May 2018 18:14:55 GMT Received: from dhcp-10-65-168-186.vpn.oracle.com (/10.65.168.186) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 16 May 2018 11:14:55 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: [PATCH IB/core 2/2] IB/cm: Send authentic pkey in REQ msg and check eligibility of the pkeys From: =?utf-8?Q?H=C3=A5kon_Bugge?= In-Reply-To: <20180516180115.GF25661@ziepe.ca> Date: Wed, 16 May 2018 20:14:50 +0200 Cc: Doug Ledford , Don Hiatt , Ira Weiny , Sean Hefty , OFED mailing list , linux-kernel@vger.kernel.org, Hal Rosenstock Content-Transfer-Encoding: quoted-printable Message-Id: References: <3bee76df-49a6-cf3c-6df4-749a6309358e@dev.mellanox.co.il> <20180514210200.GN21531@ziepe.ca> <20180515190424.GL5615@ziepe.ca> <3E15B62F-E705-43BD-8A72-9E74F784D40E@oracle.com> <20180516151201.GA25661@ziepe.ca> <695ae613-931a-50ba-2b83-9d172e0ac2bc@dev.mellanox.co.il> <151B2A36-28F0-4A88-8633-31AE7E55F848@oracle.com> <20180516180115.GF25661@ziepe.ca> To: Jason Gunthorpe X-Mailer: Apple Mail (2.3445.6.18) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8894 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=646 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805160179 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 16 May 2018, at 20:01, Jason Gunthorpe wrote: >=20 > On Wed, May 16, 2018 at 07:46:10PM +0200, H=C3=A5kon Bugge wrote: >=20 >> OK. Lets take one example. The pkey table contains 0xFFFF, 0x8001, >> 0x0001. >>=20 >> The wce.pkey_index is 1 (i.e., pointing to 0x8001). Now, tell me, = was >> BTH.PKey 0x8001 (matches 0x8001) or was it 0x0001 (also matching >> 0x8001) ? >=20 > As far as the Linux core is concerned, it must have been 0x8001, > because the only way the pkey_index feature works properly is if > exact-match takes precedence over in-exact match. And now if the table only contains 0xFFFF, 0x8001, how do you tell? H=C3=A5kon