Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203197
b: refs/heads/master
c: c4ead4c
h: refs/heads/master
i:
  203195: 414b7d5
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Jun 29, 2010
1 parent a9a92f9 commit dba96da
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9618e2ffd78aaa43a5815e1dd456b4dd95f9e53b
refs/heads/master: c4ead4c595cd54cf7b1a184d4f888ce0d7cce7d4
6 changes: 3 additions & 3 deletions trunk/net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,7 @@ int tcp_may_send_now(struct sock *sk)
* packet has never been sent out before (and thus is not cloned).
*/
static int tso_fragment(struct sock *sk, struct sk_buff *skb, unsigned int len,
unsigned int mss_now)
unsigned int mss_now, gfp_t gfp)
{
struct sk_buff *buff;
int nlen = skb->len - len;
Expand All @@ -1470,7 +1470,7 @@ static int tso_fragment(struct sock *sk, struct sk_buff *skb, unsigned int len,
if (skb->len != skb->data_len)
return tcp_fragment(sk, skb, len, mss_now);

buff = sk_stream_alloc_skb(sk, 0, GFP_ATOMIC);
buff = sk_stream_alloc_skb(sk, 0, gfp);
if (unlikely(buff == NULL))
return -ENOMEM;

Expand Down Expand Up @@ -1768,7 +1768,7 @@ static int tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle,
cwnd_quota);

if (skb->len > limit &&
unlikely(tso_fragment(sk, skb, limit, mss_now)))
unlikely(tso_fragment(sk, skb, limit, mss_now, gfp)))
break;

TCP_SKB_CB(skb)->when = tcp_time_stamp;
Expand Down

0 comments on commit dba96da

Please sign in to comment.