From: Prasanna S Panchamukhi <prasanna@in.ibm.com>
To: jgarzik@pobox.com
Cc: mpm@selenic.com, suparna@in.ibm.com, netdev@oss.sgi.com
Subject: [1/4]pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1
Date: Wed, 3 Dec 2003 19:22:16 +0530 [thread overview]
Message-ID: <20031203135216.GA13465@in.ibm.com> (raw)
Hi Jeff,
Below is the pollcontroller patch for e100.
This patch can be applied over 2.6.0-test9-bk25-netdrvr-exp1.patch
diff -urNp linux.orig/drivers/net/e100/e100_main.c linux-2.6.0-test10/drivers/net/e100/e100_main.c
--- linux.orig/drivers/net/e100/e100_main.c 2003-11-26 03:57:38.000000000 +0530
+++ linux-2.6.0-test10/drivers/net/e100/e100_main.c 2003-11-26 03:59:15.554978648 +0530
@@ -544,6 +544,22 @@ e100_trigger_SWI(struct e100_private *bd
readw(&(bdp->scb->scb_status)); /* flushes last write, read-safe */
}
+#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
+e100_poll(struct net_device *dev)
+{
+ disable_irq(dev->irq);
+ e100intr(dev->irq, dev, NULL);
+ enable_irq(dev->irq);
+}
+#endif
+
static int __devinit
e100_found1(struct pci_dev *pcid, const struct pci_device_id *ent)
{
@@ -562,6 +578,9 @@ e100_found1(struct pci_dev *pcid, const
SET_MODULE_OWNER(dev);
+#ifdef CONFIG_NET_POLL_CONTROLLER
+ dev->poll_controller = &e100_poll;
+#endif
if (first_time) {
first_time = false;
printk(KERN_NOTICE "%s - version %s\n",
--
Thanks & Regards
Prasanna S Panchamukhi
Linux Technology Center
India Software Labs, IBM Bangalore
Ph: 91-80-5044632
reply other threads:[~2003-12-03 13:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20031203135216.GA13465@in.ibm.com \
--to=prasanna@in.ibm.com \
--cc=jgarzik@pobox.com \
--cc=mpm@selenic.com \
--cc=netdev@oss.sgi.com \
--cc=suparna@in.ibm.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).