aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-0x.cpp
diff options
context:
space:
mode:
authorAndrew Gallatin <gallatin@FreeBSD.org>2026-08-31 21:13:47 +0000
committerAndrew Gallatin <gallatin@FreeBSD.org>2026-08-31 21:17:44 +0000
commitebb93ce6d86e6c6abd9d9fada21a3b107099db8f (patch)
treee3eadf05111c6ae52f5cf13e0ad876c722ce4dcc /test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-0x.cpp
parent6ddb10cf6b7f870d749e96d2ae55976b18896f54 (diff)
iflib: don't update the admin status in if_media_status()HEADmain
When _task_fn_admin() is active, it will regularly call IFDI_UPDATE_ADMIN_STATUS(). So there is no need to do it in iflib_media_status. This can be fairly expensive on some drivers (long DELAY busywait loops waiting for a NIC command), and there is no need to pause a userspace app in this DELAY() if it is happening asynchronously anyway. Note the logic to detect if _task_fn_admin() is regularly calling IFDI_UPDATE_ADMIN_STATUS() was copied from that function. Reviewed by: erj, kbowling Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D54096
Diffstat (limited to 'test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-0x.cpp')
0 files changed, 0 insertions, 0 deletions