Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6941764ybl; Wed, 15 Jan 2020 12:45:12 -0800 (PST) X-Google-Smtp-Source: APXvYqwzId5zVbIfrbQAb9rKXW6JlywbFELcXozmpj1gpnZZq8APzDQTn1OC+YvRo83vGA04VeBs X-Received: by 2002:a05:6830:1294:: with SMTP id z20mr4090518otp.60.1579121112278; Wed, 15 Jan 2020 12:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579121112; cv=none; d=google.com; s=arc-20160816; b=E0YgaFITglslT2RtBLCoicjxy1tGCrQG7nSf26rq6RWL5eoMi0bFP7Gss/O6GEByZ/ +LYeaWHOI8RbO8U/z56tUCB2SJyfNOgvFrh0M1Uz7LrOVC602KuqqXr20HhsZUU95IWs 9yIIJVXHFedh+AlYcMXkDGlwC3271Nm8bCRFa/7sufp1YAtL87Kef9IFIIVRpnsUvAUR cNbygdTjVYCP3llG2AQ/iSe5owzuWjYaoU7ne3403lPgF05H07d9Bd5RpYWO1TTjteHE uGsKaKPIT76GQQk+tMYlyXdtnaDVxsPRMpqOyyThMTF2AnyKrJXvf1qr2eHn22ckG0ow JWLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=gyDthlyFU7qngJOjt5wFT45Eoa0mJNNxsALA0YG9p84=; b=JiTw2bqsOtZq8dppBhUd0Vo5yJHdbI+QEQjoeOxGYgku70uEvTQsZfPZVFc+EzcQWH ebwVLbJlPoDm9wIvVeHKj6KcgnAgqdmMAV18xSGDj/Ou7Mite7eTuQHlg+wLzedogSkS 75ekdq3qCrox6PeJtyeR7YB/WF8YA1yt2DUCJn72Wd2WL9fgBpjXisAFBuVcY5jBLw5U /TvhcZYsWdiOIoMB1gQWf8N67y7K2vg9Jfd6+Um3c/bNhaf1urIhRW5Gs3kp4OWN9Tge VxrLEZLkfy+v0iXRyh3JN6GR1eJfciR2Jdf1ppUZ+dFwM9nRte8Y5A3pTkegZRcam5pP +mmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2019-08-05 header.b=Fbq1ONyf; 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 g126si10776726oib.105.2020.01.15.12.44.59; Wed, 15 Jan 2020 12:45:12 -0800 (PST) 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-2019-08-05 header.b=Fbq1ONyf; 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 S1729399AbgAOUFP (ORCPT + 99 others); Wed, 15 Jan 2020 15:05:15 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:41698 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726527AbgAOUFP (ORCPT ); Wed, 15 Jan 2020 15:05:15 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00FJsYRj159328; Wed, 15 Jan 2020 20:05:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2019-08-05; bh=gyDthlyFU7qngJOjt5wFT45Eoa0mJNNxsALA0YG9p84=; b=Fbq1ONyfo9UVx9WRUhdV4aIidvDS22t/9x7pEnMlD7QJi2vTr6JzzFLOFnGUWDUMbOev bRxUcoPUtCxaR8kozJktbGJBun0Lobzqoq+sozLeR6GJbIN0Xm1S5vJ8Y59rEhvNwKbJ ohSxcQHUsPW3PHTBKhLdugkWSnP5ms1V9/5FqvFjVb32jRC2dRz3rAIK5DYWpJLJ7Asf I6uSBopo54KARJOmfRnS5P31jjEqIslzsvsX8IX1iVjBnRnKz2cShSpDKSvubudF/QI4 vlo6nIQfVq2jl3goR2CWGDTPCxNLz6yNHe2K+j0/gw7cRd1n2gxAfzm4S0SOyjZHbGKF lQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2xf73txc97-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Jan 2020 20:05:07 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id 00FJsag8191303; Wed, 15 Jan 2020 20:05:06 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2xhy220edh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Jan 2020 20:05:06 +0000 Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 00FK54CV004135; Wed, 15 Jan 2020 20:05:04 GMT Received: from [10.159.151.219] (/10.159.151.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 15 Jan 2020 12:05:04 -0800 Subject: Re: [PATCH v3 2/2] SGE buffer and max_inline data must have same size From: Rao Shoaib To: Jason Gunthorpe Cc: linux-rdma@vger.kernel.org, monis@mellanox.com, dledford@redhat.com, sean.hefty@intel.com, hal.rosenstock@gmail.com, linux-kernel@vger.kernel.org References: <1578962480-17814-1-git-send-email-rao.shoaib@oracle.com> <1578962480-17814-3-git-send-email-rao.shoaib@oracle.com> <20200115182721.GE25201@ziepe.ca> <93b8e890-c4a9-6050-88b7-3667c023dd34@oracle.com> Message-ID: <70651c3f-e5cb-2a33-1682-6564255e2307@oracle.com> Date: Wed, 15 Jan 2020 12:05:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <93b8e890-c4a9-6050-88b7-3667c023dd34@oracle.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9501 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001150153 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9501 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1911140001 definitions=main-2001150153 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/15/20 11:57 AM, Rao Shoaib wrote: > >> I seem to recall the if the requested max can't be satisified then >> that is an EINVAL? >> >> And the init->cap should be updated with the actual allocation. > > Since the user request for both (sge's and inline data) has been > satisfied I decided not to update the values in case the return values > are being checked. If you prefer that I update the values I can do that. > > Shoaib > In my original v1 patch I did update init->cap, I must have overlooked it. I will resubmit the patch with that change once I hear back from you about the enforcement. Shoaib