cxgb3: fix skb truesize in jumbo mode
authorDivy Le Ray <divy@chelsio.com>
Thu, 12 Mar 2009 21:13:54 +0000 (21:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Mar 2009 18:30:44 +0000 (11:30 -0700)
Update skb truesize correctly for the 2nd buffer from a Jumbo frame

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/sge.c

index 808b8af0c740b40de72599caec11a8e1f192ce60..90f6f82d3bf238472a9b062822ddb8e6f760a817 100644 (file)
@@ -830,14 +830,15 @@ recycle:
                                   len - SGE_RX_PULL_LEN);
                newskb->len = len;
                newskb->data_len = len - SGE_RX_PULL_LEN;
+               newskb->truesize += newskb->data_len;
        } else {
                skb_fill_page_desc(newskb, skb_shinfo(newskb)->nr_frags,
                                   sd->pg_chunk.page,
                                   sd->pg_chunk.offset, len);
                newskb->len += len;
                newskb->data_len += len;
+               newskb->truesize += len;
        }
-       newskb->truesize += newskb->data_len;
 
        fl->credits--;
        /*