Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts were two cases of simple overlapping changes, nothing serious. In the UDP case, we need to add a hlist_add_tail_rcu() to linux/rculist.h, because we've moved UDP socket handling away from using nulls lists. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -2441,6 +2441,20 @@ u32 __tcp_select_window(struct sock *sk)
|
||||
return window;
|
||||
}
|
||||
|
||||
void tcp_skb_collapse_tstamp(struct sk_buff *skb,
|
||||
const struct sk_buff *next_skb)
|
||||
{
|
||||
const struct skb_shared_info *next_shinfo = skb_shinfo(next_skb);
|
||||
u8 tsflags = next_shinfo->tx_flags & SKBTX_ANY_TSTAMP;
|
||||
|
||||
if (unlikely(tsflags)) {
|
||||
struct skb_shared_info *shinfo = skb_shinfo(skb);
|
||||
|
||||
shinfo->tx_flags |= tsflags;
|
||||
shinfo->tskey = next_shinfo->tskey;
|
||||
}
|
||||
}
|
||||
|
||||
/* Collapses two adjacent SKB's during retransmission. */
|
||||
static void tcp_collapse_retrans(struct sock *sk, struct sk_buff *skb)
|
||||
{
|
||||
@@ -2484,6 +2498,8 @@ static void tcp_collapse_retrans(struct sock *sk, struct sk_buff *skb)
|
||||
|
||||
tcp_adjust_pcount(sk, next_skb, tcp_skb_pcount(next_skb));
|
||||
|
||||
tcp_skb_collapse_tstamp(skb, next_skb);
|
||||
|
||||
sk_wmem_free_skb(sk, next_skb);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user