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

[PATCH] fix ethernet padding on axnet_cs

parent 6e0f1eff
......@@ -1216,6 +1216,7 @@ static int ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
struct ei_device *ei_local = (struct ei_device *) dev->priv;
int length, send_length, output_page;
unsigned long flags;
u8 packet[ETH_ZLEN];
netif_stop_queue(dev);
......@@ -1286,7 +1287,14 @@ static int ei_start_xmit(struct sk_buff *skb, struct net_device *dev)
* trigger the send later, upon receiving a Tx done interrupt.
*/
if (length == skb->len)
ei_block_output(dev, length, skb->data, output_page);
else {
memset(packet, 0, ETH_ZLEN);
memcpy(packet, skb->data, skb->len);
ei_block_output(dev, length, packet, output_page);
}
if (! ei_local->txing)
{
ei_local->txing = 1;
......
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