diff options
| author | 2026-10-13 15:16:41 +0200 | |
|---|---|---|
| committer | 2026-10-20 09:30:24 +0200 | |
| commit | b8ab596dabde5053c994872761a1d26b6a1f54c6 (patch) | |
| tree | d6a6a0e2b2c98128375c10f4e9946830979d8fe9 /scripts/Makefile.thinlto | |
| parent | net: macb: introduce macb_context struct for buffer management (diff) | |
net: macb: avoid macb_init_rx_buffer_size() modifying state
macb_init_rx_buffer_size() takes the macb private data struct and
overrides its bp->ctx->rx_buffer_size. To make it usable with multiple
contexts, make it return its value.
Also, move the `bufsz` computation into it. The value is only used if
GEM, and for historical reason it currently lives in macb_open().
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://patch.msgid.link/20261013-macb-context-v11-3-b27785167566@bootlin.com
Tested-by: Nicolai Buchwitz <nb@tipi-net.de> # RPi CM5 with RP1 GEM
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
