Commit 8cee0ea3 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] padto - fix 3c527 using skb_padto

parent bfe82422
...@@ -1084,6 +1084,11 @@ static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev) ...@@ -1084,6 +1084,11 @@ static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev)
/* We will need this to flush the buffer out */ /* We will need this to flush the buffer out */
lp->tx_ring[lp->tx_ring_head].skb=skb; lp->tx_ring[lp->tx_ring_head].skb=skb;
if (skb->len < ETH_ZLEN) {
skb = skb_padto(skb, ETH_ZLEN);
if (skb == NULL)
goto out;
}
np->length = (skb->len < ETH_ZLEN) ? ETH_ZLEN : skb->len; np->length = (skb->len < ETH_ZLEN) ? ETH_ZLEN : skb->len;
np->data = isa_virt_to_bus(skb->data); np->data = isa_virt_to_bus(skb->data);
...@@ -1092,7 +1097,7 @@ static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev) ...@@ -1092,7 +1097,7 @@ static int mc32_send_packet(struct sk_buff *skb, struct net_device *dev)
wmb(); wmb();
p->control &= ~CONTROL_EOL; /* Clear EOL on p */ p->control &= ~CONTROL_EOL; /* Clear EOL on p */
out:
restore_flags(flags); restore_flags(flags);
netif_wake_queue(dev); netif_wake_queue(dev);
......
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