@@ -737,7 +737,7 @@ def test_virtio_vhost_queue_sizes_vnic_type_virtio_forwarder(
737
737
@mock .patch .object (host .Host , "has_min_version" , return_value = False )
738
738
def test_virtio_vhost_queue_sizes_nover (self , has_min_version ):
739
739
_ , _ , conf = self ._test_virtio_config_queue_sizes ()
740
- self .assertIsNone ( conf .vhost_rx_queue_size )
740
+ self .assertEqual ( 512 , conf .vhost_rx_queue_size )
741
741
self .assertIsNone (conf .vhost_tx_queue_size )
742
742
743
743
@mock .patch .object (host .Host , "has_min_version" , return_value = True )
@@ -753,7 +753,7 @@ def test_virtio_vhostuser_osvif_queue_sizes_ver_err(self, has_min_version):
753
753
hostimpl , v , conf = self ._test_virtio_config_queue_sizes ()
754
754
v ._set_config_VIFVHostUser (self .instance , self .os_vif_vhostuser ,
755
755
conf , hostimpl )
756
- self .assertIsNone ( conf .vhost_rx_queue_size )
756
+ self .assertEqual ( 512 , conf .vhost_rx_queue_size )
757
757
self .assertIsNone (conf .vhost_tx_queue_size )
758
758
759
759
def test_multiple_nics (self ):
@@ -1178,23 +1178,6 @@ def test_hw_veb_driver_macvtap(self, ver_mock, mock_get_ifname):
1178
1178
vlan_want = self .vif_hw_veb ["details" ]["vlan" ]
1179
1179
self .assertEqual (int (vlan ), vlan_want )
1180
1180
1181
- @mock .patch .object (pci_utils , 'get_ifname_by_pci_address' ,
1182
- return_value = 'eth1' )
1183
- @mock .patch .object (host .Host , "has_min_version" , return_value = False )
1184
- def test_hw_veb_driver_macvtap_pre_vlan_support (self , ver_mock ,
1185
- mock_get_ifname ):
1186
- d = vif .LibvirtGenericVIFDriver ()
1187
- xml = self ._get_instance_xml (
1188
- d , self .vif_hw_veb_macvtap ,
1189
- has_min_libvirt_version = ver_mock .return_value )
1190
- node = self ._get_node (xml )
1191
- self .assertEqual (node .get ("type" ), "direct" )
1192
- self ._assertTypeEquals (node , "direct" , "source" ,
1193
- "dev" , "eth1" )
1194
- self ._assertTypeEquals (node , "direct" , "source" ,
1195
- "mode" , "passthrough" )
1196
- self ._assertMacEquals (node , self .vif_hw_veb_macvtap )
1197
-
1198
1181
def test_driver_macvtap_vlan (self ):
1199
1182
d = vif .LibvirtGenericVIFDriver ()
1200
1183
xml = self ._get_instance_xml (d , self .vif_macvtap_vlan )
0 commit comments