From: Pavel Machek <pavel@ucw.cz>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Netdev <netdev@oss.sgi.com>,
Linux Kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>,
davem@redhat.com
Subject: Re: [FYI] 2.6.x exp net drivers changelog
Date: Fri, 26 Dec 2003 22:23:35 +0100 [thread overview]
Message-ID: <20031226212335.GB197@elf.ucw.cz> (raw)
In-Reply-To: <3FDEA8F5.1020201@pobox.com>
Hi!
> <prasanna:in.ibm.com>:
> o [netdrvr tlan] netpoll support
> o [netdrvr smc-ultra] netpoll support
And here's netpoll for via-rhine... I hope it is allright? [I tested
it briefly, kgdb-over-this seemed to work.]
Pavel
--- tmp/linux/drivers/net/via-rhine.c 2003-09-09 12:45:27.000000000 +0200
+++ linux/drivers/net/via-rhine.c 2003-12-25 22:34:37.000000000 +0100
@@ -615,6 +615,15 @@
break;
}
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void via_rhine_poll(struct net_device *dev)
+{
+ disable_irq(dev->irq);
+ via_rhine_interrupt(dev->irq, (void *)dev, NULL);
+ enable_irq(dev->irq);
+}
+#endif
+
static int __devinit via_rhine_init_one (struct pci_dev *pdev,
const struct pci_device_id *ent)
{
@@ -784,6 +793,9 @@
dev->ethtool_ops = &netdev_ethtool_ops;
dev->tx_timeout = via_rhine_tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ dev->poll_controller = via_rhine_poll;
+#endif
if (np->drv_flags & ReqTxAlign)
dev->features |= NETIF_F_SG|NETIF_F_HW_CSUM;
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
next prev parent reply other threads:[~2003-12-26 21:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-16 6:40 [FYI] 2.6.x exp net drivers changelog Jeff Garzik
2003-12-26 21:23 ` Pavel Machek [this message]
2003-12-30 4:22 ` Jeff Garzik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031226212335.GB197@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@osdl.org \
--cc=davem@redhat.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).