Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144841 Details for
Bug 217932
[RHEL4] Netdump for 8139cp driver
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Preliminary patch to add netdump support to 8139cp driver
linux-2.6.9-8139cp-netpoll.patch (text/plain), 1.32 KB, created by
Chris Lalancette
on 2007-01-04 21:03:41 UTC
(
hide
)
Description:
Preliminary patch to add netdump support to 8139cp driver
Filename:
MIME Type:
Creator:
Chris Lalancette
Created:
2007-01-04 21:03:41 UTC
Size:
1.32 KB
patch
obsolete
>diff -urp linux-2.6.9/drivers/net/8139cp.c ../kernel-2.6.9.working/linux-2.6.9/drivers/net/8139cp.c >--- linux-2.6.9/drivers/net/8139cp.c 2004-10-18 17:54:07.000000000 -0400 >+++ ../kernel-2.6.9.working/linux-2.6.9/drivers/net/8139cp.c 2007-01-04 19:56:11.000000000 -0500 >@@ -615,13 +622,14 @@ rx_next: > * this round of polling > */ > if (rx_work) { >+ unsigned long flags; > if (cpr16(IntrStatus) & cp_rx_intr_mask) > goto rx_status_loop; > >- local_irq_disable(); >+ local_irq_save(flags); > cpw16_f(IntrMask, cp_intr_mask); > __netif_rx_complete(dev); >- local_irq_enable(); >+ local_irq_restore(flags); > > return 0; /* done */ > } >@@ -686,6 +701,15 @@ cp_interrupt (int irq, void *dev_instanc > return IRQ_HANDLED; > } > >+#ifdef CONFIG_NET_POLL_CONTROLLER >+static void cp_poll_controller(struct net_device *dev) >+{ >+ disable_irq(dev->irq); >+ cp_interrupt(dev->irq, dev, NULL); >+ enable_irq(dev->irq); >+} >+#endif >+ > static void cp_tx (struct cp_private *cp) > { > unsigned tx_head = cp->tx_head; >@@ -1747,6 +1772,9 @@ static int cp_init_one (struct pci_dev * > dev->get_stats = cp_get_stats; > dev->do_ioctl = cp_ioctl; > dev->poll = cp_rx_poll; >+#ifdef CONFIG_NET_POLL_CONTROLLER >+ dev->poll_controller = cp_poll_controller; >+#endif > dev->weight = 16; /* arbitrary? from NAPI_HOWTO.txt. */ > #ifdef BROKEN > dev->change_mtu = cp_change_mtu;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 217932
:
144841
|
145057
|
145058