Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143871
b: refs/heads/master
c: a0a69a0
h: refs/heads/master
i:
  143869: b4f208b
  143867: 5583b70
  143863: 91ee3f6
  143855: f4217f3
  143839: 33b2550
  143807: edc985c
  143743: dfe7ec4
  143615: 643c9b9
  143359: 808b3c9
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Apr 17, 2009
1 parent 106e3a0 commit f9d9a86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9dd014eb9804f19d6230c3cbc10fa25f5416bda7
refs/heads/master: a0a69a0106dab8d20596f97f6674bed3b394d1ee
6 changes: 4 additions & 2 deletions trunk/net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2511,6 +2511,7 @@ struct sk_buff **tcp_gro_receive(struct sk_buff **head, struct sk_buff *skb)
struct sk_buff *p;
struct tcphdr *th;
struct tcphdr *th2;
unsigned int len;
unsigned int thlen;
unsigned int flags;
unsigned int mss = 1;
Expand All @@ -2531,6 +2532,7 @@ struct sk_buff **tcp_gro_receive(struct sk_buff **head, struct sk_buff *skb)

skb_gro_pull(skb, thlen);

len = skb_gro_len(skb);
flags = tcp_flag_word(th);

for (; (p = *head); head = &p->next) {
Expand Down Expand Up @@ -2561,7 +2563,7 @@ struct sk_buff **tcp_gro_receive(struct sk_buff **head, struct sk_buff *skb)

mss = skb_shinfo(p)->gso_size;

flush |= (skb_gro_len(skb) > mss) | !skb_gro_len(skb);
flush |= (len > mss) | !len;
flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq);

if (flush || skb_gro_receive(head, skb)) {
Expand All @@ -2574,7 +2576,7 @@ struct sk_buff **tcp_gro_receive(struct sk_buff **head, struct sk_buff *skb)
tcp_flag_word(th2) |= flags & (TCP_FLAG_FIN | TCP_FLAG_PSH);

out_check_final:
flush = skb_gro_len(skb) < mss;
flush = len < mss;
flush |= flags & (TCP_FLAG_URG | TCP_FLAG_PSH | TCP_FLAG_RST |
TCP_FLAG_SYN | TCP_FLAG_FIN);

Expand Down

0 comments on commit f9d9a86

Please sign in to comment.