tcp rack, bbr: improve handling of soft errors

Do not report an error, if it is stored as a soft error. This avoids,
for example, the dropping of TCP connections using an interface,
while enabling or disabling LRO on that interface.

Reviewed by:		cc
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D46427

(cherry picked from commit b2044c4557443bbce974101f04e2b465d1bbe769)
This commit is contained in:
Michael Tuexen 2024-08-30 09:26:41 +02:00
parent 1821145f28
commit 2e45166856
2 changed files with 2 additions and 0 deletions

View file

@ -13837,6 +13837,7 @@ nomore:
case ENETUNREACH:
if (TCPS_HAVERCVDSYN(tp->t_state)) {
tp->t_softerror = error;
error = 0;
}
/* FALLTHROUGH */
default:

View file

@ -22473,6 +22473,7 @@ nomore:
case ENETDOWN:
if (TCPS_HAVERCVDSYN(tp->t_state)) {
tp->t_softerror = error;
error = 0;
}
/* FALLTHROUGH */
default: