From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 1/1] make network DMA usable for non-tcp drivers Date: Fri, 8 Jun 2007 12:07:16 -0700 Message-ID: <20070608120716.1e059cf3.akpm@linux-foundation.org> References: <20070605102427.26dd7fac.randy.dunlap@oracle.com> <20070608143053.GC10489@coraid.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, s.a.hopkins@gmail.com, jgarzik@pobox.com, randy.dunlap@oracle.com To: "Ed L. Cashin" Return-path: Received: from smtp2.linux-foundation.org ([207.189.120.14]:57495 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751580AbXFHTHq (ORCPT ); Fri, 8 Jun 2007 15:07:46 -0400 In-Reply-To: <20070608143053.GC10489@coraid.com> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Fri, 8 Jun 2007 10:30:53 -0400 "Ed L. Cashin" wrote: > Here is a patch against the netdev-2.6 git tree that makes the net DMA > feature usable for drivers like the ATA over Ethernet block driver, > which can use dma_skb_copy_datagram_iovec when receiving data from the > network. > > The change was suggested on kernelnewbies. > > http://article.gmane.org/gmane.linux.kernel.kernelnewbies/21663 > > Signed-off-by: Ed L. Cashin > --- > drivers/dma/Kconfig | 2 +- > net/core/user_dma.c | 2 ++ > 2 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig > index 72be6c6..270d23e 100644 > --- a/drivers/dma/Kconfig > +++ b/drivers/dma/Kconfig > @@ -14,7 +14,7 @@ config DMA_ENGINE > comment "DMA Clients" > > config NET_DMA > - bool "Network: TCP receive copy offload" > + bool "Network: receive copy offload" > depends on DMA_ENGINE && NET > default y > ---help--- > diff --git a/net/core/user_dma.c b/net/core/user_dma.c > index 0ad1cd5..69d0b15 100644 > --- a/net/core/user_dma.c > +++ b/net/core/user_dma.c > @@ -130,3 +130,5 @@ end: > fault: > return -EFAULT; > } > + > +EXPORT_SYMBOL(dma_skb_copy_datagram_iovec); We wouldn't want to merge this until code which actually uses the export is also merged.