tcp: rename tcp_skb_cb flags
Rename struct tcp_skb_cb "flags" to "tcp_flags" to ease code review and maintenance. Its content is a combination of FIN/SYN/RST/PSH/ACK/URG/ECE/CWR flags Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b82d1bb4fd
commit
4de075e043
@@ -1449,7 +1449,7 @@ static int tcp_shifted_skb(struct sock *sk, struct sk_buff *skb,
|
||||
tp->lost_cnt_hint -= tcp_skb_pcount(prev);
|
||||
}
|
||||
|
||||
TCP_SKB_CB(skb)->flags |= TCP_SKB_CB(prev)->flags;
|
||||
TCP_SKB_CB(skb)->tcp_flags |= TCP_SKB_CB(prev)->tcp_flags;
|
||||
if (skb == tcp_highest_sack(sk))
|
||||
tcp_advance_highest_sack(sk, skb);
|
||||
|
||||
@@ -3348,7 +3348,7 @@ static int tcp_clean_rtx_queue(struct sock *sk, int prior_fackets,
|
||||
* connection startup slow start one packet too
|
||||
* quickly. This is severely frowned upon behavior.
|
||||
*/
|
||||
if (!(scb->flags & TCPHDR_SYN)) {
|
||||
if (!(scb->tcp_flags & TCPHDR_SYN)) {
|
||||
flag |= FLAG_DATA_ACKED;
|
||||
} else {
|
||||
flag |= FLAG_SYN_ACKED;
|
||||
|
||||
Reference in New Issue
Block a user