[PATCH RFC next 4/5] net: guard SYS_RX_ETH_BUFFER with NET

Simon Glass sjg at chromium.org
Wed Apr 29 19:15:39 CEST 2026


On 2026-04-29T10:35:00, Quentin Schulz <foss+uboot at 0leil.net> wrote:
> net: guard SYS_RX_ETH_BUFFER with NET
>
> SYS_RX_ETH_BUFFER represents the number of Ethernet receive packet
> buffers. It therefore doesn't make sense it's reachable if NET isn't
> enabled.
>
> Direct users of SYS_RX_ETH_BUFFER are:
> - drivers/net/rtl8169.c, only compiled if CONFIG_RTL8169=y, depends on
>   CONFIG_NETDEVICES=y, depends on CONFIG_NET=y,
> - drivers/net/fsl_enetc.h, via ENETC_BD_CNT, included in
>     drivers/net/{fsl_enetc.c,fsl_enetc_mdio.c,mscc_eswitch/felix_switch.c}
>   First two only compiled if CONFIG_FSL_ENETC=y, latter with
>   CONFIG_MSCC_FELIX_SWITCH=y. Both symbols depends on
>   CONFIG_NETDEVICES=y, depends on CONFIG_NET=y.
> - include/net-common.h via PKTBUFSRX,
>
> Indirect users via PKTBUFSRX:
> - arch/sandbox/include/asm/eth.h
>   - according to ./tools/qconfig.py -l -f CONFIG_SANDBOX CONFIG_NO_NET,
>     all sandbox defconfigs have network enabled so ignore this for now,
> [...]
>
> include/net-common.h | 4 ++++
>  net/Kconfig          | 4 ++++
>  2 files changed, 8 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list