net: tcp: Explicitly notify buffer allocation failures in retransmission

Log an error to explicitly log a failed buffer allocation in TCP
retransmission. This avoids silently failing retransmissions due to
repeating buffer allocation failures.

Signed-off-by: Sjors Hettinga <s.a.hettinga@gmail.com>
This commit is contained in:
Sjors Hettinga 2022-05-23 10:22:31 +02:00 committed by Carles Cufí
commit d49d06735a

View file

@ -1192,6 +1192,8 @@ static void tcp_resend_data(struct k_work *work)
}
goto out;
} else if (ret == -ENOBUFS) {
NET_ERR("TCP failed to allocate buffer in retransmission");
}
k_work_reschedule_for_queue(&tcp_work_q, &conn->send_data_timer,