Kconfig 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 y
  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 incoming
  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_CHECK_LINK_PERIOD_MS
  32. int "Period(ms) of checking Ethernet linkup status"
  33. range 1000 5000
  34. default 2000
  35. help
  36. The emac driver uses an internal timer to check the ethernet linkup
  37. status. Here you should choose a valid the interval time.
  38. config EMAC_TASK_PRIORITY
  39. int "EMAC_TASK_PRIORITY"
  40. default 20
  41. range 3 22
  42. help
  43. Ethernet MAC task priority.
  44. config EMAC_TASK_STACK_SIZE
  45. int "Stack Size of EMAC Task"
  46. default 3072
  47. range 2000 8000
  48. help
  49. Stack Size of Ethernet MAC task.
  50. endmenu