Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176832366
D60980.1793450695.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
431 B
Referenced Files
None
Subscribers
None
D60980.1793450695.diff
View Options
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -1314,6 +1314,8 @@
}
ether_ifattach(ifp, sc->vtnet_hwaddr);
+ if (if_getmtu(ifp) > sc->vtnet_max_mtu)
+ if_setmtu(ifp, sc->vtnet_max_mtu);
/* Tell the upper layer(s) we support long frames. */
if_setifheaderlen(ifp, sizeof(struct ether_vlan_header));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 31, 12:44 PM (10 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41242312
Default Alt Text
D60980.1793450695.diff (431 B)
Attached To
Mode
D60980: vtnet: honor the advertised MTU limit on attach
Attached
Detach File
Event Timeline