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)
Fri, Dec 13, 10:53 PM
Unknown Object (File)
Tue, Dec 10, 12:22 PM
Unknown Object (File)
Nov 2 2024, 9:39 AM
Unknown Object (File)
Oct 30 2024, 3:53 PM
Unknown Object (File)
Oct 29 2024, 5:58 AM
Unknown Object (File)
Oct 23 2024, 4:57 AM
Unknown Object (File)
Oct 2 2024, 6:46 PM
Unknown Object (File)
Oct 2 2024, 6:25 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.