File tree Expand file tree Collapse file tree 1 file changed +18
-3
lines changed
lisa/microsoft/testsuites/performance Expand file tree Collapse file tree 1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -503,12 +503,27 @@ def perf_ntttcp( # noqa: C901
503503 server_nic_name , tuned_rss_channels
504504 )
505505
506- # RX/TX ring buffers (set both to tuned_rx_ring)
506+ # RX ring buffers: set RX to tuned_rx_ring while preserving
507+ # the existing TX ring size on each NIC.
508+ client_ring_settings = ethtool_client .get_device_ring_buffer_settings (
509+ client_nic_name , force_run = True
510+ )
511+ server_ring_settings = ethtool_server .get_device_ring_buffer_settings (
512+ server_nic_name , force_run = True
513+ )
514+
515+ client_tx_ring = int (
516+ client_ring_settings .current_ring_buffer_settings ["TX" ]
517+ )
518+ server_tx_ring = int (
519+ server_ring_settings .current_ring_buffer_settings ["TX" ]
520+ )
521+
507522 ethtool_client .change_device_ring_buffer_settings (
508- client_nic_name , rx = tuned_rx_ring , tx = tuned_rx_ring
523+ client_nic_name , rx = tuned_rx_ring , tx = client_tx_ring
509524 )
510525 ethtool_server .change_device_ring_buffer_settings (
511- server_nic_name , rx = tuned_rx_ring , tx = tuned_rx_ring
526+ server_nic_name , rx = tuned_rx_ring , tx = server_tx_ring
512527 )
513528 else :
514529 server_nic_name = (
You can’t perform that action at this time.
0 commit comments