public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
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: [2/4] pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1
Date: Wed, 3 Dec 2003 19:27:28 +0530	[thread overview]
Message-ID: <20031203135728.GA13585@in.ibm.com> (raw)

Hi Jeff,

Below is the pollcontroller patch for e1000.
This patch can be applied over 2.6.0-test9-bk25-netdrvr-exp1.patch

diff -urNp linux-netdrvr/drivers/net/e1000/e1000_main.c linux-2.6.0-test10/drivers/net/e1000/e1000_main.c
--- linux-netdrvr/drivers/net/e1000/e1000_main.c	2003-12-04 11:18:03.000000000 +0530
+++ linux-2.6.0-test10/drivers/net/e1000/e1000_main.c	2003-12-04 11:43:35.412199928 +0530
@@ -338,6 +338,15 @@ e1000_reset(struct e1000_adapter *adapte
 	e1000_phy_get_info(&adapter->hw, &adapter->phy_info);
 }
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+static void e1000_poll(struct net_device *dev)
+{
+	disable_irq(dev->irq);
+	e1000_intr(dev->irq, dev, NULL);
+	enable_irq(dev->irq);
+}
+#endif
+
 /**
  * e1000_probe - Device Initialization Routine
  * @pdev: PCI device information struct
@@ -439,6 +448,9 @@ e1000_probe(struct pci_dev *pdev,
 
 	adapter->bd_number = cards_found;
 
+#ifdef CONFIG_NET_POLL_CONTROLLER
+	netdev->poll_controller = &e1000_poll;
+#endif
 	/* setup the private structure */
 
 	if((err = e1000_sw_init(adapter)))
-- 
Thanks & Regards
Prasanna S Panchamukhi
Linux Technology Center
India Software Labs, IBM Bangalore
Ph: 91-80-5044632

             reply	other threads:[~2003-12-03 13:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-03 13:57 Prasanna S Panchamukhi [this message]
2003-12-05  6:40 ` [2/4] pollcontroller patch for 2.6.0-test10-bk25-netdrvr-exp1 Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2003-12-04  2:25 Feldman, Scott
2003-12-05 21:36 Feldman, Scott
2003-12-05 22:06 Feldman, Scott

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=20031203135728.GA13585@in.ibm.com \
    --to=prasanna@in$(echo .)ibm.com \
    --cc=jgarzik@pobox$(echo .)com \
    --cc=mpm@selenic$(echo .)com \
    --cc=netdev@oss$(echo .)sgi.com \
    --cc=suparna@in$(echo .)ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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