Skip to content

Commit f595279

Browse files
danieldegrassecarlescufi
authored andcommitted
drivers: eth_mcux allow network buffers to be cached
Do not force network buffers into noncacheable memory, as these buffers are internal to the driver and not used by the hardware. Performance change (as tested with iperf on RT1050): TCP RX: 23.7Mbps->40.6Mbps TCP TX: 22.3Mbps->36.8Mbps Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 51b2206 commit f595279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ethernet/eth_mcux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,9 +1576,9 @@ static void eth_mcux_err_isr(const struct device *dev)
15761576
ETH_MCUX_PINCTRL_DEFINE(n) \
15771577
\
15781578
static void eth##n##_config_func(void); \
1579-
static NOCACHE uint8_t \
1579+
static uint8_t \
15801580
tx_enet_frame_##n##_buf[NET_ETH_MAX_FRAME_SIZE]; \
1581-
static NOCACHE uint8_t \
1581+
static uint8_t \
15821582
rx_enet_frame_##n##_buf[NET_ETH_MAX_FRAME_SIZE]; \
15831583
\
15841584
static mdio_handle_t eth##n##_mdio_handle = { \

0 commit comments

Comments
 (0)