mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-01 06:27:29 +00:00
ci(esp_eth): added ESP32P4 to iperf CI test
Updated (increased) ETH_THROUGHPUT_SPI_ETH limits. Improved iperf optimization description
This commit is contained in:
@@ -53,6 +53,8 @@ def test_esp_eth_iperf(
|
||||
dut: Dut,
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
udp_tx_bw_lim: Optional[int] = NO_BANDWIDTH_LIMIT,
|
||||
udp_rx_bw_lim: Optional[int] = NO_BANDWIDTH_LIMIT,
|
||||
spi_eth: Optional[bool] = False
|
||||
) -> None:
|
||||
"""
|
||||
@@ -79,12 +81,8 @@ def test_esp_eth_iperf(
|
||||
# 3. run test for TCP Tx, Rx and UDP Tx, Rx
|
||||
test_utility.run_test('tcp', 'tx', 0, NO_BANDWIDTH_LIMIT)
|
||||
test_utility.run_test('tcp', 'rx', 0, NO_BANDWIDTH_LIMIT)
|
||||
test_utility.run_test('udp', 'tx', 0, 80)
|
||||
# Limit speed to 10Mbps for SPI Ethernet PHYs
|
||||
if spi_eth:
|
||||
test_utility.run_test('udp', 'rx', 0, 10)
|
||||
else:
|
||||
test_utility.run_test('udp', 'rx', 0, NO_BANDWIDTH_LIMIT)
|
||||
test_utility.run_test('udp', 'tx', 0, udp_tx_bw_lim)
|
||||
test_utility.run_test('udp', 'rx', 0, udp_rx_bw_lim)
|
||||
|
||||
# 4. log performance and compare with pass standard
|
||||
for throughput_type in test_result:
|
||||
@@ -113,7 +111,20 @@ def test_esp_eth_iperf_ip101(
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance)
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, udp_tx_bw_lim=90)
|
||||
|
||||
|
||||
@pytest.mark.esp32p4
|
||||
@pytest.mark.eth_ip101
|
||||
@pytest.mark.parametrize('config', [
|
||||
'default_ip101_esp32p4',
|
||||
], indirect=True)
|
||||
def test_esp_eth_iperf_ip101_esp32p4(
|
||||
dut: Dut,
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, udp_tx_bw_lim=96)
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@@ -126,7 +137,7 @@ def test_esp_eth_iperf_lan8720(
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance)
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, udp_tx_bw_lim=90)
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@@ -139,7 +150,7 @@ def test_esp_eth_iperf_rtl8201(
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance)
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, udp_tx_bw_lim=90)
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@@ -152,7 +163,7 @@ def test_esp_eth_iperf_dp83848(
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance)
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, udp_tx_bw_lim=90)
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@@ -165,7 +176,7 @@ def test_esp_eth_iperf_ksz8041(
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance)
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, udp_tx_bw_lim=90)
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@@ -178,7 +189,7 @@ def test_esp_eth_iperf_dm9051(
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, spi_eth=True)
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, spi_eth=True, udp_rx_bw_lim=10)
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@@ -191,7 +202,7 @@ def test_esp_eth_iperf_w5500(
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, spi_eth=True)
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, spi_eth=True, udp_rx_bw_lim=10)
|
||||
|
||||
|
||||
@pytest.mark.esp32
|
||||
@@ -204,4 +215,4 @@ def test_esp_eth_iperf_ksz8851snl(
|
||||
log_performance: Callable[[str, object], None],
|
||||
check_performance: Callable[[str, float, str], None],
|
||||
) -> None:
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, spi_eth=True)
|
||||
test_esp_eth_iperf(dut, log_performance, check_performance, spi_eth=True, udp_rx_bw_lim=10)
|
||||
|
Reference in New Issue
Block a user