diff options
Diffstat (limited to 'net/ipv4/tcp_offload.c')
-rw-r--r-- | net/ipv4/tcp_offload.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/tcp_offload.c b/net/ipv4/tcp_offload.c index f597119fc4e7..bc1b83cb8309 100644 --- a/net/ipv4/tcp_offload.c +++ b/net/ipv4/tcp_offload.c | |||
@@ -14,12 +14,12 @@ | |||
14 | #include <net/tcp.h> | 14 | #include <net/tcp.h> |
15 | #include <net/protocol.h> | 15 | #include <net/protocol.h> |
16 | 16 | ||
17 | void tcp_gso_tstamp(struct sk_buff *skb, unsigned int ts_seq, unsigned int seq, | 17 | static void tcp_gso_tstamp(struct sk_buff *skb, unsigned int ts_seq, |
18 | unsigned int mss) | 18 | unsigned int seq, unsigned int mss) |
19 | { | 19 | { |
20 | while (skb) { | 20 | while (skb) { |
21 | if (ts_seq < (__u64) seq + mss) { | 21 | if (before(ts_seq, seq + mss)) { |
22 | skb_shinfo(skb)->tx_flags = SKBTX_SW_TSTAMP; | 22 | skb_shinfo(skb)->tx_flags |= SKBTX_SW_TSTAMP; |
23 | skb_shinfo(skb)->tskey = ts_seq; | 23 | skb_shinfo(skb)->tskey = ts_seq; |
24 | return; | 24 | return; |
25 | } | 25 | } |