Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95399
b: refs/heads/master
c: be9164e
h: refs/heads/master
i:
  95397: 50ba283
  95395: eeedc69
  95391: 8b247b5
v: v3
  • Loading branch information
Kostya B authored and David S. Miller committed Apr 30, 2008
1 parent eb4332d commit fbb7ede
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 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: 3a8209d19dd791aaac3668be2fa51a9b42113efd
refs/heads/master: be9164e769d57aa10b2bbe15d103edc041b9e7de
22 changes: 7 additions & 15 deletions trunk/net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,23 +753,15 @@ static inline int ip_ufo_append_data(struct sock *sk,
skb->ip_summed = CHECKSUM_PARTIAL;
skb->csum = 0;
sk->sk_sndmsg_off = 0;
}

err = skb_append_datato_frags(sk,skb, getfrag, from,
(length - transhdrlen));
if (!err) {
/* specify the length of each IP datagram fragment*/
/* specify the length of each IP datagram fragment */
skb_shinfo(skb)->gso_size = mtu - fragheaderlen;
skb_shinfo(skb)->gso_type = SKB_GSO_UDP;
__skb_queue_tail(&sk->sk_write_queue, skb);

return 0;
}
/* There is not enough support do UFO ,
* so follow normal path
*/
kfree_skb(skb);
return err;

return skb_append_datato_frags(sk, skb, getfrag, from,
(length - transhdrlen));
}

/*
Expand Down Expand Up @@ -863,9 +855,9 @@ int ip_append_data(struct sock *sk,
csummode = CHECKSUM_PARTIAL;

inet->cork.length += length;
if (((length > mtu) && (sk->sk_protocol == IPPROTO_UDP)) &&
(rt->u.dst.dev->features & NETIF_F_UFO)) {

if (((length> mtu) || !skb_queue_empty(&sk->sk_write_queue)) &&
(sk->sk_protocol == IPPROTO_UDP) &&
(rt->u.dst.dev->features & NETIF_F_UFO)) {
err = ip_ufo_append_data(sk, getfrag, from, length, hh_len,
fragheaderlen, transhdrlen, mtu,
flags);
Expand Down

0 comments on commit fbb7ede

Please sign in to comment.