[PATCH v4 2/2] net: moxa: replace build_skb() with netdev_alloc_skb_ip_align() / memcpy()

Jonas Jensen jonas.jensen at gmail.com
Mon Aug 25 07:23:09 PDT 2014

Thanks for giving feedback.

On 21 August 2014 23:43, Michał Mirosław <mirqus at gmail.com> wrote:
> This has implicit: if (!skb) BUG(); There should probably be a return
> or continue inside the if (!skb).

Fixed, see v6 update (broken out to separate patch) which now includes
increment to RX head counter

> dma_sync_single_for_device() is not needed here as CPU does not and
> should not write to the DMA_FROM_DEVICE mapping.

Fixed, this was also broken out, dma_sync_single_for_device() moved to TX path.
Maybe someone can verify this is the correct thing to do.



More information about the linux-arm-kernel mailing list