diff options
author | sbruno <sbruno@FreeBSD.org> | 2015-06-16 12:10:55 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2015-06-16 12:10:55 +0000 |
commit | 0df0dbaffa293aefb1ac20f42ee997be1da417e4 (patch) | |
tree | 118cad249886a8e61e1e75569f74ae608feff851 /sys/contrib/octeon-sdk/cvmx-bootmem.h | |
parent | 07668b4c178b4abbf25438c9c4cf9003ebe4a1c3 (diff) | |
download | FreeBSD-src-0df0dbaffa293aefb1ac20f42ee997be1da417e4.zip FreeBSD-src-0df0dbaffa293aefb1ac20f42ee997be1da417e4.tar.gz |
MFC r283923
Simplify hang detection by stealing the techniques used in ixl(4) and
applying them to em(4).
Rely on iterations through the local timer, and the tx queue state to
determine if an actual hang has occurred. Any time a descriptor is used
(packet sent), the tx queue is flagged as busy. Then when txeof runs, it
either clears the flag when all is clean, or resets it to 1 if ANY are
cleaned, if nothing is cleaned it increments the flag.
Local timer simply checks to see if busy ever reaches MAX (10, which
is compile time configurable), and then sets it as HUNG, at that point
there is one more timer cycle in which to have any cleans, if not a
watchdog reset will occur.
Diffstat (limited to 'sys/contrib/octeon-sdk/cvmx-bootmem.h')
0 files changed, 0 insertions, 0 deletions