Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150060285
D27912.id81535.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
971 B
Referenced Files
None
Subscribers
None
D27912.id81535.diff
View Options
Index: sys/dev/virtio/network/if_vtnet.c
===================================================================
--- sys/dev/virtio/network/if_vtnet.c
+++ sys/dev/virtio/network/if_vtnet.c
@@ -1027,12 +1027,11 @@
vtnet_get_macaddr(sc);
ether_ifattach(ifp, sc->vtnet_hwaddr);
- if (virtio_with_feature(dev, VIRTIO_NET_F_STATUS))
- ifp->if_capabilities |= IFCAP_LINKSTATE;
-
/* Tell the upper layer(s) we support long frames. */
ifp->if_hdrlen = sizeof(struct ether_vlan_header);
- ifp->if_capabilities |= IFCAP_JUMBO_MTU | IFCAP_VLAN_MTU;
+
+ if (virtio_with_feature(dev, VIRTIO_NET_F_STATUS))
+ ifp->if_capabilities |= IFCAP_LINKSTATE;
if (virtio_with_feature(dev, VIRTIO_NET_F_CSUM)) {
int gso;
@@ -1075,6 +1074,10 @@
IFCAP_VLAN_HWTAGGING | IFCAP_VLAN_HWCSUM;
}
+ if (sc->vtnet_max_mtu >= ETHERMTU_JUMBO)
+ ifp->if_capabilities |= IFCAP_JUMBO_MTU;
+ ifp->if_capabilities |= IFCAP_VLAN_MTU;
+
ifp->if_capenable = ifp->if_capabilities;
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 2:01 AM (8 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30567488
Default Alt Text
D27912.id81535.diff (971 B)
Attached To
Mode
D27912: if_vtnet: Only set IFCAP_JUMBO_MTU when jumbo MTU is supported
Attached
Detach File
Event Timeline
Log In to Comment