In r338102, the TCP reassembly code was substantially restructured. Prior
to this change, the code sometimes used a temporary stack variable to hold details of a TCP segment. r338102 stopped using the variable to hold segments, but did not actually remove the variable. Because the variable is no longer used, we can safely remove it. Approved by: re (gjb)
This commit is contained in:
parent
090570a32f
commit
ac75e35d85
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339378
@ -528,7 +528,6 @@ tcp_reass(struct tcpcb *tp, struct tcphdr *th, tcp_seq *seq_start,
|
||||
struct tseg_qent *p = NULL;
|
||||
struct tseg_qent *nq = NULL;
|
||||
struct tseg_qent *te = NULL;
|
||||
struct tseg_qent tqs;
|
||||
struct mbuf *mlast = NULL;
|
||||
struct sockbuf *sb;
|
||||
struct socket *so = tp->t_inpcb->inp_socket;
|
||||
@ -1053,8 +1052,7 @@ tcp_reass(struct tcpcb *tp, struct tcphdr *th, tcp_seq *seq_start,
|
||||
KASSERT(tp->t_segqmbuflen >= q->tqe_mbuf_cnt,
|
||||
("tp:%p seg queue goes negative", tp));
|
||||
tp->t_segqmbuflen -= q->tqe_mbuf_cnt;
|
||||
if (q != &tqs)
|
||||
uma_zfree(tcp_reass_zone, q);
|
||||
uma_zfree(tcp_reass_zone, q);
|
||||
tp->t_segqlen--;
|
||||
q = nq;
|
||||
} while (q && q->tqe_start == tp->rcv_nxt);
|
||||
|
Loading…
Reference in New Issue
Block a user