Bug 240945 - [hyper-v] [netvsc] hn network driver incorrectly detects baudrate
Summary: [hyper-v] [netvsc] hn network driver incorrectly detects baudrate
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-30 17:20 UTC by Nova_Logic
Modified: 2024-10-03 03:48 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?