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 86F28DDC2 for ; Tue, 5 Sep 2023 18:15:56 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88627CC2 for ; Tue, 5 Sep 2023 11:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693937727; x=1725473727; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=oqNG6uEIJ732iaZG6VhQCL/L3OQh3xYiwVCN4tyjR/s=; b=FDHu7I6ND8rwgKhXSGnXuGjoTKBJK9ZueH5LTYnKrIfEEnkxYZ06sBd+ bFHLxUuaP2FTSlu+flgE+/rW2WtgCX9EMXrqr70ArOrByyAXdQQfl/IP/ TIqVrI4S+xPEiP8nDwzCa+SYKrWf/mXIbfrCZJ/TwduIRsdjsmvUnC9S6 uYPlKUwEL9n5zhj8WOljFIT+IyzkM+xNWcArSBGcx52v00WIldENWZ0+D rX50eOEzerIYEbUFKxfAUMe32orCqY9ZCUKs+ixao7My1BtnRLx0EntX5 vg4nv2kiCYvbwGuzORkc/+eLhVa/j0f3/bctPwWNbxx9t11gLta5tm3uv Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10824"; a="356360191" X-IronPort-AV: E=Sophos;i="6.02,229,1688454000"; d="scan'208";a="356360191" 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="741197753" X-IronPort-AV: E=Sophos;i="6.02,229,1688454000"; d="scan'208";a="741197753" 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, Pucha Himasekhar Reddy Subject: [PATCH net 3/3] igb: Change IGB_MIN to allow set rx/tx value between 64 and 80 Date: Tue, 5 Sep 2023 11:07:08 -0700 Message-Id: <20230905180708.887924-4-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 igb devices can use as low as 64 descriptors. This change will unify igb with other drivers. Based on commit 7b1be1987c1e ("e1000e: lower ring minimum size to 64") Fixes: 9d5c824399de ("igb: PCI-Express 82575 Gigabit Ethernet driver") Signed-off-by: Olga Zaborska Tested-by: Pucha Himasekhar Reddy (A Contingent worker at Intel) Signed-off-by: Tony Nguyen --- drivers/net/ethernet/intel/igb/igb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h index 015b78144114..a2b759531cb7 100644 --- a/drivers/net/ethernet/intel/igb/igb.h +++ b/drivers/net/ethernet/intel/igb/igb.h @@ -34,11 +34,11 @@ struct igb_adapter; /* TX/RX descriptor defines */ #define IGB_DEFAULT_TXD 256 #define IGB_DEFAULT_TX_WORK 128 -#define IGB_MIN_TXD 80 +#define IGB_MIN_TXD 64 #define IGB_MAX_TXD 4096 #define IGB_DEFAULT_RXD 256 -#define IGB_MIN_RXD 80 +#define IGB_MIN_RXD 64 #define IGB_MAX_RXD 4096 #define IGB_DEFAULT_ITR 3 /* dynamic */ -- 2.38.1