Commit 5ef105f9 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix ethernet padding on sun3lance

parent 834d41ab
...@@ -593,6 +593,9 @@ static int lance_start_xmit( struct sk_buff *skb, struct net_device *dev ) ...@@ -593,6 +593,9 @@ static int lance_start_xmit( struct sk_buff *skb, struct net_device *dev )
head->misc = 0; head->misc = 0;
memcpy( PKTBUF_ADDR(head), (void *)skb->data, skb->len ); memcpy( PKTBUF_ADDR(head), (void *)skb->data, skb->len );
if (len != skb->len)
memset(PKTBUF_ADDR(head) + skb->len, 0, len-skb->len);
head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP; head->flag = TMD1_OWN_CHIP | TMD1_ENP | TMD1_STP;
lp->new_tx = (lp->new_tx + 1) & TX_RING_MOD_MASK; lp->new_tx = (lp->new_tx + 1) & TX_RING_MOD_MASK;
lp->stats.tx_bytes += skb->len; lp->stats.tx_bytes += skb->len;
......
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