Commit b4850fc1 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix lasi_82596 using skb_padto

parent e7851533
......@@ -1080,12 +1080,19 @@ static int i596_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct i596_private *lp = (struct i596_private *) dev->priv;
struct tx_cmd *tx_cmd;
struct i596_tbd *tbd;
short length = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
short length = skb->len;
dev->trans_start = jiffies;
DEB(DEB_STARTTX,printk("%s: i596_start_xmit(%x,%p) called\n", dev->name,
skb->len, skb->data));
if (length < ETH_ZLEN) {
skb = skb_padto(skb, ETH_ZLEN);
if (skb == NULL)
return 0;
length = ETH_ZLEN;
}
netif_stop_queue(dev);
tx_cmd = lp->tx_cmds + lp->next_tx_cmd;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment