drivers: ethernet: Optimize RxBD buffer configuration
The _nxp_enet_dma_buffer_section is configured to __nocache area. That makes the RxPkt performance very low (<= 50Mbps). By defining it to the cacheable area, the RxPkt performance is >10x better. Example with Zperf: DUT command - zperf udp download 5001 PC command - iperf -u -c 192.0.2.1 -p 5001 -b 800M Signed-off-by: Shrek Wang <shrek.wang@nxp.com>
This commit is contained in:
parent
9f6fdae430
commit
3606b815d0
1 changed files with 2 additions and 2 deletions
|
|
@ -893,9 +893,9 @@ static const struct ethernet_api api_funcs = {
|
||||||
#define driver_cache_maintain false
|
#define driver_cache_maintain false
|
||||||
#elif defined(CONFIG_NOCACHE_MEMORY)
|
#elif defined(CONFIG_NOCACHE_MEMORY)
|
||||||
#define _nxp_enet_dma_desc_section __nocache
|
#define _nxp_enet_dma_desc_section __nocache
|
||||||
#define _nxp_enet_dma_buffer_section __nocache
|
#define _nxp_enet_dma_buffer_section
|
||||||
#define _nxp_enet_driver_buffer_section
|
#define _nxp_enet_driver_buffer_section
|
||||||
#define driver_cache_maintain false
|
#define driver_cache_maintain true
|
||||||
#else
|
#else
|
||||||
#define _nxp_enet_dma_desc_section
|
#define _nxp_enet_dma_desc_section
|
||||||
#define _nxp_enet_dma_buffer_section
|
#define _nxp_enet_dma_buffer_section
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue