Skip to content

Commit

Permalink
cxgb3: fix skb truesize in jumbo mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Divy Le Ray authored and David S. Miller committed Mar 13, 2009
1 parent 9bb2b31 commit 8f43580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/cxgb3/sge.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
/*
Expand Down

0 comments on commit 8f43580

Please sign in to comment.