Page MenuHomeFreeBSD

hyperv/hn: Suspend and resume the backend properly upon MTU change
ClosedPublic

Authored by sepherosa_gmail.com on Sep 27 2016, 5:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 20, 4:47 AM
Unknown Object (File)
Sep 6 2025, 9:09 AM
Unknown Object (File)
Aug 27 2025, 4:04 PM
Unknown Object (File)
Aug 19 2025, 2:16 PM
Unknown Object (File)
Aug 9 2025, 7:07 PM
Unknown Object (File)
Aug 2 2025, 11:14 PM
Unknown Object (File)
Jul 26 2025, 2:27 AM
Unknown Object (File)
Jul 21 2025, 11:00 AM
Subscribers
None

Details

Summary

Suspend:

  • Prevent the backend from being touched on TX path.
  • Clear the RNDIS RX filter, and wait for RX to drain.
  • Make sure that NVS see the chimney sending buffer and RXBUF disconnection, before unlink these buffers from the channel.

Resume:

  • Reconfigure the RNDIS filter.
  • Allow TX path to work on the backend.
  • Kick start the TX eof task, in case the OACTIVE is set.

This fixes various panics, when the interface has traffic and MTU is being changed.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sepherosa_gmail.com retitled this revision from to hyperv/hn: Suspend and resume the backend properly upon MTU change.
sepherosa_gmail.com updated this object.
sepherosa_gmail.com edited the test plan for this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.