Skip to contentSkip to conversation

pcnet32: NAPI implementation

PATCH In review Don Fry 1 participant 1 message Sep 11, 2006

Subsystems (2)
lore
Share & tools
lore

Don Fry

author
#0 lore raw

PATCH 2/3 pcnet32: NAPI implementation

Implement NAPI changes to pcnet32 driver. Compile default is off. Listed as experimental.

Len and Don both worked on a NAPI implementation and have both tested these changes.

An e1000 blasting short packets to the pcnet32 will lockup Don's system until the receive storm stops. Without NAPI Len's system watchdog would expire causing the system to reboot. With NAPI the system will stay operational.

Tested ia32 and ppc64. Tested '970A, '971, '972, '973, '975, '976, and '978.

The Kconfig changes came from Len. Don is to blame for all the others.

drivers/net/Kconfig renamed from drivers/net/orig.Kconfig +17 -0
@@ -1300,6 +1300,23 @@ config PCNET32
 	  <file:Documentation/networking/net-modules.txt>. The module
 	  will be called pcnet32.
 
+config PCNET32_NAPI
+	bool "Use RX polling (NAPI) (EXPERIMENTAL)"
+	depends on PCNET32 && EXPERIMENTAL
+	help
+	  NAPI is a new driver API designed to reduce CPU and interrupt load
+	  when the driver is receiving lots of packets from the card. It is
+	  still somewhat experimental and thus not yet enabled by default.
+
+	  If your estimated Rx load is 10kpps or more, or if the card will be
+	  deployed on potentially unfriendly networks (e.g. in a firewall),
+	  then say Y here.
+
+	  See <file:Documentation/networking/NAPI_HOWTO.txt> for more
+	  information.
+
+	  If in doubt, say N.
+
 config AMD8111_ETH
 	tristate "AMD 8111 (new PCI lance) support"
 	depends on NET_PCI && PCI
drivers/net/pcnet32.c renamed from drivers/net/pcnet32.c.breakup +91 -2

155 lines not on this page · raw message

Signature · 2 lines
Don Fry
[email protected]