Re: [PATCH] net: don't use kvzalloc for DMA memory
From: David Miller
Date: Wed Apr 18 2018 - 13:45:15 EST
From: Eric Dumazet <eric.dumazet@xxxxxxxxx>
Date: Wed, 18 Apr 2018 09:05:54 -0700
> Each virtio_net should probably allocate the exact amount of
> DMA-memory it wants, instead of expecting core networking stack to
> have a huge chunk of DMA-memory for everything.
Yes, if you need DMA'able memory, allocate DMA'able memory separately
and hang it off of the netdev instead of assuming you can just DMA
in/out of it.