From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: don't use kvzalloc for DMA memory Date: Wed, 18 Apr 2018 13:45:07 -0400 (EDT) Message-ID: <20180418.134507.1436128340000357572.davem@davemloft.net> References: <3e65977e-53cd-bf09-bc4b-0ce40e9091fe@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mpatocka@redhat.com, edumazet@google.com, joby.poriyath@citrix.com, bhutchings@solarflare.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: eric.dumazet@gmail.com Return-path: In-Reply-To: <3e65977e-53cd-bf09-bc4b-0ce40e9091fe@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Eric Dumazet 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.