net: lwip: Remove error print on failed tx
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 26 Mar 2025 08:28:58 +0000 (10:28 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 31 Mar 2025 07:46:25 +0000 (09:46 +0200)
When an ethernet driver fails to send a frame we print an error in lwIP.
But depending on how often that error is it might significantly delay
transmissions.

For example downloading a big file with the rpi4 spams the console with
'send error: -101', but removing the print makes the file download with
an average speed of ~8.5MiB/s since the packets are retransmitted.

So let's move it to a 'debug' in lwIP and expect ethernet drivers to handle
the failure if it's severe.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
net/lwip/net-lwip.c

index cab1dd7..4d2aa60 100644 (file)
@@ -50,7 +50,7 @@ static err_t linkoutput(struct netif *netif, struct pbuf *p)
        err = eth_get_ops(udev)->send(udev, pp ? pp : p->payload, p->len);
        free(pp);
        if (err) {
-               log_err("send error %d\n", err);
+               debug("send error %d\n", err);
                return ERR_ABRT;
        }