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

[PATCH] fix ethernet padding on sgiseeq

parent d12219a0
...@@ -531,6 +531,8 @@ static int sgiseeq_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -531,6 +531,8 @@ static int sgiseeq_start_xmit(struct sk_buff *skb, struct net_device *dev)
* added this new entry and restarted it. * added this new entry and restarted it.
*/ */
memcpy((char *)(long)td->buf_vaddr, skb->data, skblen); memcpy((char *)(long)td->buf_vaddr, skb->data, skblen);
if (len != skblen)
memset((char *)(long)td->buf_vaddr + skb->len, 0, len-skblen);
td->tdma.cntinfo = (len & HPCDMA_BCNT) | td->tdma.cntinfo = (len & HPCDMA_BCNT) |
(HPCDMA_XIU | HPCDMA_EOXP | HPCDMA_XIE | HPCDMA_EOX); (HPCDMA_XIU | HPCDMA_EOXP | HPCDMA_XIE | HPCDMA_EOX);
if (sp->tx_old != sp->tx_new) { if (sp->tx_old != sp->tx_new) {
......
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