Loading net/ipv4/tcp_input.c +4 −5 Original line number Original line Diff line number Diff line Loading @@ -1376,12 +1376,12 @@ static u8 tcp_sacktag_one(struct sk_buff *skb, struct sock *sk, return sacked; return sacked; } } static int tcp_shifted_skb(struct sock *sk, struct sk_buff *prev, static int tcp_shifted_skb(struct sock *sk, struct sk_buff *skb, struct sk_buff *skb, struct tcp_sacktag_state *state, struct tcp_sacktag_state *state, unsigned int pcount, int shifted, int mss) unsigned int pcount, int shifted, int mss) { { struct tcp_sock *tp = tcp_sk(sk); struct tcp_sock *tp = tcp_sk(sk); struct sk_buff *prev = tcp_write_queue_prev(sk, skb); BUG_ON(!pcount); BUG_ON(!pcount); Loading Loading @@ -1565,7 +1565,7 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb, if (!skb_shift(prev, skb, len)) if (!skb_shift(prev, skb, len)) goto fallback; goto fallback; if (!tcp_shifted_skb(sk, prev, skb, state, pcount, len, mss)) if (!tcp_shifted_skb(sk, skb, state, pcount, len, mss)) goto out; goto out; /* Hole filled allows collapsing with the next as well, this is very /* Hole filled allows collapsing with the next as well, this is very Loading @@ -1584,8 +1584,7 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb, len = skb->len; len = skb->len; if (skb_shift(prev, skb, len)) { if (skb_shift(prev, skb, len)) { pcount += tcp_skb_pcount(skb); pcount += tcp_skb_pcount(skb); tcp_shifted_skb(sk, prev, skb, state, tcp_skb_pcount(skb), len, tcp_shifted_skb(sk, skb, state, tcp_skb_pcount(skb), len, mss); mss); } } out: out: Loading Loading
net/ipv4/tcp_input.c +4 −5 Original line number Original line Diff line number Diff line Loading @@ -1376,12 +1376,12 @@ static u8 tcp_sacktag_one(struct sk_buff *skb, struct sock *sk, return sacked; return sacked; } } static int tcp_shifted_skb(struct sock *sk, struct sk_buff *prev, static int tcp_shifted_skb(struct sock *sk, struct sk_buff *skb, struct sk_buff *skb, struct tcp_sacktag_state *state, struct tcp_sacktag_state *state, unsigned int pcount, int shifted, int mss) unsigned int pcount, int shifted, int mss) { { struct tcp_sock *tp = tcp_sk(sk); struct tcp_sock *tp = tcp_sk(sk); struct sk_buff *prev = tcp_write_queue_prev(sk, skb); BUG_ON(!pcount); BUG_ON(!pcount); Loading Loading @@ -1565,7 +1565,7 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb, if (!skb_shift(prev, skb, len)) if (!skb_shift(prev, skb, len)) goto fallback; goto fallback; if (!tcp_shifted_skb(sk, prev, skb, state, pcount, len, mss)) if (!tcp_shifted_skb(sk, skb, state, pcount, len, mss)) goto out; goto out; /* Hole filled allows collapsing with the next as well, this is very /* Hole filled allows collapsing with the next as well, this is very Loading @@ -1584,8 +1584,7 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb, len = skb->len; len = skb->len; if (skb_shift(prev, skb, len)) { if (skb_shift(prev, skb, len)) { pcount += tcp_skb_pcount(skb); pcount += tcp_skb_pcount(skb); tcp_shifted_skb(sk, prev, skb, state, tcp_skb_pcount(skb), len, tcp_shifted_skb(sk, skb, state, tcp_skb_pcount(skb), len, mss); mss); } } out: out: Loading