tcp: fix RACK and BBR when using VIMAGE enabled kernel

Fix a bug in VNET handling, which occurs when using specific NICs.
PR:			257195
Reviewed by:		rrs
MFC after:		3 days
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D31212
This commit is contained in:
Michael Tuexen 2021-07-20 00:29:18 +02:00
parent 79e6eb5c01
commit a730d82378

View File

@ -508,16 +508,18 @@ ctf_process_inbound_raw(struct tcpcb *tp, struct socket *so, struct mbuf *m, int
m_freem(m);
m = m_save;
}
if (no_vn == 0)
if (no_vn == 0) {
CURVNET_RESTORE();
}
INP_UNLOCK_ASSERT(inp);
return(retval);
}
skipped_pkt:
m = m_save;
}
if (no_vn == 0)
if (no_vn == 0) {
CURVNET_RESTORE();
}
return(retval);
}