Kconfig 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. menu Ethernet
  2. config DMA_RX_BUF_NUM
  3. int "Number of DMA RX buffers"
  4. range 3 20
  5. default 10
  6. help
  7. Number of DMA receive buffers. Each buffer is 1600 bytes.
  8. Buffers are allocated statically.
  9. Larger number of buffers increases throughput.
  10. If enable flow ctrl, the num must be above 9 .
  11. config DMA_TX_BUF_NUM
  12. int "Number of DMA TX buffers"
  13. range 3 20
  14. default 10
  15. help
  16. Number of DMA transmit buffers. Each buffer is 1600 bytes.
  17. Buffers are allocated statically.
  18. Larger number of buffers increases throughput.
  19. config EMAC_L2_TO_L3_RX_BUF_MODE
  20. bool "Enable copy between Layer2 and Layer3"
  21. default n
  22. help
  23. If this options is selected, a copy of each received buffer will be created when
  24. passing it from the Ethernet MAC (L2) to the IP stack (L3). Otherwise, IP stack
  25. will receive pointers to the DMA buffers used by Ethernet MAC.
  26. When Ethernet MAC doesn't have any unused buffers left, it will drop incomming
  27. packets (flow control may help with this problem, to some extent).
  28. The buffers for the IP stack are allocated from the heap, so the total number of
  29. receive buffers is limited by the available heap size, if this option is selected.
  30. If unsure, choose n.
  31. config EMAC_TASK_PRIORITY
  32. int "EMAC_TASK_PRIORITY"
  33. default 20
  34. range 3 22
  35. help
  36. Ethernet MAC task priority.
  37. endmenu