From nobody Sun Feb 8 19:40:04 2026 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 80EDE230D1E; Thu, 27 Feb 2025 14:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740664971; cv=none; b=CMZ2n2JQMsKxsaY5fA1X9TVLNk8Kcf0zB1qnxzkKLQeuVuQ2qqYNZsMkF4GdtNT5jj+gil0KBJ6ryMckJOrop/D3Ua4shejL/iOQN+SqEUKby2tzSYC6iHhy2fAqsncd0YfJa+ZV66QGmBWiFTmEjijm8y6Fd5ZxxNvqJSzMmFk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740664971; c=relaxed/simple; bh=0OdUdx+lahN2+LUJ2jOFDFj83SCLzyn+8zKWv0oeisM=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=J+dfPPlq895XsZbKZloPGlfzp/AdOpOcKwExqWworMClF6FHgp0fZOotQIf2ExEXrWXFnaibXBP8xWm4Ae7rZpoPPfCnrAlhJ4j8RoBETUnnQ1Z+RHGW3nhEjEbZrvzFf5GP0SEhUWJRqqEersQOnw8taLo/qNRomUMOfvShvmQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OuW2JB6v; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OuW2JB6v" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740664970; x=1772200970; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=0OdUdx+lahN2+LUJ2jOFDFj83SCLzyn+8zKWv0oeisM=; b=OuW2JB6vD4zyN62b2xPm+csn0dCUfJoQM/7Xuu27NkvKVY13iHNVsN/A KhlREXAkRg/VjreNKHvMXpWdssS6sCpXv33b+G/p3VOvVScxnYTytCzmt 9tgovkeQ1kvCsAC0pRzZqz2i+ll383oCZp7iXTryjzo/PcyyPBh+PClvC TwnBQw2aE6CYiv2ae227jq7KZHg53f57aud29+Ajnvq1dh6/ktWWqe98k 7hsZUZ7juLOMpOxBGQOLPd7j/cC87grvZ1XYL9WcfzdlUBb9AaYrMcjha FCt6QfId31UmZdzI7ITZDnBRd0Cp/e4Hrk6u+MVa8mBC3l09C5z2v7Ndv A==; X-CSE-ConnectionGUID: uIZQ/QftTW6OdxU3vr2kbw== X-CSE-MsgGUID: Cnt5yaHHS9aRDndtmh0C6Q== X-IronPort-AV: E=McAfee;i="6700,10204,11314"; a="41752328" X-IronPort-AV: E=Sophos;i="6.12,310,1728975600"; d="scan'208";a="41752328" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2025 06:02:49 -0800 X-CSE-ConnectionGUID: /An33bfsTTy/8puwMb1LIg== X-CSE-MsgGUID: +ZEo5sdYTtCLjtEH2P+fjA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,319,1732608000"; d="scan'208";a="122149522" Received: from mohdfai2-ilbpg12-1.png.intel.com ([10.88.227.73]) by fmviesa004.fm.intel.com with ESMTP; 27 Feb 2025 06:02:42 -0800 From: Faizal Rahim To: Tony Nguyen , Przemek Kitszel , Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Simon Horman , Russell King , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Furong Xu <0x1207@gmail.com>, Russell King , Vladimir Oltean , Serge Semin , Xiaolei Wang , Suraj Jaiswal , Kory Maincent , Gal Pressman , Jesper Nilsson , Andrew Halaney , Choong Yong Liang , Faizal Rahim , Kunihiko Hayashi , Vinicius Costa Gomes , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org Subject: [PATCH iwl-next v6 3/9] igc: Optimize the TX packet buffer utilization Date: Thu, 27 Feb 2025 09:01:51 -0500 Message-Id: <20250227140158.2129988-4-faizal.abdul.rahim@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250227140158.2129988-1-faizal.abdul.rahim@linux.intel.com> References: <20250227140158.2129988-1-faizal.abdul.rahim@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Packet buffers (RX + TX) total 64KB. Neither RX or TX buffers can be larger than 34KB. So divide the buffer equally, 32KB for each. Co-developed-by: Vinicius Costa Gomes Signed-off-by: Vinicius Costa Gomes Signed-off-by: Faizal Rahim --- drivers/net/ethernet/intel/igc/igc_defines.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/igc/igc_defines.h b/drivers/net/eth= ernet/intel/igc/igc_defines.h index 8e449904aa7d..516ef70c98e9 100644 --- a/drivers/net/ethernet/intel/igc/igc_defines.h +++ b/drivers/net/ethernet/intel/igc/igc_defines.h @@ -400,7 +400,8 @@ #define I225_TXPBSIZE_DEFAULT 0x04000014 /* TXPBSIZE default */ #define IGC_RXPBS_CFG_TS_EN 0x80000000 /* Timestamp in Rx buffer */ =20 -#define IGC_TXPBSIZE_TSN 0x04145145 /* 5k bytes buffer for each queue */ + /* 7KB bytes buffer for each tx queue (total 4 queues) + 4KB for BMC*/ +#define IGC_TXPBSIZE_TSN 0x041c71c7 =20 #define IGC_DTXMXPKTSZ_TSN 0x19 /* 1600 bytes of max TX DMA packet size */ #define IGC_DTXMXPKTSZ_DEFAULT 0x98 /* 9728-byte Jumbo frames */ --=20 2.34.1