HomeFreeBSD

Hyper-V: vmbus: check if signaling host is needed in vmbus_rxbr_read

Description

Hyper-V: vmbus: check if signaling host is needed in vmbus_rxbr_read

It is observed that netvsc's send rings could stall on the latest
Azure Boost platforms. This is due to vmbus_rxbr_read() routine
doesn't check if host is waiting for more room to put data, which
leads to host side sleeping forever on this vmbus channel. The
problem was only observed on the latest platform because the host
requests larger buffer ring room to be available, which causes
the issue to happen much more easily.

Fix this by adding check in the vmbus_rxbr_read call and signaling
the host in the callers if check returns positively.

Approved by: re (gjb)
Reported by: NetApp
Tested by: whu
Sponsored by: Microsoft

(cherry picked from commit 49fa9a64372b087cfd66459a20f4ffd25464b6a3)
(cherry picked from commit c81166b018acfbe521f52415ff37b8c2696d77c6)

Details

Provenance
whuAuthored on Oct 20 2023, 8:58 AM
Parents
rG19232cc73b4b: if_re: add Realtek Killer Ethernet E2600 IDs
Branches
Unknown
Tags
Unknown