source: trunk/packages/xen-common/xen-common/patches/linux-2.6.18/net-gso-6-linear-segmentation.patch @ 95

Last change on this file since 95 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

  • Property svn:mime-type set to text/x-patch
File size: 811 bytes
  • net/core/skbuff.c

    diff -pruN ../orig-linux-2.6.18/net/core/skbuff.c ./net/core/skbuff.c
    old new struct sk_buff *skb_segment(struct sk_bu 
    19451945        do {
    19461946                struct sk_buff *nskb;
    19471947                skb_frag_t *frag;
    1948                 int hsize, nsize;
     1948                int hsize;
    19491949                int k;
    19501950                int size;
    19511951
    struct sk_buff *skb_segment(struct sk_bu 
    19561956                hsize = skb_headlen(skb) - offset;
    19571957                if (hsize < 0)
    19581958                        hsize = 0;
    1959                 nsize = hsize + doffset;
    1960                 if (nsize > len + doffset || !sg)
    1961                         nsize = len + doffset;
     1959                if (hsize > len || !sg)
     1960                        hsize = len;
    19621961
    1963                 nskb = alloc_skb(nsize + headroom, GFP_ATOMIC);
     1962                nskb = alloc_skb(hsize + doffset + headroom, GFP_ATOMIC);
    19641963                if (unlikely(!nskb))
    19651964                        goto err;
    19661965
Note: See TracBrowser for help on using the repository browser.