Skip to content

Commit

Permalink
Merge pull request #6041 from chloerh/rx-tx
Browse files Browse the repository at this point in the history
rx_tx_queue_size:Skip getting tx size from interface xml
  • Loading branch information
Yingshun authored Dec 20, 2024
2 parents 7654850 + 2ba2bff commit a3ace59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
rx_tx_attrs = {'rx_queue_size': '512', 'tx_queue_size': '256'}
- rx_1024_tx_unset:
rx_tx_attrs = {'rx_queue_size': '1024'}
actual_tx = 256
- negative:
status_error = yes
variants:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run(test, params, env):

iface = network_base.get_iface_xml_inst(vm_name, 'after vm start')
actual_rx = int(iface.driver.driver_attr.get('rx_queue_size'))
actual_tx = int(iface.driver.driver_attr.get('tx_queue_size'))
actual_tx = int(params.get('actual_tx') or iface.driver.driver_attr.get('tx_queue_size'))
LOG.debug(
f'Actual rx_queue_size={actual_rx} tx_queue_size={actual_tx}')
if str(actual_rx) != iface_attrs['driver']['driver_attr']['rx_queue_size']:
Expand Down

0 comments on commit a3ace59

Please sign in to comment.