tcp: fix build

The recent 25685b7537 came in conflict with a540cdca31.  Remove the
code that cleans up the old style input queue.  Note that two lines
below we assert that the new style input queue is empty.  The TCP
stacks that use the queue are supposed to flush it in their
tfb_tcp_fb_fini method.
This commit is contained in:
Gleb Smirnoff 2023-04-17 10:24:20 -07:00
parent 458f4722bf
commit 3232b1f4a9

View File

@ -2426,17 +2426,6 @@ tcp_discardcb(struct tcpcb *tp)
#ifdef TCP_BLACKBOX
tcp_log_tcpcbfini(tp);
#endif
if (tp->t_in_pkt) {
struct mbuf *m, *n;
m = tp->t_in_pkt;
tp->t_in_pkt = tp->t_tail_pkt = NULL;
while (m) {
n = m->m_nextpkt;
m_freem(m);
m = n;
}
}
TCPSTATES_DEC(tp->t_state);
if (tp->t_fb->tfb_tcp_fb_fini)