diff options
author | Divy Le Ray <divy@chelsio.com> | 2009-03-12 17:13:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-13 14:30:44 -0400 |
commit | 8f4358044d7d694f2e0c18a6ce5db6ec0790451a (patch) | |
tree | 6ac1406ed182f273e92d5b32505ac8d6a682eddd /drivers/net/cxgb3 | |
parent | 9bb2b31e6f87dba06b81429af91362a9127f5bf2 (diff) |
cxgb3: fix skb truesize in jumbo mode
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>
Diffstat (limited to 'drivers/net/cxgb3')
-rw-r--r-- | drivers/net/cxgb3/sge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/cxgb3/sge.c b/drivers/net/cxgb3/sge.c index 808b8af0c740..90f6f82d3bf2 100644 --- a/drivers/net/cxgb3/sge.c +++ b/drivers/net/cxgb3/sge.c | |||
@@ -830,14 +830,15 @@ recycle: | |||
830 | len - SGE_RX_PULL_LEN); | 830 | len - SGE_RX_PULL_LEN); |
831 | newskb->len = len; | 831 | newskb->len = len; |
832 | newskb->data_len = len - SGE_RX_PULL_LEN; | 832 | newskb->data_len = len - SGE_RX_PULL_LEN; |
833 | newskb->truesize += newskb->data_len; | ||
833 | } else { | 834 | } else { |
834 | skb_fill_page_desc(newskb, skb_shinfo(newskb)->nr_frags, | 835 | skb_fill_page_desc(newskb, skb_shinfo(newskb)->nr_frags, |
835 | sd->pg_chunk.page, | 836 | sd->pg_chunk.page, |
836 | sd->pg_chunk.offset, len); | 837 | sd->pg_chunk.offset, len); |
837 | newskb->len += len; | 838 | newskb->len += len; |
838 | newskb->data_len += len; | 839 | newskb->data_len += len; |
840 | newskb->truesize += len; | ||
839 | } | 841 | } |
840 | newskb->truesize += newskb->data_len; | ||
841 | 842 | ||
842 | fl->credits--; | 843 | fl->credits--; |
843 | /* | 844 | /* |