Kconfig 1.7 KB

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