Skip to contentSkip to conversation

Accelerated network drivers

PATCH In review Kieran Mansley 1 participant 1 message Feb 15, 2008 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 Accelerated network drivers

This patch provides the netfront plug-in module (sfc_netfront) to accelerate network access on Solarflare NICs and a generic module (sfc_netutil) that is used by both the frontend and backend plugins.

SFC frontend network accelerator source

drivers/xen/Kconfig +10 -0
diff -r dd748ded9ba8 drivers/xen/Kconfig
@@ -78,6 +78,10 @@ config XEN_NETDEV_PIPELINED_TRANSMITTER
 	  like reassembling packets to perform firewall filtering; or if you
 	  are unsure; or if you experience network hangs when this option is
 	  enabled; then you must say N here.
+
+config XEN_NETDEV_ACCEL_SFC_UTIL
+        tristate
+        default n
 
 config XEN_NETDEV_LOOPBACK
 	tristate "Network-device loopback driver"
@@ -192,6 +196,12 @@ config XEN_GRANT_DEV
 	  Device for accessing (in user-space) pages that have been granted
 	  by other domains.
 
+config XEN_NETDEV_ACCEL_SFC_FRONTEND
+	tristate "Network-device frontend driver acceleration for Solarflare NICs"
+	depends on XEN_NETDEV_FRONTEND
+        select XEN_NETDEV_ACCEL_SFC_UTIL
+	default m
+
 config XEN_FRAMEBUFFER
 	tristate "Framebuffer-device frontend driver"
 	depends on FB
drivers/xen/Makefile +2 -0
diff -r dd748ded9ba8 drivers/xen/Makefile
@@ -20,3 +20,5 @@ obj-$(CONFIG_XEN_KEYBOARD)		+= fbfront/
 obj-$(CONFIG_XEN_KEYBOARD)		+= fbfront/
 obj-$(CONFIG_XEN_PRIVCMD)	+= privcmd/
 obj-$(CONFIG_XEN_GRANT_DEV)	+= gntdev/
+obj-$(CONFIG_XEN_NETDEV_ACCEL_SFC_UTIL)		+= sfc_netutil/
+obj-$(CONFIG_XEN_NETDEV_ACCEL_SFC_FRONTEND)	+= sfc_netfront/
drivers/xen/sfc_netfront/Makefile new file +11 -0
diff -r dd748ded9ba8 drivers/xen/sfc_netfront/Makefile
@@ -0,0 +1,11 @@
+EXTRA_CFLAGS += -Idrivers/xen/sfc_netutil -Idrivers/xen/netfront
+EXTRA_CFLAGS += -D__ci_driver__
+EXTRA_CFLAGS += -Werror
+
+ifdef GCOV
+EXTRA_CFLAGS += -fprofile-arcs -ftest-coverage -DEFX_GCOV
+endif
+
+obj-$(CONFIG_XEN_NETDEV_ACCEL_SFC_FRONTEND)	:= sfc_netfront.o
+
+sfc_netfront-objs := accel_msg.o accel_bufs.o accel_netfront.o accel_vi.o accel_xenbus.o accel_tso.o accel_ssr.o accel_debugfs.o falcon_event.o falcon_vi.o pt_tx.o vi_init.o
drivers/xen/sfc_netfront/accel.h new file +477 -0

477 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_bufs.c new file +393 -0

393 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_bufs.h new file +181 -0

181 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_debugfs.c new file +234 -0

234 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_msg.c new file +566 -0

566 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_netfront.c new file +318 -0

318 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_ssr.c new file +308 -0

308 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_ssr.h new file +88 -0

88 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_tso.c new file +512 -0

397 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_tso.h new file +57 -0

57 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_vi.c new file +1194 -0

1,194 lines not on this page · raw message

drivers/xen/sfc_netfront/accel_xenbus.c new file +776 -0

776 lines not on this page · raw message

drivers/xen/sfc_netfront/ef_vi_falcon.h new file +172 -0

172 lines not on this page · raw message

drivers/xen/sfc_netfront/ef_vi_falcon_core.h new file +1075 -0

1,075 lines not on this page · raw message

drivers/xen/sfc_netfront/ef_vi_falcon_desc.h new file +43 -0

43 lines not on this page · raw message

drivers/xen/sfc_netfront/ef_vi_falcon_event.h new file +123 -0

123 lines not on this page · raw message

drivers/xen/sfc_netfront/ef_vi_internal.h new file +256 -0

256 lines not on this page · raw message

drivers/xen/sfc_netfront/etherfabric/ef_vi.h new file +665 -0

665 lines not on this page · raw message

drivers/xen/sfc_netfront/falcon_event.c new file +346 -0

346 lines not on this page · raw message

drivers/xen/sfc_netfront/falcon_vi.c new file +465 -0

465 lines not on this page · raw message

drivers/xen/sfc_netfront/pt_tx.c new file +91 -0

91 lines not on this page · raw message

drivers/xen/sfc_netfront/sysdep.h new file +184 -0

184 lines not on this page · raw message

drivers/xen/sfc_netfront/vi_init.c new file +183 -0

183 lines not on this page · raw message

drivers/xen/sfc_netutil/Makefile new file +10 -0
diff -r dd748ded9ba8 drivers/xen/sfc_netutil/Makefile

Lines of this file are not shown. View the raw message.

drivers/xen/sfc_netutil/accel_cuckoo_hash.c new file +651 -0

651 lines not on this page · raw message

drivers/xen/sfc_netutil/accel_cuckoo_hash.h new file +227 -0

227 lines not on this page · raw message

drivers/xen/sfc_netutil/accel_msg_iface.c new file +301 -0

301 lines not on this page · raw message

drivers/xen/sfc_netutil/accel_msg_iface.h new file +414 -0

414 lines not on this page · raw message

drivers/xen/sfc_netutil/accel_shared_fifo.h new file +127 -0

127 lines not on this page · raw message

drivers/xen/sfc_netutil/accel_util.c new file +333 -0

333 lines not on this page · raw message

drivers/xen/sfc_netutil/accel_util.h new file +127 -0

127 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Part of the diff is not shown here. View the raw message.