From 50eb243762f143cf56878af10c5cc3f96d6e051a Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Fri, 21 Dec 2018 15:07:43 +0200 Subject: [PATCH] Don't consume 36 kB just for Ethernet buffers. Kintis EMAC is consuming 16 rinbuffers for input, and 8 buffers for output. This is over-use because input packets are immediately allocated from heap when passed to LwIP. Therefore the number can be creatly reduced. --- .../emac-drivers/TARGET_Freescale_EMAC/mbed_lib.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/netsocket/emac-drivers/TARGET_Freescale_EMAC/mbed_lib.json b/features/netsocket/emac-drivers/TARGET_Freescale_EMAC/mbed_lib.json index 2e1ef2e320..102de42f02 100644 --- a/features/netsocket/emac-drivers/TARGET_Freescale_EMAC/mbed_lib.json +++ b/features/netsocket/emac-drivers/TARGET_Freescale_EMAC/mbed_lib.json @@ -1,7 +1,7 @@ { "name": "kinetis-emac", "config": { - "rx-ring-len": 16, - "tx-ring-len": 8 + "rx-ring-len": 2, + "tx-ring-len": 1 } }