[openib-general] ip over ib throughtput

Roland Dreier roland at topspin.com
Tue Jan 4 17:11:11 PST 2005


    Grant> I'll see how hard it would be to try it with tg3.

My previous patch seems like it won't work (need MSGINT_MODE_ENABLE
set too, according to http://www.ussg.iu.edu/hypermail/linux/kernel/0301.3/0123.html)

Index: linux-bk/drivers/net/tg3.c
===================================================================
--- linux-bk.orig/drivers/net/tg3.c	2004-12-29 22:05:41.000000000 -0800
+++ linux-bk/drivers/net/tg3.c	2005-01-04 17:09:23.930140627 -0800
@@ -8218,6 +8218,11 @@
 		pci_using_dac = 0;
 	}
 
+	if (pci_enable_msi(pdev))
+		printk(KERN_WARNING PFX "Couldn't enable MSI.\n");
+	else
+		tw32(MSGINT_MODE, MSGINT_MODE_ENABLE); 		
+
 	tg3reg_base = pci_resource_start(pdev, 0);
 	tg3reg_len = pci_resource_len(pdev, 0);
 
@@ -8468,6 +8473,7 @@
 		unregister_netdev(dev);
 		iounmap(tp->regs);
 		free_netdev(dev);
+		pci_disable_msi(pdev);
 		pci_release_regions(pdev);
 		pci_disable_device(pdev);
 		pci_set_drvdata(pdev, NULL);



More information about the general mailing list