bnx2x: properly update skb when mtu > 1500

Since commit e52fcb2462 newly allocated
skb for small packets are not updated properly and dropped by stack.

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Dmitry Kravkov
2011-12-12 23:40:53 +00:00
committed by David S. Miller
parent 90b41a1cd4
commit 036d2df9b3

View File

@@ -731,6 +731,7 @@ reuse_rx:
bnx2x_reuse_rx_data(fp, bd_cons, bd_prod); bnx2x_reuse_rx_data(fp, bd_cons, bd_prod);
goto next_rx; goto next_rx;
} }
}
skb_put(skb, len); skb_put(skb, len);
skb->protocol = eth_type_trans(skb, bp->dev); skb->protocol = eth_type_trans(skb, bp->dev);
@@ -747,7 +748,6 @@ reuse_rx:
else else
fp->eth_q_stats.hw_csum_err++; fp->eth_q_stats.hw_csum_err++;
} }
}
skb_record_rx_queue(skb, fp->rx_queue); skb_record_rx_queue(skb, fp->rx_queue);