From: Kalev Lember <kalev@smartlink.ee>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: netdev@oss.sgi.com, manfred@colorfullife.com
Subject: Re: [PATCH] natsemi netpoll support
Date: Tue, 27 Jul 2004 21:22:40 +0300 [thread overview]
Message-ID: <41069D70.9030207@smartlink.ee> (raw)
In-Reply-To: <410697F8.2050205@pobox.com>
[-- Attachment #1: Type: text/plain, Size: 105 bytes --]
Jeff Garzik wrote:
> please also #ifdef the prototype
Sorry. Attached updated patch.
--
Kalev Lember
[-- Attachment #2: natsemi_netconsole.diff --]
[-- Type: text/x-patch, Size: 1306 bytes --]
--- linux-2.6.8-rc2/drivers/net/natsemi.c.orig 2004-07-25 23:37:05.000000000 +0300
+++ linux-2.6.8-rc2/drivers/net/natsemi.c 2004-07-27 21:18:52.676300394 +0300
@@ -750,6 +750,9 @@ static void netdev_error(struct net_devi
static void netdev_rx(struct net_device *dev);
static void netdev_tx_done(struct net_device *dev);
static int natsemi_change_mtu(struct net_device *dev, int new_mtu);
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void natsemi_poll_controller(struct net_device *dev);
+#endif
static void __set_rx_mode(struct net_device *dev);
static void set_rx_mode(struct net_device *dev);
static void __get_stats(struct net_device *dev);
@@ -920,6 +923,9 @@ static int __devinit natsemi_probe1 (str
dev->do_ioctl = &netdev_ioctl;
dev->tx_timeout = &tx_timeout;
dev->watchdog_timeo = TX_TIMEOUT;
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ dev->poll_controller = &natsemi_poll_controller;
+#endif
if (mtu)
dev->mtu = mtu;
@@ -2364,6 +2370,15 @@ static struct net_device_stats *get_stat
return &np->stats;
}
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void natsemi_poll_controller(struct net_device *dev)
+{
+ disable_irq(dev->irq);
+ intr_handler(dev->irq, dev, NULL);
+ enable_irq(dev->irq);
+}
+#endif
+
#define HASH_TABLE 0x200
static void __set_rx_mode(struct net_device *dev)
{
next prev parent reply other threads:[~2004-07-27 18:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-26 15:54 [PATCH] natsemi netpoll support Kalev Lember
2004-07-27 17:59 ` Jeff Garzik
2004-07-27 18:22 ` Kalev Lember [this message]
2004-07-28 17:08 ` 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=41069D70.9030207@smartlink.ee \
--to=kalev@smartlink.ee \
--cc=jgarzik@pobox.com \
--cc=manfred@colorfullife.com \
--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).