Skip to content

Commit

Permalink
rx_tx_queue_size:Skip getting tx size from interface xml
Browse files Browse the repository at this point in the history
Cannot get tx size from interface xml when it's not set

Signed-off-by: Haijiao Zhao <[email protected]>
  • Loading branch information
chloerh committed Dec 6, 2024
1 parent 973f549 commit 2ba2bff
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 2ba2bff

Please sign in to comment.