Skip to content

Commit 85564b8

Browse files
Daniel Hayonnmorey
authored andcommitted
tests: Fix RDMA transport domain test capability validation
[ Upstream commit 3735e62 ] Add missing TX capability check in test_flow_rdma_transport_domain_traffic. The test only validated RX flow table support, but should check both RX and TX flow table capabilities. Fixes: fb81142 ("tests: Add test to cover RDMA transport domain") Signed-off-by: Daniel Hayon <dhayon@nvidia.com> Signed-off-by: Edward Srouji <edwards@nvidia.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
1 parent 76ad265 commit 85564b8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_mlx5_flow.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ def check_rdma_transport_domain_caps(agr_obj):
8686
query_adv_rdma_cap_out = QueryAdvRdmaCapOut(agr_obj.ctx.devx_general_cmd(
8787
query_adv_rdma_cap_in, len(QueryAdvRdmaCapOut())))
8888

89-
if not query_adv_rdma_cap_out.capability.rdma_transport_rx_flow_table_properties.ft_support:
89+
if not query_adv_rdma_cap_out.capability.rdma_transport_rx_flow_table_properties.ft_support or \
90+
not query_adv_rdma_cap_out.capability.rdma_transport_tx_flow_table_properties.ft_support:
9091
raise unittest.SkipTest("The device doesn't support the RDMA transport domain")
9192

9293

0 commit comments

Comments
 (0)