Skip to content

Commit

Permalink
alx: fix DMA-write-pending issue
Browse files Browse the repository at this point in the history
the chip can only handle aligned DMA address (4byte align) for
rx-buffers,
skb_reserve(skb, NET_IP_ALIGN) will break the rule, so, just remove it.

Signed-off-by: xiong <xiong@qca.qualcomm.com>
  • Loading branch information
xhuang authored and Adrian Chadd committed Mar 1, 2013
1 parent 35d67ef commit f488842
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/alx_main.c
Expand Up @@ -402,7 +402,6 @@ int alx_alloc_rxring_buf(struct alx_adapter *adpt,
netdev_warn(adpt->netdev, "alloc skb failed\n");
break;
}
skb_reserve(skb, NET_IP_ALIGN);
dma = dma_map_single(rxq->dev,
skb->data,
adpt->rxbuf_size,
Expand Down

0 comments on commit f488842

Please sign in to comment.