Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166253213
D7923.id20479.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
477 B
Referenced Files
None
Subscribers
None
D7923.id20479.diff
View Options
Index: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -1572,6 +1572,13 @@
HN_LOCK(sc);
+ if ((sc->hn_caps & HN_CAP_MTU) == 0) {
+ /* Can't change MTU */
+ HN_UNLOCK(sc);
+ error = EOPNOTSUPP;
+ break;
+ }
+
if (ifp->if_mtu == ifr->ifr_mtu) {
HN_UNLOCK(sc);
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 13, 1:58 PM (7 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36646917
Default Alt Text
D7923.id20479.diff (477 B)
Attached To
Mode
D7923: hyperv/hn: Don't allow MTU change, if it is not supported by the NVS.
Attached
Detach File
Event Timeline
Log In to Comment