Netdev List
 help / color / mirror / Atom feed
* [PATCH] dummy: improve performance
@ 2005-05-20 10:11 Catalin(ux aka Dino) BOIE
  2005-05-25 22:11 ` David S. Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Catalin(ux aka Dino) BOIE @ 2005-05-20 10:11 UTC (permalink / raw)
  To: netdev; +Cc: davem

[-- Attachment #1: Type: TEXT/PLAIN, Size: 522 bytes --]

Hello!

Attached patch tries to improve performance of dummy device by activating 
NETIF_F_SG, NETIF_F_NO_CSUM, NETIF_F_HIGHDMA, NETIF_F_FRAGLIST,
NETIF_F_TSO and NETIF_F_LLTX.

Patch compiles and runs.

I tested the speed and seems very low (both old version and the new one).
Something like 37Mbits/s. It is normal?
I can easily get 80Mbit/s on the same machine on ethernet.

Thank you!

Signed-off-by: Catalin BOIE <catab at umbrella.ro>
---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

[-- Attachment #2: Type: TEXT/PLAIN, Size: 726 bytes --]

--- dummy1/drivers/net/dummy.c	2005-03-26 05:28:20.000000000 +0200
+++ linux/drivers/net/dummy.c	2005-05-20 11:57:44.000000000 +0300
@@ -26,6 +26,8 @@
 			Nick Holloway, 27th May 1994
 	[I tweaked this explanation a little but that's all]
 			Alan Cox, 30th May 1994
+
+	Add special features to improve performance - Catalin BOIE
 */
 
 #include <linux/config.h>
@@ -73,6 +75,8 @@ static void __init dummy_setup(struct ne
 	dev->flags &= ~IFF_MULTICAST;
 	SET_MODULE_OWNER(dev);
 	random_ether_addr(dev->dev_addr);
+	dev->features = NETIF_F_SG | NETIF_F_NO_CSUM | NETIF_F_HIGHDMA
+			| NETIF_F_FRAGLIST | NETIF_F_TSO | NETIF_F_LLTX;
 }
 
 static int dummy_xmit(struct sk_buff *skb, struct net_device *dev)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-05-26  6:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-20 10:11 [PATCH] dummy: improve performance Catalin(ux aka Dino) BOIE
2005-05-25 22:11 ` David S. Miller
2005-05-26  6:03   ` Catalin(ux aka Dino) BOIE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox