Skip to content

Commit

Permalink
qlge: bugfix: Pad outbound frames smaller than 60 bytes.
Browse files Browse the repository at this point in the history
With some asic configurations xmit of frames smaller than 60 bytes may
fail.

Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ron Mercer authored and David S. Miller committed Mar 10, 2009
1 parent 6b318cb commit 74c50b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/qlge/qlge_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2057,6 +2057,9 @@ static int qlge_send(struct sk_buff *skb, struct net_device *ndev)

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)) {
QPRINTK(qdev, TX_QUEUED, INFO,
"%s: shutting down tx queue %d du to lack of resources.\n",
Expand Down

0 comments on commit 74c50b4

Please sign in to comment.