@@ -683,7 +683,7 @@ impl Net {
683
683
& mut tap_features,
684
684
guest_supported_features,
685
685
gen:: TUN_F_CSUM ,
686
- VIRTIO_NET_F_CSUM ,
686
+ VIRTIO_NET_F_GUEST_CSUM ,
687
687
) ;
688
688
add_if_supported (
689
689
& mut tap_features,
@@ -1058,7 +1058,7 @@ pub mod tests {
1058
1058
// Test that `Net::build_tap_offload_features` creates the TAP offload features that we expect
1059
1059
// it to do, based on the available guest features
1060
1060
fn test_build_tap_offload_features_all ( ) {
1061
- let supported_features = 1 << VIRTIO_NET_F_CSUM
1061
+ let supported_features = 1 << VIRTIO_NET_F_GUEST_CSUM
1062
1062
| 1 << VIRTIO_NET_F_GUEST_UFO
1063
1063
| 1 << VIRTIO_NET_F_GUEST_TSO4
1064
1064
| 1 << VIRTIO_NET_F_GUEST_TSO6 ;
@@ -1073,7 +1073,7 @@ pub mod tests {
1073
1073
// Same as before, however, using each supported feature one by one.
1074
1074
fn test_build_tap_offload_features_one_by_one ( ) {
1075
1075
let features = [
1076
- ( 1 << VIRTIO_NET_F_CSUM , gen:: TUN_F_CSUM ) ,
1076
+ ( 1 << VIRTIO_NET_F_GUEST_CSUM , gen:: TUN_F_CSUM ) ,
1077
1077
( 1 << VIRTIO_NET_F_GUEST_UFO , gen:: TUN_F_UFO ) ,
1078
1078
( 1 << VIRTIO_NET_F_GUEST_TSO4 , gen:: TUN_F_TSO4 ) ,
1079
1079
] ;
0 commit comments