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>
This commit is contained in:
parent
8990f468ae
commit
daebbca3ab
1 changed files with 0 additions and 6 deletions
|
@ -1418,8 +1418,6 @@ qlcnic_process_rcv(struct qlcnic_adapter *adapter,
|
||||||
if (pkt_offset)
|
if (pkt_offset)
|
||||||
skb_pull(skb, pkt_offset);
|
skb_pull(skb, pkt_offset);
|
||||||
|
|
||||||
skb->truesize = skb->len + sizeof(struct sk_buff);
|
|
||||||
|
|
||||||
if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) {
|
if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) {
|
||||||
adapter->stats.rxdropped++;
|
adapter->stats.rxdropped++;
|
||||||
dev_kfree_skb(skb);
|
dev_kfree_skb(skb);
|
||||||
|
@ -1491,8 +1489,6 @@ qlcnic_process_lro(struct qlcnic_adapter *adapter,
|
||||||
|
|
||||||
skb_put(skb, lro_length + data_offset);
|
skb_put(skb, lro_length + data_offset);
|
||||||
|
|
||||||
skb->truesize = skb->len + sizeof(struct sk_buff) + skb_headroom(skb);
|
|
||||||
|
|
||||||
skb_pull(skb, l2_hdr_offset);
|
skb_pull(skb, l2_hdr_offset);
|
||||||
|
|
||||||
if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) {
|
if (unlikely(qlcnic_check_rx_tagging(adapter, skb, &vid))) {
|
||||||
|
@ -1732,8 +1728,6 @@ qlcnic_process_rcv_diag(struct qlcnic_adapter *adapter,
|
||||||
if (pkt_offset)
|
if (pkt_offset)
|
||||||
skb_pull(skb, pkt_offset);
|
skb_pull(skb, pkt_offset);
|
||||||
|
|
||||||
skb->truesize = skb->len + sizeof(struct sk_buff);
|
|
||||||
|
|
||||||
if (!qlcnic_check_loopback_buff(skb->data))
|
if (!qlcnic_check_loopback_buff(skb->data))
|
||||||
adapter->diag_cnt++;
|
adapter->diag_cnt++;
|
||||||
|
|
||||||
|
|
Reference in a new issue