Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp659553pxv; Thu, 15 Jul 2021 12:44:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWhlOB9DdGgNjgQoaaSxL3c2X/W62Spk6pgrPU+g80v/qN2+pBR6rdyQtn2uBm29GQ+s2B X-Received: by 2002:a92:d8cf:: with SMTP id l15mr3723356ilo.227.1626378270876; Thu, 15 Jul 2021 12:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378270; cv=none; d=google.com; s=arc-20160816; b=rViGFrPYPoUjkD+xM6GnEbc5Gl+p7R73xUYJDntGJNkrteB4Hj0c7k1hfzyinyNwr+ Iu97mdO2NupX8W9CDXLd/SWMK7rKk5M02FFx9OX2jPEaLr238JEqNOe3ugGj76ec2u+x ghkKglfXLAVVxh8/28VqNXsyvNJMhuYzYinVBEQ445aCwRRK+xXhMzF+o9em4q7EpoYY OFhhCDh2tYBYL17152qVe4pgjBLpQn/g4YflAIQSYyYHShZXTtjliLK+JLoUcyRJTWPX etIFhLCpm49tXAVDmtqCjTOeILuKZs+fVp/p053vx+CuTJGoMa+gIGjqszHYISu2Rfp8 j3oA== 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=ywCuAIHXD70DXNSJJwrIU+nLniAniVAGKWQxcMUWuVM=; b=DQTCTQrjMiz8GIqR7ShBzZC2g2B9NQvGzq9OqN7lWjRkKsY+YYcYyNxvACrDle0/sx J4EI5vR5jZvM5HuqgQtHSCrQwGZqVeH/fuZL7D7sgukLrrY4EgKdCHqn2dmrSibye533 3/rYZxOk/oF8lkgUwY7DLHbgbbwqTabSnzQZ+WvZ7p3gI8NRCzAo7ql+ajEGkCOvR4d8 etWWl4kmJ3rSihBlXMt2DV7EaGkZqfPkL4YshMFhYTcuuA2dKryBRJscHDvR6m9G3M3N rw3pDRtEXfda/CBp6nNCud11Y4xJ/ntha8xWYAz3x7E/vTRPwxwJJ7I/eqWn6F4x9mNW yjiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=C7GLRED3; 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 u8si9864285ill.90.2021.07.15.12.44.18; Thu, 15 Jul 2021 12:44:30 -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=C7GLRED3; 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 S1344477AbhGOTob (ORCPT + 99 others); Thu, 15 Jul 2021 15:44:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:51154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242135AbhGOTMv (ORCPT ); Thu, 15 Jul 2021 15:12:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F14E613EE; Thu, 15 Jul 2021 19:09:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376162; bh=OLYz9Fhx4UCce3belqp6thG8WF8rjYVJA9ABbB28Ka4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C7GLRED3F3x+L0C+OXsIDjvm659m+gFPcfxd/SQ/J3K9DmM5UAGnR80sUWIWf3zOD bHzqzWgj5g/1IjQILqpwMXfwCEqboaitCdjOKQJt13LkkYcR9SYoLQApVL0XrxnKfq Z+/m2+pqoPW2ZdaaaNca/FNFg43AhkC0m4JqhX1A= 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.13 152/266] IB/isert: Align target max I/O size to initiator size Date: Thu, 15 Jul 2021 20:38:27 +0200 Message-Id: <20210715182640.068407067@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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 18266f07c58d..de3fc05fd2e8 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