lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 8 Jun 2007 10:30:53 -0400
From:	"Ed L. Cashin" <ecashin@...aid.com>
To:	netdev@...r.kernel.org
Cc:	s.a.hopkins@...il.com, jgarzik@...ox.com, randy.dunlap@...cle.com,
	akpm@...ux-foundation.org
Subject: [PATCH 1/1] make network DMA usable for non-tcp drivers

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 <ecashin@...aid.com>
---
 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);
-- 
1.5.2.1
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists