Bug 208931 - [patch] [hyperv] [netvsc] hn network driver fails to initialize if_baudrate
Summary: [patch] [hyperv] [netvsc] hn network driver fails to initialize if_baudrate
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.3-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-04-20 09:43 UTC by Eugene Grosbein
Modified: 2019-09-30 17:17 UTC (History)
4 users (show)

See Also:


Attachments
fill ifp->if_baudrate (438 bytes, patch)
2016-04-20 09:43 UTC, Eugene Grosbein
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein 2016-04-20 09:43:20 UTC
Created attachment 169488 [details]
fill ifp->if_baudrate

Running FreeBSD 10.3-RELEASE/amd64 as Hyper-V guest, one uses hn0 virtualized network interface. This interface emulates 10Gbit/s link but does not initialize ifp->if_baudrate. This bug may result in other problems, for example: stock bsnmpd does not export 64-bit network interface counters in MIB-II for such NIC.

Trivial patch solving this problem is attached.
Comment 1 Eugene Grosbein 2016-10-24 13:01:44 UTC
Sepherosa Ziehau, please take a look at this problem report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208931

It contains one-line patch fixing a problem with virtualized Hyper-V network device driver.
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-10-25 01:42:09 UTC
A commit references this bug:

Author: sephe
Date: Tue Oct 25 01:41:40 UTC 2016
New revision: 307893
URL: https://svnweb.freebsd.org/changeset/base/307893

Log:
  hyperv/hn: Set baudrate properly

  PR:		208931
  Submitted by:	Eugene Grosbein <ports grosbein net>
  Reported by:	Eugene Grosbein <ports grosbein net>
  MFC after:	1 week
  Sponsored by:	Microsoft

Changes:
  head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
Comment 3 Eugene Grosbein 2016-10-25 09:02:14 UTC
Thanks!

MFC pending? :-)
Comment 4 Sepherosa Ziehau 2016-10-25 09:13:24 UTC
1 week, before hitting 10-stable and 11-stable.
Comment 5 commit-hook freebsd_committer freebsd_triage 2016-11-11 04:34:17 UTC
A commit references this bug:

Author: sephe
Date: Fri Nov 11 04:33:44 UTC 2016
New revision: 308500
URL: https://svnweb.freebsd.org/changeset/base/308500

Log:
  MFC 307893

      hyperv/hn: Set baudrate properly

      PR:             208931
      Submitted by:   Eugene Grosbein <ports grosbein net>
      Reported by:    Eugene Grosbein <ports grosbein net>
      Sponsored by:   Microsoft

Changes:
_U  stable/10/
  stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
Comment 6 commit-hook freebsd_committer freebsd_triage 2016-11-14 03:01:57 UTC
A commit references this bug:

Author: sephe
Date: Mon Nov 14 03:01:31 UTC 2016
New revision: 308620
URL: https://svnweb.freebsd.org/changeset/base/308620

Log:
  MFC 307893

      hyperv/hn: Set baudrate properly

      PR:             208931
      Submitted by:   Eugene Grosbein <ports grosbein net>
      Reported by:    Eugene Grosbein <ports grosbein net>
      Sponsored by:   Microsoft

Changes:
_U  stable/11/
  stable/11/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
Comment 7 Eugene Grosbein freebsd_committer freebsd_triage 2017-05-19 08:01:45 UTC
Patched and MFC'd long time ago.