The latest development version of this page may be more current than this released 1.14.1 version.
CONFIG_ETH_SAM_GMAC_BUF_RX_COUNT

Network RX buffers preallocated by the SAM ETH driver

Type: int

Help

Number of network buffers that will be permanently allocated by the Ethernet driver. These buffers are used in receive path. They are preallocated by the driver and made available to the GMAC module to be filled in with incoming data. Their number has to be large enough to fit at least one complete Ethernet frame. SAM ETH driver will always allocate that amount of buffers for itself thus reducing the NET_BUF_RX_COUNT which is a total amount of RX data buffers used by the whole networking stack. One has to ensure that NET_PKT_RX_COUNT is large enough to fit at least two Ethernet frames: one being received by the GMAC module and the other being processed by the higher layer networking stack.

Direct dependencies

ETH_SAM_GMAC && NET_L2_ETHERNET

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At drivers/ethernet/Kconfig.sam_gmac:52

Included via Kconfig:10Kconfig.zephyr:35drivers/Kconfig:18drivers/ethernet/Kconfig:31

Menu path: (top menu) → Device Drivers → Ethernet Drivers → Atmel SAM Ethernet driver

config ETH_SAM_GMAC_BUF_RX_COUNT
    int
    prompt "Network RX buffers preallocated by the SAM ETH driver" if ETH_SAM_GMAC && NET_L2_ETHERNET
    default 12 if ETH_SAM_GMAC && NET_L2_ETHERNET
    depends on ETH_SAM_GMAC && NET_L2_ETHERNET
    help
      Number of network buffers that will be permanently allocated by the
      Ethernet driver. These buffers are used in receive path. They are
      preallocated by the driver and made available to the GMAC module to be
      filled in with incoming data. Their number has to be large enough to fit
      at least one complete Ethernet frame. SAM ETH driver will always allocate
      that amount of buffers for itself thus reducing the NET_BUF_RX_COUNT
      which is a total amount of RX data buffers used by the whole networking
      stack. One has to ensure that NET_PKT_RX_COUNT is large enough to
      fit at least two Ethernet frames: one being received by the GMAC module
      and the other being processed by the higher layer networking stack.

(Definitions include propagated dependencies, including from if’s and menus.)