Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp630300pxv; Thu, 15 Jul 2021 11:59:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFU/wxGTrh4Q0eSWvQznE+uHfogvDio5z8K+l7Yi2C23E2Xee4y8w7iP9rb9qiK+KcDZlF X-Received: by 2002:a05:6638:3181:: with SMTP id z1mr5283557jak.100.1626375552260; Thu, 15 Jul 2021 11:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375552; cv=none; d=google.com; s=arc-20160816; b=o1UwUoqrZfPJ95Ul77NNn1ZnPiXNiqcJ4nzRoesdUyc/3+O8/c4xNtbH/8pq+sF0MY 11XuuGqb9BZRMNih+7VHZdUJQAy4J3dI7ZbjO4XaquYIwT/0JOEMauDir8tY8WMqe2OZ XX+bJRjKvIfNoSu+EgAIwehAFLaBO9uSp8EV4WnYuynd2/KwLWVdX3XY6NEuVJFOH0WT NGJByZJD2lVqpPsKmyhwb2yYfkwtlWSrTp46zAXQb2fhafY46JN8jSyIVlbtYdm+x2FW KCvf80a3bwIkXb0wnPYJ7vXEb0NklCiOCza1kPGwl9OCPTA3JNirqF/rrhWrGcrZ0IPJ EiWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KyZksRT65QBfa5oGw5NuIoKSA8/+Wt0g7HUZVi6xUg0=; b=fldXwHSGFRgbZgyYDxuNtZB4dBf0VbqcnDFPN1NMLwH+VcbTrNuoufDzHMsj78rmE/ fO1MBaxZLLDFsMGqs4DLTsjyWbR2QzC3H5w7cxHDgATnowdlw4j1yz+MEu8LjH6HQImQ gzDpEyWf62P2y5U1Zc8/9kKeXfO4Su0o9T1kXojSk5iAGRngNj/nvu8y5GyL4q/rcwSF q03foacM1+Po3QlSLqicIfQOZ2z5DRGoh74g3BquKvAfeojs5K6ftP45SAWH/yAKOQJf N84xV/LAJtOTpeZXixDHiOPcvS/UR3MCnqHnC/JAbqdmel9uUtYYNtxtpRD2lxLzLIBI 13gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JyHvItQk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si7111577ile.132.2021.07.15.11.58.59; Thu, 15 Jul 2021 11:59:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JyHvItQk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242394AbhGOS7k (ORCPT + 99 others); Thu, 15 Jul 2021 14:59:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:54368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239776AbhGOSwl (ORCPT ); Thu, 15 Jul 2021 14:52:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2ECBF613CF; Thu, 15 Jul 2021 18:49:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626374987; bh=umTpPidblLEoLIcldFS+oYQrpZPqv5PsjC7OHkD8deQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JyHvItQkPMHGMUBUoi55MW/CCBGcAUpLz4135jDn1I3mkgiT5ASlKiPCX7hvTjdb2 Z+jtK1y+4ZrxYXO9PEjostZ5KHy9AJ8jjOq7/LUiePGYfQ7VASJS8mB9T6fTVI/P06 VDYDHro0Y0pSuXwH2Yr52s7sl1HjUYzwUsNRANts= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alaa Hleihel , Israel Rukshin , Max Gurtovoy , Sagi Grimberg , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.10 112/215] IB/isert: Align target max I/O size to initiator size Date: Thu, 15 Jul 2021 20:38:04 +0200 Message-Id: <20210715182619.339869374@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Max Gurtovoy [ Upstream commit 109d19a5eb3ddbdb87c43bfd4bcf644f4569da64 ] Since the Linux iser initiator default max I/O size set to 512KB and since there is no handshake procedure for this size in iser protocol, set the default max IO size of the target to 512KB as well. For changing the default values, there is a module parameter for both drivers. Link: https://lore.kernel.org/r/20210524085215.29005-1-mgurtovoy@nvidia.com Reviewed-by: Alaa Hleihel Reviewed-by: Israel Rukshin Signed-off-by: Max Gurtovoy Acked-by: Sagi Grimberg Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/ulp/isert/ib_isert.c | 4 ++-- drivers/infiniband/ulp/isert/ib_isert.h | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index e653c83f8a35..edea37da8a5b 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c @@ -35,10 +35,10 @@ static const struct kernel_param_ops sg_tablesize_ops = { .get = param_get_int, }; -static int isert_sg_tablesize = ISCSI_ISER_DEF_SG_TABLESIZE; +static int isert_sg_tablesize = ISCSI_ISER_MIN_SG_TABLESIZE; module_param_cb(sg_tablesize, &sg_tablesize_ops, &isert_sg_tablesize, 0644); MODULE_PARM_DESC(sg_tablesize, - "Number of gather/scatter entries in a single scsi command, should >= 128 (default: 256, max: 4096)"); + "Number of gather/scatter entries in a single scsi command, should >= 128 (default: 128, max: 4096)"); static DEFINE_MUTEX(device_list_mutex); static LIST_HEAD(device_list); diff --git a/drivers/infiniband/ulp/isert/ib_isert.h b/drivers/infiniband/ulp/isert/ib_isert.h index 6c5af13db4e0..ca8cfebe26ca 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.h +++ b/drivers/infiniband/ulp/isert/ib_isert.h @@ -65,9 +65,6 @@ */ #define ISER_RX_SIZE (ISCSI_DEF_MAX_RECV_SEG_LEN + 1024) -/* Default I/O size is 1MB */ -#define ISCSI_ISER_DEF_SG_TABLESIZE 256 - /* Minimum I/O size is 512KB */ #define ISCSI_ISER_MIN_SG_TABLESIZE 128 -- 2.30.2