Permalink
Browse files

alx: fix DMA-write-pending issue

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...
1 parent 35d67ef commit f488842a1928b7a098a866de7a4fc5a139399893 @xhuang xhuang committed with Adrian Chadd Feb 28, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/alx_main.c
View
@@ -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,

0 comments on commit f488842

Please sign in to comment.