Page MenuHomeFreeBSD

re: Make sure re_rxeof() is called in net epoch context
ClosedPublic

Authored by markj on Aug 13 2025, 2:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 18, 8:13 AM
Unknown Object (File)
Mon, Apr 13, 1:19 AM
Unknown Object (File)
Sun, Apr 12, 1:19 PM
Unknown Object (File)
Sun, Apr 12, 4:11 AM
Unknown Object (File)
Sat, Apr 11, 8:00 PM
Unknown Object (File)
Sat, Apr 11, 2:51 PM
Unknown Object (File)
Wed, Apr 8, 9:46 PM
Unknown Object (File)
Sun, Mar 29, 4:39 PM
Subscribers

Details

Summary

It may pass packets up the stack and so needs to be called in a network
epoch. When a watchdog timeout happens, we need to enter a section
explicitly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Aug 13 2025, 2:44 PM
adrian added a subscriber: adrian.

good catch!

This revision is now accepted and ready to land.Aug 13 2025, 2:52 PM
zlei added a subscriber: zlei.
zlei added inline comments.
sys/dev/re/if_re.c
3582

Well, I thought the entire re_watchdog() should be in net epoch section, but re_detach() has done the right thing so the ifp and its related members are guaranteed to be alive, so let re_rxeof() be in net epoch section should be sufficient.