From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83E65E77180 for ; Mon, 16 Dec 2024 06:48:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 478E240B47; Mon, 16 Dec 2024 06:48:56 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id OwywoXGXry7Q; Mon, 16 Dec 2024 06:48:55 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 8B0CE407CD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1734331735; bh=y2wkeK1HVRVSK05XIKncFhFVPDnUcSDvVOdpNfxudJE=; h=From:To:Cc:Date:In-Reply-To:References:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=AcuoNDlaf3fSsQjcIha6mxDPy2UBiwB7ByYsiWVO56/0pVJaFLXcygX9pofoJ3JYC mVdxzZhkgdp5q0LnTEH2qg2IEOy2y8q1Vl35etsURSerpZo7aFn2o1Y/+gW0dUPqGx V/PSxE15O6psbXsUjc3RYIDlNgK5O1JPY0bqQeg69fGpC6aYIeLUE2Onh/gMec9Mxd 6srgFx3VYvqhX+igK1hWF09kcUox7TXYez3cFcyxbdUO0BUmmcaeExLWBkEmVX4tlT ThvRaV+Ui6BbpoS5jsYTjRRtKqS+etshVKngvrstXMk+VtfLKECTG45B7FQrbiuwr5 PkOv182FGebkw== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 8B0CE407CD; Mon, 16 Dec 2024 06:48:55 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists1.osuosl.org (Postfix) with ESMTP id 6496AC1 for ; Mon, 16 Dec 2024 06:48:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5327881BF5 for ; Mon, 16 Dec 2024 06:48:53 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id oFZZR1teBiu8 for ; Mon, 16 Dec 2024 06:48:52 +0000 (UTC) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=198.175.65.16; helo=mgamail.intel.com; envelope-from=faizal.abdul.rahim@linux.intel.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org 9DE2F81B8A DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 9DE2F81B8A Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by smtp1.osuosl.org (Postfix) with ESMTPS id 9DE2F81B8A for ; Mon, 16 Dec 2024 06:48:52 +0000 (UTC) X-CSE-ConnectionGUID: W8ifZdmhShqJ/GmlucVtTA== X-CSE-MsgGUID: gneYCxrkSFaOm02NPER8eQ== X-IronPort-AV: E=McAfee;i="6700,10204,11287"; a="34848194" X-IronPort-AV: E=Sophos;i="6.12,237,1728975600"; d="scan'208";a="34848194" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Dec 2024 22:48:52 -0800 X-CSE-ConnectionGUID: Qo3+iPYiQk+lYjS+equ3Ng== X-CSE-MsgGUID: mRUZg2REQ/qZPZ0u3CJ5jQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="128101855" Received: from mohdfai2-ilbpg12-1.png.intel.com ([10.88.227.73]) by fmviesa001.fm.intel.com with ESMTP; 15 Dec 2024 22:48:48 -0800 From: Faizal Rahim To: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Vinicius Costa Gomes Cc: Faizal Rahim , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Date: Mon, 16 Dec 2024 01:47:13 -0500 Message-Id: <20241216064720.931522-3-faizal.abdul.rahim@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241216064720.931522-1-faizal.abdul.rahim@linux.intel.com> References: <20241216064720.931522-1-faizal.abdul.rahim@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734331733; x=1765867733; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lp2ZOST2PsJMRL/3aLQoOskt3ewvhhs0cnvkLwFO9gY=; b=NUTbA5BCJIzFgq5LX2MKtkAfOWTHkKNgEIUYZWFjLu+o1Wh0MxtokmAJ XVLSRqBix9Q7QtLleqNDdvGjyrJqrMUawAY4a3Kf23OOqgS7X/x3JngQU zzRH41kMRcntfYsWVc2HS9WlkPWaZk0xZ6izHQyQIe3TCimvldx/BAAqq 6aQ0+Brp+pJGB6qdRdfjhrbuxx0t9guSjMKOFz/lXDSf5GVHGswQ2WAUy Q3N05al/4l4CCR+SAhuTK0DjHIbfXe5vjwFWui+FyM+o2c2kMp4FsCRpe sCWQqnTUz9PUdzW4y2UV00+uKX02Mjp+GULje7OVH2m/lHWoIWNBzIbvN g==; X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dmarc=none (p=none dis=none) header.from=linux.intel.com X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NUTbA5BC Subject: [Intel-wired-lan] [PATCH iwl-next 2/9] igc: Optimize the TX packet buffer utilization X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" From: Vinicius Costa Gomes Packet buffers (RX + TX) total 64KB. Neither RX or TX buffers can be larger than 34KB. So divide the buffer equally, 32KB for each. Signed-off-by: Vinicius Costa Gomes Signed-off-by: Faizal Rahim --- drivers/net/ethernet/intel/igc/igc_defines.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/igc/igc_defines.h b/drivers/net/ethernet/intel/igc/igc_defines.h index 8e449904aa7d..1f63a523faf2 100644 --- a/drivers/net/ethernet/intel/igc/igc_defines.h +++ b/drivers/net/ethernet/intel/igc/igc_defines.h @@ -400,7 +400,7 @@ #define I225_TXPBSIZE_DEFAULT 0x04000014 /* TXPBSIZE default */ #define IGC_RXPBS_CFG_TS_EN 0x80000000 /* Timestamp in Rx buffer */ -#define IGC_TXPBSIZE_TSN 0x04145145 /* 5k bytes buffer for each queue */ +#define IGC_TXPBSIZE_TSN 0x041c71c7 /* 7k bytes buffer for each queue + 4KB for BMC*/ #define IGC_DTXMXPKTSZ_TSN 0x19 /* 1600 bytes of max TX DMA packet size */ #define IGC_DTXMXPKTSZ_DEFAULT 0x98 /* 9728-byte Jumbo frames */ -- 2.25.1