hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/net/ipv4/tcp_output.c
....@@ -177,8 +177,7 @@
177177 }
178178
179179 /* Account for an ACK we sent. */
180
-static inline void tcp_event_ack_sent(struct sock *sk, unsigned int pkts,
181
- u32 rcv_nxt)
180
+static inline void tcp_event_ack_sent(struct sock *sk, u32 rcv_nxt)
182181 {
183182 struct tcp_sock *tp = tcp_sk(sk);
184183
....@@ -192,7 +191,7 @@
192191
193192 if (unlikely(rcv_nxt != tp->rcv_nxt))
194193 return; /* Special ACK sent by DCTCP to reflect ECN */
195
- tcp_dec_quickack_mode(sk, pkts);
194
+ tcp_dec_quickack_mode(sk);
196195 inet_csk_clear_xmit_timer(sk, ICSK_TIME_DACK);
197196 }
198197
....@@ -874,7 +873,7 @@
874873 if (likely(ireq->tstamp_ok)) {
875874 opts->options |= OPTION_TS;
876875 opts->tsval = tcp_skb_timestamp(skb) + tcp_rsk(req)->ts_off;
877
- opts->tsecr = req->ts_recent;
876
+ opts->tsecr = READ_ONCE(req->ts_recent);
878877 remaining -= TCPOLEN_TSTAMP_ALIGNED;
879878 }
880879 if (likely(ireq->sack_ok)) {
....@@ -1374,7 +1373,7 @@
13741373 sk, skb);
13751374
13761375 if (likely(tcb->tcp_flags & TCPHDR_ACK))
1377
- tcp_event_ack_sent(sk, tcp_skb_pcount(skb), rcv_nxt);
1376
+ tcp_event_ack_sent(sk, rcv_nxt);
13781377
13791378 if (skb->len != tcp_header_size) {
13801379 tcp_event_data_sent(tp, sk);
....@@ -3609,7 +3608,7 @@
36093608 th->window = htons(min(req->rsk_rcv_wnd, 65535U));
36103609 tcp_options_write((__be32 *)(th + 1), NULL, &opts);
36113610 th->doff = (tcp_header_size >> 2);
3612
- __TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
3611
+ TCP_INC_STATS(sock_net(sk), TCP_MIB_OUTSEGS);
36133612
36143613 #ifdef CONFIG_TCP_MD5SIG
36153614 /* Okay, we have all we need - do the md5 hash if needed */