mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
[TCP]: whitespace cleanup
Add whitespace around keywords. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
132adf5463
commit
2de979bd7d
5 changed files with 51 additions and 50 deletions
|
@ -1760,10 +1760,9 @@ static void tcp_mark_head_lost(struct sock *sk, struct tcp_sock *tp,
|
||||||
* if this is beyond hint */
|
* if this is beyond hint */
|
||||||
if (tp->retransmit_skb_hint != NULL &&
|
if (tp->retransmit_skb_hint != NULL &&
|
||||||
before(TCP_SKB_CB(skb)->seq,
|
before(TCP_SKB_CB(skb)->seq,
|
||||||
TCP_SKB_CB(tp->retransmit_skb_hint)->seq)) {
|
TCP_SKB_CB(tp->retransmit_skb_hint)->seq))
|
||||||
|
|
||||||
tp->retransmit_skb_hint = NULL;
|
tp->retransmit_skb_hint = NULL;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tcp_sync_left_out(tp);
|
tcp_sync_left_out(tp);
|
||||||
|
|
|
@ -287,10 +287,12 @@ static void tcp_build_and_update_options(__be32 *ptr, struct tcp_sock *tp,
|
||||||
(TCPOPT_SACK << 8) |
|
(TCPOPT_SACK << 8) |
|
||||||
(TCPOLEN_SACK_BASE + (tp->rx_opt.eff_sacks *
|
(TCPOLEN_SACK_BASE + (tp->rx_opt.eff_sacks *
|
||||||
TCPOLEN_SACK_PERBLOCK)));
|
TCPOLEN_SACK_PERBLOCK)));
|
||||||
|
|
||||||
for (this_sack = 0; this_sack < tp->rx_opt.eff_sacks; this_sack++) {
|
for (this_sack = 0; this_sack < tp->rx_opt.eff_sacks; this_sack++) {
|
||||||
*ptr++ = htonl(sp[this_sack].start_seq);
|
*ptr++ = htonl(sp[this_sack].start_seq);
|
||||||
*ptr++ = htonl(sp[this_sack].end_seq);
|
*ptr++ = htonl(sp[this_sack].end_seq);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tp->rx_opt.dsack) {
|
if (tp->rx_opt.dsack) {
|
||||||
tp->rx_opt.dsack = 0;
|
tp->rx_opt.dsack = 0;
|
||||||
tp->rx_opt.eff_sacks--;
|
tp->rx_opt.eff_sacks--;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue