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)
Sun, Mar 31, 8:49 AM
Unknown Object (File)
Dec 22 2023, 2:42 PM
Unknown Object (File)
Dec 22 2023, 2:41 PM
Unknown Object (File)
Dec 20 2023, 8:24 AM
Unknown Object (File)
Sep 25 2023, 1:48 PM
Unknown Object (File)
Aug 27 2023, 8:50 PM
Unknown Object (File)
Aug 26 2023, 11:10 AM
Unknown Object (File)
Jul 6 2023, 5:11 PM
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.