Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Feb 2016 03:26:03 +0000
From:      "sepherosa_gmail.com (Sepherosa Ziehau)" <phabric-noreply@FreeBSD.org>
To:        freebsd-net@freebsd.org
Subject:   [Differential] [Request, 74 lines] D5274: hyperv/hn: Change global tunable prefix to hw.hn
Message-ID:  <differential-rev-PHID-DREV-3xqsyxssvb2fbx3n3vef-req@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

--b1_ca95c5b6983950fe7e17384304dd10f3
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: 8bit

sepherosa_gmail.com created this revision.
sepherosa_gmail.com added reviewers: network, adrian, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com.
sepherosa_gmail.com added subscribers: freebsd-net-list, freebsd-virtualization-list.

REVISION SUMMARY
  And use SYSCTL+CTLFLAG_RDTUN for them.
  
  Suggested by: adrian

REVISION DETAIL
  https://reviews.freebsd.org/D5274

AFFECTED FILES
  sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c

EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: sepherosa_gmail.com, network, adrian, delphij, royger, decui_microsoft.com, honzhan_microsoft.com, howard0su_gmail.com
Cc: freebsd-virtualization-list, freebsd-net-list

--b1_ca95c5b6983950fe7e17384304dd10f3
Content-Type: text/x-patch; charset=utf-8; name="D5274.13285.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="D5274.13285.patch"

ZGlmZiAtLWdpdCBhL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2Qu
YyBiL3N5cy9kZXYvaHlwZXJ2L25ldHZzYy9odl9uZXR2c2NfZHJ2X2ZyZWVic2QuYwotLS0gYS9z
eXMvZGV2L2h5cGVydi9uZXR2c2MvaHZfbmV0dnNjX2Rydl9mcmVlYnNkLmMKKysrIGIvc3lzL2Rl
di9oeXBlcnYvbmV0dnNjL2h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pcmVjdF90eF9zaXplIiwKLQkJICAgIENUTEZMQUdfUkQsICZobl9kaXJl
Y3RfdHhfc2l6ZSwgMCwKLQkJICAgICJTaXplIG9mIHRoZSBwYWNrZXQgZm9yIGRpcmVjdCB0cmFu
c21pc3Npb24iKTsKLSNpZiBkZWZpbmVkKElORVQpIHx8IGRlZmluZWQoSU5FVDYpCi0jaWYgX19G
cmVlQlNEX3ZlcnNpb24gPj0gMTEwMDA5NQotCQlTWVNDVExfQUREX0lOVChkY19jdHgsIGRjX2No
aWxkLCBPSURfQVVUTywgImxyb19lbnRyeV9jb3VudCIsCi0JCSAgICBDVExGTEFHX1JELCAmaG5f
bHJvX2VudHJ5X2NvdW50LCAwLCAiTFJPIGVudHJ5IGNvdW50Iik7Ci0jZW5kaWYKLSNlbmRpZgot
CX0KLQogCXJldHVybiAoMCk7CiBmYWlsZWQ6CiAJaG5fZGVzdHJveV90eF9yaW5nKHNjKTsKCg==


--b1_ca95c5b6983950fe7e17384304dd10f3--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-3xqsyxssvb2fbx3n3vef-req>