aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2010-09-19 22:28:59 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-20 13:10:09 -0400
commitdaebbca3ab41031666ee27f991b223d2bc0415e9 (patch)
tree3b6c5153c00f3077ecbe82c3196adb22b2944214 /drivers/net/qlcnic
parent8990f468ae9010ab0af4be8f51bf7ab833a67202 (diff)
qlcnic: dont set skb->truesize
skb->truesize is set in core network. Dont change it unless dealing with fragments. Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic')
-rw-r--r--drivers/net/qlcnic/qlcnic_init.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/qlcnic/qlcnic_init.c b/drivers/net/qlcnic/qlcnic_init.c
index e26fa959331..16dd9ebd36c 100644
--- a/drivers/net/qlcnic/qlcnic_init.c
+++ b/drivers/net/qlcnic/qlcnic_init.c
@@ -1418,8 +1418,6 @@ qlcnic_process_rcv(struct qlcnic_adapter *adapter,
1418 if (pkt_offset) 1418 if (pkt_offset)
1419 skb_pull(skb, pkt_offset); 1419 skb_pull(skb, pkt_offset);
1420 1420
1421 skb->truesize = skb->len + sizeof(struct sk_buff);
1422
1423 if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) { 1421 if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) {
1424 adapter->stats.rxdropped++; 1422 adapter->stats.rxdropped++;
1425 dev_kfree_skb(skb); 1423 dev_kfree_skb(skb);
@@ -1491,8 +1489,6 @@ qlcnic_process_lro(struct qlcnic_adapter *adapter,
1491 1489
1492 skb_put(skb, lro_length + data_offset); 1490 skb_put(skb, lro_length + data_offset);
1493 1491
1494 skb->truesize = skb->len + sizeof(struct sk_buff) + skb_headroom(skb);
1495
1496 skb_pull(skb, l2_hdr_offset); 1492 skb_pull(skb, l2_hdr_offset);
1497 1493
1498 if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) { 1494 if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) {
@@ -1732,8 +1728,6 @@ qlcnic_process_rcv_diag(struct qlcnic_adapter *adapter,
1732 if (pkt_offset) 1728 if (pkt_offset)
1733 skb_pull(skb, pkt_offset); 1729 skb_pull(skb, pkt_offset);
1734 1730
1735 skb->truesize = skb->len + sizeof(struct sk_buff);
1736
1737 if (!qlcnic_check_loopback_buff(skb->data)) 1731 if (!qlcnic_check_loopback_buff(skb->data))
1738 adapter->diag_cnt++; 1732 adapter->diag_cnt++;
1739 1733