Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278281
b: refs/heads/master
c: f07d960
h: refs/heads/master
i:
  278279: c1a5fd7
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 29, 2011
1 parent 8d10683 commit bca1773
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 4d77d2b567ec66a443792d99e96ac760991d80d0
refs/heads/master: f07d960df33c5aef8f513efce0fd201f962f94a1
9 changes: 6 additions & 3 deletions trunk/net/ipv4/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -897,9 +897,12 @@ static inline int select_size(const struct sock *sk, bool sg)
int tmp = tp->mss_cache;

if (sg) {
if (sk_can_gso(sk))
tmp = 0;
else {
if (sk_can_gso(sk)) {
/* Small frames wont use a full page:
* Payload will immediately follow tcp header.
*/
tmp = SKB_WITH_OVERHEAD(2048 - MAX_TCP_HEADER);
} else {
int pgbreak = SKB_MAX_HEAD(MAX_TCP_HEADER);

if (tmp >= pgbreak &&
Expand Down

0 comments on commit bca1773

Please sign in to comment.