Thread (14 messages) 14 messages, 4 authors, 2026-03-11

Re: [PATCH net-next v2 0/7] net: stmmac: start to shrink memory usage

From: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>
Date: 2026-03-09 11:06:57
Also in: imx, linux-arm-kernel, linux-arm-msm, linux-mediatek, linux-sunxi, linux-tegra

Hi Russell,
On Mon, Mar 09, 2026 at 09:38:26AM +0000, Russell King (Oracle) wrote:
Hi,

Start shrinking stmmac's memory usage by avoiding using "int" for
members that are only used for 0/1 (boolean) values, or values that
can't be larger than 255.

In addition, as struct stmmac_dma_cfg is approximately a cache line,
shrinks below a cache line as a result of this patch set, and is
required, there is no point separately allocating this from
struct plat_stmmacenet_data. Embed it into the end of this struct
and set the existing pointer to avoid large wide-spread changes.

Lastly, add documentation for struct stmmac_dma_cfg, and document
the stmmac clocks as best we can given the driver history.

v2:
- fix error in commit message for patch 5
- fix typo in comment in patch 6
No issues found with v1 on QCS9100 Ride R3, so feel free to add:

Tested-by: Mohd Ayaan Anwar <mohd.anwar@oss.qualcomm.com>

	Ayaan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help