Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 24 additions & 12 deletions tests/snappi_tests/pfc/test_pfc_port_congestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def test_multiple_prio_diff_dist(snappi_api, # noqa: F811
pkt_size = 1024

for testbed_subtype, rdma_ports in multidut_port_info.items():
tx_port_count = port_map[0]
rx_port_count = port_map[2]
rx_port_count = port_map[0]
tx_port_count = port_map[2]
tmp_snappi_port_list = get_snappi_ports
snappi_port_list = []
for item in tmp_snappi_port_list:
Expand Down Expand Up @@ -102,6 +102,9 @@ def test_multiple_prio_diff_dist(snappi_api, # noqa: F811
testbed_config, port_config_list, snappi_ports = snappi_multi_base_config(duthosts,
snappi_ports,
snappi_api)
enable_pfcwd = True
if duthosts[0].facts["platform_asic"] == 'cisco-8000' and duthosts[0].get_facts().get("modular_chassis"):
enable_pfcwd = False

# Percentage drop expected for lossless and lossy traffic.
# speed_tol is speed tolerance between egress link speed and actual speed.
Expand All @@ -116,7 +119,7 @@ def test_multiple_prio_diff_dist(snappi_api, # noqa: F811
'test_type': '/tmp/Two_Ingress_Single_Egress_diff_dist_'+str(port_map[1])+'Gbps',
'line_card_choice': testbed_subtype,
'port_map': port_map,
'enable_pfcwd': True,
'enable_pfcwd': enable_pfcwd,
'enable_credit_wd': True,
'stats_interval': 60,
'background_traffic': True,
Expand Down Expand Up @@ -208,8 +211,8 @@ def test_multiple_prio_uni_dist(snappi_api, # noqa: F811
pkt_size = 1024

for testbed_subtype, rdma_ports in multidut_port_info.items():
tx_port_count = port_map[0]
rx_port_count = port_map[2]
rx_port_count = port_map[0]
tx_port_count = port_map[2]
tmp_snappi_port_list = get_snappi_ports
snappi_port_list = []
for item in tmp_snappi_port_list:
Expand Down Expand Up @@ -237,6 +240,9 @@ def test_multiple_prio_uni_dist(snappi_api, # noqa: F811
testbed_config, port_config_list, snappi_ports = snappi_multi_base_config(duthosts,
snappi_ports,
snappi_api)
enable_pfcwd = True
if duthosts[0].facts["platform_asic"] == 'cisco-8000' and duthosts[0].get_facts().get("modular_chassis"):
enable_pfcwd = False

# Percentage drop expected for lossless and lossy traffic.
# speed_tol is speed tolerance between egress link speed and actual speed.
Expand All @@ -252,7 +258,7 @@ def test_multiple_prio_uni_dist(snappi_api, # noqa: F811
'test_type': '/tmp/Two_Ingress_Single_Egress_uni_dist_full'+str(port_map[1])+'Gbps',
'line_card_choice': testbed_subtype,
'port_map': port_map,
'enable_pfcwd': True,
'enable_pfcwd': enable_pfcwd,
'enable_credit_wd': True,
'stats_interval': 60,
'background_traffic': True,
Expand Down Expand Up @@ -346,8 +352,8 @@ def test_multiple_prio_equal_dist(snappi_api, # noqa: F811
pkt_size = 1024

for testbed_subtype, rdma_ports in multidut_port_info.items():
tx_port_count = port_map[0]
rx_port_count = port_map[2]
rx_port_count = port_map[0]
tx_port_count = port_map[2]
tmp_snappi_port_list = get_snappi_ports
snappi_port_list = []
for item in tmp_snappi_port_list:
Expand Down Expand Up @@ -375,6 +381,9 @@ def test_multiple_prio_equal_dist(snappi_api, # noqa: F811
testbed_config, port_config_list, snappi_ports = snappi_multi_base_config(duthosts,
snappi_ports,
snappi_api)
enable_pfcwd = True
if duthosts[0].facts["platform_asic"] == 'cisco-8000' and duthosts[0].get_facts().get("modular_chassis"):
enable_pfcwd = False

# Percentage drop expected for lossless and lossy traffic.
# speed_tol is speed tolerance between egress link speed and actual speed.
Expand All @@ -390,7 +399,7 @@ def test_multiple_prio_equal_dist(snappi_api, # noqa: F811
'test_type': '/tmp/Two_Ingress_Single_Egress_equal_dist'+str(port_map[1])+'Gbps',
'line_card_choice': testbed_subtype,
'port_map': port_map,
'enable_pfcwd': True,
'enable_pfcwd': enable_pfcwd,
'enable_credit_wd': True,
'stats_interval': 60,
'background_traffic': True,
Expand Down Expand Up @@ -485,8 +494,8 @@ def test_multiple_prio_non_cngtn(snappi_api, # noqa: F811
pkt_size = 1024

for testbed_subtype, rdma_ports in multidut_port_info.items():
tx_port_count = port_map[0]
rx_port_count = port_map[2]
rx_port_count = port_map[0]
tx_port_count = port_map[2]
tmp_snappi_port_list = get_snappi_ports
snappi_port_list = []
for item in tmp_snappi_port_list:
Expand Down Expand Up @@ -514,6 +523,9 @@ def test_multiple_prio_non_cngtn(snappi_api, # noqa: F811
testbed_config, port_config_list, snappi_ports = snappi_multi_base_config(duthosts,
snappi_ports,
snappi_api)
enable_pfcwd = True
if duthosts[0].facts["platform_asic"] == 'cisco-8000' and duthosts[0].get_facts().get("modular_chassis"):
enable_pfcwd = False

# Percentage drop expected for lossless and lossy traffic.
# speed_tol is speed tolerance between egress link speed and actual speed.
Expand All @@ -529,7 +541,7 @@ def test_multiple_prio_non_cngtn(snappi_api, # noqa: F811
'test_type': '/tmp/Two_Ingress_Single_Egress_non_cngstn_'+str(port_map[1])+'Gbps',
'line_card_choice': testbed_subtype,
'port_map': port_map,
'enable_pfcwd': True,
'enable_pfcwd': enable_pfcwd,
'enable_credit_wd': True,
'stats_interval': 60,
'background_traffic': True,
Expand Down
Loading