Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74c50b4b authored by Ron Mercer's avatar Ron Mercer Committed by David S. Miller
Browse files

qlge: bugfix: Pad outbound frames smaller than 60 bytes.



With some asic configurations xmit of frames smaller than 60 bytes may
fail.

Signed-off-by: default avatarRon Mercer <ron.mercer@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b318cb3
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2057,6 +2057,9 @@ static int qlge_send(struct sk_buff *skb, struct net_device *ndev)


	tx_ring = &qdev->tx_ring[tx_ring_idx];
	tx_ring = &qdev->tx_ring[tx_ring_idx];


	if (skb_padto(skb, ETH_ZLEN))
		return NETDEV_TX_OK;

	if (unlikely(atomic_read(&tx_ring->tx_count) < 2)) {
	if (unlikely(atomic_read(&tx_ring->tx_count) < 2)) {
		QPRINTK(qdev, TX_QUEUED, INFO,
		QPRINTK(qdev, TX_QUEUED, INFO,
			"%s: shutting down tx queue %d du to lack of resources.\n",
			"%s: shutting down tx queue %d du to lack of resources.\n",