We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c19b174 commit 12da4b5Copy full SHA for 12da4b5
src/drivers/net/virtio/mod.rs
@@ -65,8 +65,13 @@ impl RxQueues {
65
//
66
let packet_size = if dev_cfg.features.contains(virtio::net::F::MRG_RXBUF) {
67
1514
68
- } else {
+ } else if dev_cfg.features.contains(virtio::net::F::GUEST_TSO4)
69
+ || dev_cfg.features.contains(virtio::net::F::GUEST_TSO6)
70
+ || dev_cfg.features.contains(virtio::net::F::GUEST_UFO)
71
+ {
72
dev_cfg.raw.as_ptr().mtu().read().to_ne().into()
73
+ } else {
74
+ 1514
75
};
76
77
Self { vqs, packet_size }
0 commit comments