Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1257577

Re: [PATCH 1/3] virtio_net: Stop doing DMA from the stack

From Joerg Roedel <jroedel@suse.de>
Newsgroups linux.kernel
Subject Re: [PATCH 1/3] virtio_net: Stop doing DMA from the stack
Date 2015-10-28 03:10 +0100
Message-ID <qoolA-4PZ-7@gated-at.bofh.it> (permalink)
References <qonzc-4kh-3@gated-at.bofh.it> <qonzc-4kh-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Oct 27, 2015 at 06:17:08PM -0700, Andy Lutomirski wrote:
> From: Andy Lutomirski <luto@amacapital.net>
> 
> Once virtio starts using the DMA API, we won't be able to safely DMA
> from the stack.  virtio-net does a couple of config DMA requests
> from small stack buffers -- switch to using dynamically-allocated
> memory.
> 
> This should have no effect on any performance-critical code paths.
> 
> Signed-off-by: Andy Lutomirski <luto@kernel.org>
> ---
>  drivers/net/virtio_net.c | 53 ++++++++++++++++++++++++++++++++----------------
>  1 file changed, 36 insertions(+), 17 deletions(-)

Reviewed-by: Joerg Roedel <jroedel@suse.de>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] virtio_net: Stop doing DMA from the stack Andy Lutomirski <luto@kernel.org> - 2015-10-28 02:20 +0100
  Re: [PATCH 1/3] virtio_net: Stop doing DMA from the stack Joerg Roedel <jroedel@suse.de> - 2015-10-28 03:10 +0100
    Re: [PATCH 1/3] virtio_net: Stop doing DMA from the stack Andy Lutomirski <luto@amacapital.net> - 2015-10-28 03:20 +0100

csiph-web