Page MenuHomeFreeBSD

hyperv/hn: Add sysctl to trust host side UDP and IP csum verification
ClosedPublic

Authored by sepherosa_gmail.com on Jan 28 2016, 9:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 20 2024, 1:44 PM
Unknown Object (File)
Mar 20 2024, 1:43 PM
Unknown Object (File)
Dec 31 2023, 1:47 AM
Unknown Object (File)
Dec 23 2023, 6:50 AM
Unknown Object (File)
Dec 14 2023, 1:38 AM
Unknown Object (File)
Dec 13 2023, 4:20 AM
Unknown Object (File)
Nov 30 2023, 7:13 AM
Unknown Object (File)
Nov 9 2023, 5:53 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sepherosa_gmail.com retitled this revision from to hyperv/hn: Add sysctl to trust host side UDP and IP csum verification.
sepherosa_gmail.com updated this object.
sepherosa_gmail.com edited the test plan for this revision. (Show Details)
sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
531 ↗(On Diff #12782)

I saw some SYSCTL was added in if (unit == 0), others are not. What is the reason?

sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
531 ↗(On Diff #12782)

This set is added to the devclass tree, i.e. dev.hn; while the above set is added to dev.hn.X. The sysctl nodes under devclass tree is used to give users a convenient way to check the values of the tunables w/ the same name, as suggested by delphij.

sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
531 ↗(On Diff #12782)

Hm, I thought we did "hw.XXX" for device specific things in freebsd, versus unit-specific things (which is dev.XXX.unit.)

-a

sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
531 ↗(On Diff #12782)

Nah, they are read-only nodes for the devclass tunables, i.e. dev.hn.XXX, not dev.hn.unit.XXX.

As about why we need to create the sysctl nodes dynamically: the devclass sysctl tree is created dynamically by bus code, so the static RDTUN sysctl definition will not work for dev.hn.

This revision is now accepted and ready to land.Jan 29 2016, 10:06 AM
adrian edited edge metadata.

So this is okay, but we put the non-unit bits under 'hw', not 'dev'. Ie, it'd be dev.XXX.0.stuff, and hw.XXX.stuff.

So I'll okay this, but we should eventually shuffle them back to 'hw'.

This revision was automatically updated to reflect the committed changes.