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 610677 Details for
Bug 852965
set_link can not change rtl8139 network card's status
[?]
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]
Patch to add link status for rtl8139
0001-rtl8139-implement-8139cp-link-status.patch (text/plain), 1.55 KB, created by
jason wang
on 2012-09-07 10:03:07 UTC
(
hide
)
Description:
Patch to add link status for rtl8139
Filename:
MIME Type:
Creator:
jason wang
Created:
2012-09-07 10:03:07 UTC
Size:
1.55 KB
patch
obsolete
>From 0f3b8fc9fc3690270bc0caf1ce09ec10916d1e0e Mon Sep 17 00:00:00 2001 >From: Jason Wang <jasowang@redhat.com> >Date: Fri, 7 Sep 2012 14:10:00 +0800 >Subject: [PATCH] rtl8139: implement 8139cp link status > >Add a link status chang callback and change the link status bit in BMSR >accordingly. Tested in linux guest. > >Signed-off-by: Jason Wang <jasowang@redhat.com> >--- > hw/rtl8139.c | 17 ++++++++++++++++- > 1 files changed, 16 insertions(+), 1 deletions(-) > >diff --git a/hw/rtl8139.c b/hw/rtl8139.c >index 844f1b8..9d696e0 100644 >--- a/hw/rtl8139.c >+++ b/hw/rtl8139.c >@@ -167,7 +167,7 @@ enum IntrStatusBits { > PCIErr = 0x8000, > PCSTimeout = 0x4000, > RxFIFOOver = 0x40, >- RxUnderrun = 0x20, >+ RxUnderrun = 0x20, /* or link status is changed */ > RxOverflow = 0x10, > TxErr = 0x08, > TxOK = 0x04, >@@ -3453,12 +3453,27 @@ static void pci_rtl8139_uninit(PCIDevice *dev) > qemu_del_net_client(&s->nic->nc); > } > >+static void rtl8139_set_link_status(NetClientState *nc) >+{ >+ RTL8139State *s = DO_UPCAST(NICState, nc, nc)->opaque; >+ >+ if (nc->link_down) { >+ s->BasicModeStatus &= ~0x0004; >+ } else { >+ s->BasicModeStatus |= 0x0004; >+ } >+ >+ s->IntrStatus |= RxUnderrun; >+ rtl8139_update_irq(s); >+} >+ > static NetClientInfo net_rtl8139_info = { > .type = NET_CLIENT_OPTIONS_KIND_NIC, > .size = sizeof(NICState), > .can_receive = rtl8139_can_receive, > .receive = rtl8139_receive, > .cleanup = rtl8139_cleanup, >+ .link_status_changed = rtl8139_set_link_status, > }; > > static int pci_rtl8139_init(PCIDevice *dev) >-- >1.7.1 >
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 852965
: 610677