Kconfig 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. These buffers are allocated dynamically.
  9. More buffers will increase throughput.
  10. If flow ctrl is enabled, make sure this number is larger than 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. These buffers are allocated dynamically.
  18. More buffers will increase throughput.
  19. config EMAC_L2_TO_L3_RX_BUF_MODE
  20. bool "Enable received buffers be copied to Layer3 from Layer2"
  21. default y
  22. help
  23. If this option is selected, a copy of each received buffer will be allocated from the heap
  24. before passing it to the IP Layer (L3).
  25. Which means, the total amount of received buffers is limited by the heap size.
  26. If this option is not selected, IP layer only uses the pointers to the DMA buffers owned by Ethernet MAC.
  27. When Ethernet MAC doesn't have any available buffers left, it will drop the incoming packets.
  28. config EMAC_CHECK_LINK_PERIOD_MS
  29. int "Period (ms) of checking Ethernet linkup status"
  30. range 1000 5000
  31. default 2000
  32. help
  33. The emac driver uses an internal timer to check the Ethernet linkup status.
  34. Here you should choose a valid interval time.
  35. config EMAC_TASK_PRIORITY
  36. int "EMAC_TASK_PRIORITY"
  37. default 20
  38. range 3 22
  39. help
  40. Priority of Ethernet MAC task.
  41. config EMAC_TASK_STACK_SIZE
  42. int "Stack Size of EMAC Task"
  43. default 3072
  44. range 2000 8000
  45. help
  46. Stack Size of Ethernet MAC task.
  47. endmenu