Bug 240945

Summary: [hyper-v] [netvsc] hn network driver incorrectly detects baudrate
Product: Base System Reporter: Nova_Logic <geostel>
Component: kernAssignee: Bugmeister <bugmeister>
Status: Closed Feedback Timeout    
Severity: Affects Many People CC: bugmeister, geostel, weh
Priority: ---    
Version: 12.1-RELEASE   
Hardware: amd64   
OS: Any   

Description Nova_Logic 2019-09-30 17:20:54 UTC
Hi!
I have VM with latests pfsense, I was curious why net incorrectly detects link speed ( 10 gbps instead 25gbps), 
had found that baudrate was manually hardcoded in driver.
By that line:
	ifp->if_baudrate = IF_Gbps(10);
in:
https://github.com/freebsd/freebsd/commit/e57ec55e201d11e94f8ef77f0eee70cbe212ca28

Since networking moving forward it would be great to detect link speeds correctly and allow more than 10 gbps in hyper-v vms.

P.S.
My hypervsiros using win 2019, and QLogic FastLinQ QL41212HLCU Dual-Port 25GbE Adapters
Comment 1 Nova_Logic 2019-12-20 14:11:15 UTC
also it's not working in freebsd 12.1,seems it affects every freebsd installation on hyper-v
Comment 2 Wei Hu 2021-07-19 04:03:03 UTC
Hn is a synthetic nic which doesn't have knowledge about the link speed on Hyper-V host. That's the reason it was hard coded. The true link speed is up to the host hardware. You can safely ignore this as it doesn't have anything to do with the real speed.
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2024-10-03 03:48:23 UTC
^Triage: clear stale flags.

To submitter: is this aging PR still relevant?