HomeFreeBSD

Hyper-V: hn: rewrite hn rsc swtich to avoid sysctl hang

Description

Hyper-V: hn: rewrite hn rsc swtich to avoid sysctl hang

Changing the rsc_switch flag using sysctl to turn rsc on or off
could hang. The orignal code sends request to host to get the
mtu setting. Sometimes the host fails to reply, causing
the thread to sleep forever waiting for the host response.

Use existing cached mtu from hn device instead to avoid calling
host.

Reported by: whu
Tested by: whu
MFC after: 1 week

Details

Provenance
whuAuthored on Tue, Feb 4, 1:39 PM
Parents
rGff977fd34b4b: arm64: Add a quirk for arm,fvp-base-revc
Branches
Unknown
Tags
Unknown