linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* netconsole & sungem
@ 2004-05-19 20:10 Colin Leroy
  2004-05-19 21:49 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 3+ messages in thread
From: Colin Leroy @ 2004-05-19 20:10 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 526 bytes --]

Hi,

I tried to make netconsole work (with the attached patch copied from e1000), but can't get anything on the cable... the destination station doesn't see anything (nor Ethereal).

Are there any traps I didn't see ? (I have netconsole as a module and it loads ok:
netconsole: local port 32768
netconsole: interface eth0
netconsole: remote port 6666
netconsole: remote IP 192.168.0.4
netconsole: remote ethernet address 08:00:20:76:3c:57
netconsole: local IP 192.168.0.11
netconsole: network logging started
)

TIA,
--
Colin

[-- Attachment #2: sungem.diff --]
[-- Type: text/plain, Size: 962 bytes --]

--- drivers/net/sungem.c.orig	2004-05-19 20:47:15.000000000 +0200
+++ drivers/net/sungem.c	2004-05-19 22:09:25.920632936 +0200
@@ -2441,6 +2441,22 @@
 	return 0;
 }

+#ifdef CONFIG_NET_POLL_CONTROLLER
+/*
+ * Polling 'interrupt' - used by things like netconsole to send skbs
+ * without having to re-enable interrupts. It's not called while
+ * the interrupt routine is executing.
+ */
+
+static void gem_poll(struct net_device *dev)
+{
+	struct gem *gp = dev->priv;
+	disable_irq(gp->pdev->irq);
+	gem_interrupt(gp->pdev->irq, (void *)dev, NULL);
+	enable_irq(gp->pdev->irq);
+}
+#endif
+
 static int gem_set_settings(struct net_device *dev, struct ethtool_cmd *cmd)
 {
 	struct gem *gp = dev->priv;
@@ -2810,6 +2826,9 @@
 	dev->change_mtu = gem_change_mtu;
 	dev->irq = pdev->irq;
 	dev->dma = 0;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+	dev->poll_controller = gem_poll;
+#endif

 	if (register_netdev(dev)) {
 		printk(KERN_ERR PFX "Cannot register net device, "

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

end of thread, other threads:[~2004-05-20  7:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19 20:10 netconsole & sungem Colin Leroy
2004-05-19 21:49 ` Benjamin Herrenschmidt
2004-05-20  7:53   ` Colin Leroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).