summaryrefslogtreecommitdiff
path: root/sys/dev/mii/tlphyreg.h
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2023-12-28 14:30:29 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2023-12-28 14:30:29 +0000
commitf4e5c58ba50d35d52b85d935229d4d4406fcd73e (patch)
tree63b781ce5b8a7a35f9d50a83c2154b28f92ad6d5 /sys/dev/mii/tlphyreg.h
parent8550eea1e321f4b49280ea291cb4fdfc7da70f21 (diff)
fix Tx watchdog trigger and freeze in dwqe(4)
dwqe(4) interfaces may trigger the "dwqe_watchdog" function and stop transmitting packets under heavy Tx load. In this situation, ifconfig(8) will permanently show OACTIVE until the interface is restarted (ifconfig down/up). The problem seems to be triggered by writing to the Tx ring tail pointer register multiple times during dwqe_start(). Updating the Tx ring tail pointer only after all Tx descriptors have been updated seems to fix it. The fix is based on the eqos(4) driver in NetBSD. Verified on an Intel Elkhart Lake machine but might affect other platforms with DesignWare Ethernet Quality-of-Service Controller version 4. Testing by bluhm@, ok kettenis@
Diffstat (limited to 'sys/dev/mii/tlphyreg.h')
0 files changed, 0 insertions, 0 deletions