Skip to contentSkip to conversation

net: Add support for NTB virtual ethernet device

RFC Superseded Jon Mason 1 participant 1 message Sep 27, 2012

Subsystems (4)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

RFC v4 2/2 net: Add support for NTB virtual ethernet device

A virtual ethernet device that uses the NTB transport API to send/receive data.

---
 drivers/net/Kconfig      |    4 +
 drivers/net/Makefile     |    1 +
 drivers/net/ntb_netdev.c |  407 ++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 412 insertions(+)
 create mode 100644 drivers/net/ntb_netdev.c
drivers/net/Kconfig +4 -0
index 0c2bd80..9bf8a71 100644
@@ -178,6 +178,10 @@ config NETPOLL_TRAP
 config NET_POLL_CONTROLLER
 	def_bool NETPOLL
 
+config NTB_NETDEV
+	tristate "Virtual Ethernet over NTB"
+	depends on NTB
+
 config RIONET
 	tristate "RapidIO Ethernet over messaging driver support"
 	depends on RAPIDIO
drivers/net/Makefile +1 -0
index 3d375ca..9890148 100644
@@ -69,3 +69,4 @@ obj-$(CONFIG_USB_IPHETH)        += usb/
 obj-$(CONFIG_USB_CDC_PHONET)   += usb/
 
 obj-$(CONFIG_HYPERV_NET) += hyperv/
+obj-$(CONFIG_NTB_NETDEV) += ntb_netdev.o
drivers/net/ntb_netdev.c new file +407 -0

407 lines not on this page · raw message

Signature · 1 line
1.7.9.5