aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-11-02 01:59:52 -0400
committerDavid S. Miller <davem@davemloft.net>2017-11-02 02:23:39 -0400
commited29668d1aa2c6f01e61dd616df13b5241cee7e0 (patch)
treea086cf6311ed8623b292d3ea8d73c03f53207be0 /include/net/tcp.h
parent65c959a39b7e9ad6b443b74904486b4a75b0232f (diff)
parent3a99df9a3d14cd866b5516f8cba515a3bfd554ab (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Smooth Cong Wang's bug fix into 'net-next'. Basically put the bulk of the tcf_block_put() logic from 'net' into tcf_block_put_ext(), but after the offload unbind. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index a2510cdef4b5..c2bf2a822b10 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1738,12 +1738,12 @@ static inline void tcp_highest_sack_reset(struct sock *sk)
1738 tcp_sk(sk)->highest_sack = skb ?: tcp_send_head(sk); 1738 tcp_sk(sk)->highest_sack = skb ?: tcp_send_head(sk);
1739} 1739}
1740 1740
1741/* Called when old skb is about to be deleted (to be combined with new skb) */ 1741/* Called when old skb is about to be deleted and replaced by new skb */
1742static inline void tcp_highest_sack_combine(struct sock *sk, 1742static inline void tcp_highest_sack_replace(struct sock *sk,
1743 struct sk_buff *old, 1743 struct sk_buff *old,
1744 struct sk_buff *new) 1744 struct sk_buff *new)
1745{ 1745{
1746 if (tcp_sk(sk)->sacked_out && (old == tcp_sk(sk)->highest_sack)) 1746 if (old == tcp_highest_sack(sk))
1747 tcp_sk(sk)->highest_sack = new; 1747 tcp_sk(sk)->highest_sack = new;
1748} 1748}
1749 1749