Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177552065
D27918.1794698079.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D27918.1794698079.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
@@ -610,7 +610,7 @@
vtnet_negotiate_features(struct vtnet_softc *sc)
{
device_t dev;
- uint64_t features;
+ uint64_t features, negotiated_features;
int no_csum;
dev = sc->vtnet_dev;
@@ -636,7 +636,7 @@
features &= ~VIRTIO_NET_F_MQ;
#endif
- features = virtio_negotiate_features(dev, features);
+ negotiated_features = virtio_negotiate_features(dev, features);
if (virtio_with_feature(dev, VTNET_LRO_FEATURES) &&
virtio_with_feature(dev, VIRTIO_NET_F_MRG_RXBUF) == 0) {
@@ -654,12 +654,15 @@
"LRO disabled since both mergeable buffers and "
"indirect descriptors were not negotiated\n");
features &= ~VTNET_LRO_FEATURES;
- features = virtio_negotiate_features(dev, features);
+ negotiated_features =
+ virtio_negotiate_features(dev, features);
} else
sc->vtnet_flags |= VTNET_FLAG_LRO_NOMRG;
}
- sc->vtnet_features = sc->vtnet_negotiated_features = features;
+ sc->vtnet_features = negotiated_features;
+ sc->vtnet_negotiated_features = negotiated_features;
+
virtio_finalize_features(dev);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 11:14 PM (10 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41733649
Default Alt Text
D27918.1794698079.diff (1 KB)
Attached To
Mode
D27918: if_vtnet: Use separate variable to keep track of returned negotiated features
Attached
Detach File
Event Timeline