Commit 8f435804 authored by Divy Le Ray's avatar Divy Le Ray Committed by David S. Miller

cxgb3: fix skb truesize in jumbo mode

Update skb truesize correctly for the 2nd buffer from a Jumbo frame
Signed-off-by: default avatarDivy Le Ray <divy@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9bb2b31e
...@@ -830,14 +830,15 @@ static struct sk_buff *get_packet_pg(struct adapter *adap, struct sge_fl *fl, ...@@ -830,14 +830,15 @@ static struct sk_buff *get_packet_pg(struct adapter *adap, struct sge_fl *fl,
len - SGE_RX_PULL_LEN); len - SGE_RX_PULL_LEN);
newskb->len = len; newskb->len = len;
newskb->data_len = len - SGE_RX_PULL_LEN; newskb->data_len = len - SGE_RX_PULL_LEN;
newskb->truesize += newskb->data_len;
} else { } else {
skb_fill_page_desc(newskb, skb_shinfo(newskb)->nr_frags, skb_fill_page_desc(newskb, skb_shinfo(newskb)->nr_frags,
sd->pg_chunk.page, sd->pg_chunk.page,
sd->pg_chunk.offset, len); sd->pg_chunk.offset, len);
newskb->len += len; newskb->len += len;
newskb->data_len += len; newskb->data_len += len;
newskb->truesize += len;
} }
newskb->truesize += newskb->data_len;
fl->credits--; fl->credits--;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment