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>
This commit is contained in:
Divy Le Ray 2009-03-12 21:13:54 +00:00 committed by David S. Miller
parent 9bb2b31e6f
commit 8f4358044d
1 changed files with 2 additions and 1 deletions

View File

@ -830,14 +830,15 @@ static struct sk_buff *get_packet_pg(struct adapter *adap, struct sge_fl *fl,
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--;
/*