lkml.org 
[lkml]   [2015]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] virtio_net: Stop doing DMA from the stack
    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>


    \
     
     \ /
      Last update: 2015-10-28 03:21    [W:4.356 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site