Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 738ACDDC2 for ; Tue, 5 Sep 2023 18:15:54 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCF7CA for ; Tue, 5 Sep 2023 11:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693937725; x=1725473725; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TpU4uGqZl5WDI6YtVILTLU/9rz8gZGqcUGMBKAOo9Gg=; b=Et10Ha65VM/XmJ2W01ntSicMjygshVjyhLUb6+DNNUFVg9tv9VcPgpQ4 poPc+kVoEbPbrM5xj2a3vMBrx/IDo0dvc8Ivcj2uV83giIAaydK0wbcgB F0vmBRmCVLmSaSk6Y+dOrpAMPZnIdmL1iX6r35xHs2KwclrKss22Mh7Ne 1Zw6GcYMWd++rtKPDIUJcp7o4XyFu79SgZrnFzzbbcUyn9eiALVQocKjg VjQEArBtInsyEw/BjOUsha7RmYVlrldaNexUMiWaiYu2XpSgNg0Vz261J 7FwGf+CthJAsPfcm7mDLjNcq57ooZFC6YLChG7N5aL3ERBVGW8wlCuz2m g==; X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="356360184" X-IronPort-AV: E=Sophos;i="6.02,229,1688454000"; d="scan'208";a="356360184" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2023 11:14:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="741197750" X-IronPort-AV: E=Sophos;i="6.02,229,1688454000"; d="scan'208";a="741197750" Received: from anguy11-upstream.jf.intel.com ([10.166.9.133]) by orsmga002.jf.intel.com with ESMTP; 05 Sep 2023 11:14:43 -0700 From: Tony Nguyen To: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com, netdev@vger.kernel.org Cc: Olga Zaborska , anthony.l.nguyen@intel.com, Rafal Romanowski Subject: [PATCH net 2/3] igbvf: Change IGBVF_MIN to allow set rx/tx value between 64 and 80 Date: Tue, 5 Sep 2023 11:07:07 -0700 Message-Id: <20230905180708.887924-3-anthony.l.nguyen@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230905180708.887924-1-anthony.l.nguyen@intel.com> References: <20230905180708.887924-1-anthony.l.nguyen@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net From: Olga Zaborska Change the minimum value of RX/TX descriptors to 64 to enable setting the rx/tx value between 64 and 80. All igbvf devices can use as low as 64 descriptors. This change will unify igbvf with other drivers. Based on commit 7b1be1987c1e ("e1000e: lower ring minimum size to 64") Fixes: d4e0fe01a38a ("igbvf: add new driver to support 82576 virtual functions") Signed-off-by: Olga Zaborska Tested-by: Rafal Romanowski Signed-off-by: Tony Nguyen --- drivers/net/ethernet/intel/igbvf/igbvf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/igbvf/igbvf.h b/drivers/net/ethernet/intel/igbvf/igbvf.h index 57d39ee00b58..7b83678ba83a 100644 --- a/drivers/net/ethernet/intel/igbvf/igbvf.h +++ b/drivers/net/ethernet/intel/igbvf/igbvf.h @@ -39,11 +39,11 @@ enum latency_range { /* Tx/Rx descriptor defines */ #define IGBVF_DEFAULT_TXD 256 #define IGBVF_MAX_TXD 4096 -#define IGBVF_MIN_TXD 80 +#define IGBVF_MIN_TXD 64 #define IGBVF_DEFAULT_RXD 256 #define IGBVF_MAX_RXD 4096 -#define IGBVF_MIN_RXD 80 +#define IGBVF_MIN_RXD 64 #define IGBVF_MIN_ITR_USECS 10 /* 100000 irq/sec */ #define IGBVF_MAX_ITR_USECS 10000 /* 100 irq/sec */ -- 2.38.1