FreeBSD Bugzilla – Attachment 91847 Details for
Bug 129352
[xl] [patch] xl0 watchdog timeout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.18 KB, created by
Ping Mai
on 2008-12-01 22:30:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Ping Mai
Created:
2008-12-01 22:30:00 UTC
Size:
1.18 KB
patch
obsolete
>Index: /usr/src/sys/pci/if_xl.c >=================================================================== >RCS file: /local/fbsdcvs/src/sys/pci/Attic/if_xl.c,v >retrieving revision 1.190.2.12 >diff -c -r1.190.2.12 if_xl.c >*** /usr/src/sys/pci/if_xl.c 23 Apr 2008 21:38:29 -0000 1.190.2.12 >--- /usr/src/sys/pci/if_xl.c 28 Nov 2008 22:10:36 -0000 >*************** >*** 2079,2084 **** >--- 2079,2085 ---- > { > struct xl_chain *cur_tx; > struct ifnet *ifp = sc->xl_ifp; >+ u_long opkts = ifp->if_opackets; > > XL_LOCK_ASSERT(sc); > >*************** >*** 2120,2125 **** >--- 2121,2128 ---- > sc->xl_cdata.xl_tx_head->xl_phys); > CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_DOWN_UNSTALL); > } >+ if (opkts != ifp->if_opackets) >+ sc->xl_wdog_timer = 5; > } > } > >*************** >*** 2129,2134 **** >--- 2132,2138 ---- > struct xl_chain *cur_tx = NULL; > struct ifnet *ifp = sc->xl_ifp; > int idx; >+ u_long opkts = ifp->if_opackets; > > XL_LOCK_ASSERT(sc); > >*************** >*** 2158,2163 **** >--- 2162,2169 ---- > > if (sc->xl_cdata.xl_tx_cnt == 0) > sc->xl_wdog_timer = 0; >+ else if (opkts != ifp->if_opackets) >+ sc->xl_wdog_timer = 5; > sc->xl_cdata.xl_tx_cons = idx; > > if (cur_tx != NULL)
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 129352
: 91847