Lines Matching refs:current_slave_count
262 int current_slave_count; in test_create_bonded_device() local
282 current_slave_count = rte_eth_bond_slaves_get(test_params->bonded_port_id, in test_create_bonded_device()
285 TEST_ASSERT_EQUAL(current_slave_count, 0, in test_create_bonded_device()
287 current_slave_count, 0); in test_create_bonded_device()
289 current_slave_count = rte_eth_bond_active_slaves_get( in test_create_bonded_device()
292 TEST_ASSERT_EQUAL(current_slave_count, 0, in test_create_bonded_device()
294 current_slave_count, 0); in test_create_bonded_device()
332 int current_slave_count; in test_add_slave_to_bonded_device() local
342 current_slave_count = rte_eth_bond_slaves_get(test_params->bonded_port_id, in test_add_slave_to_bonded_device()
344 TEST_ASSERT_EQUAL(current_slave_count, test_params->bonded_slave_count + 1, in test_add_slave_to_bonded_device()
346 current_slave_count, test_params->bonded_slave_count + 1); in test_add_slave_to_bonded_device()
348 current_slave_count = rte_eth_bond_active_slaves_get( in test_add_slave_to_bonded_device()
350 TEST_ASSERT_EQUAL(current_slave_count, 0, in test_add_slave_to_bonded_device()
352 current_slave_count, 0); in test_add_slave_to_bonded_device()
379 int current_slave_count; in test_remove_slave_from_bonded_device() local
390 current_slave_count = rte_eth_bond_slaves_get(test_params->bonded_port_id, in test_remove_slave_from_bonded_device()
393 TEST_ASSERT_EQUAL(current_slave_count, test_params->bonded_slave_count - 1, in test_remove_slave_from_bonded_device()
395 current_slave_count, test_params->bonded_slave_count - 1); in test_remove_slave_from_bonded_device()
444 int port_id, current_slave_count; in test_add_already_bonded_slave_to_bonded_device() local
450 current_slave_count = rte_eth_bond_slaves_get(test_params->bonded_port_id, in test_add_already_bonded_slave_to_bonded_device()
452 TEST_ASSERT_EQUAL(current_slave_count, 1, in test_add_already_bonded_slave_to_bonded_device()
454 current_slave_count, 1); in test_add_already_bonded_slave_to_bonded_device()
476 int current_slave_count; in test_get_slaves_from_bonded_device() local
483 current_slave_count = rte_eth_bond_slaves_get(INVALID_PORT_ID, slaves, in test_get_slaves_from_bonded_device()
485 TEST_ASSERT(current_slave_count < 0, in test_get_slaves_from_bonded_device()
488 current_slave_count = rte_eth_bond_active_slaves_get(INVALID_PORT_ID, in test_get_slaves_from_bonded_device()
490 TEST_ASSERT(current_slave_count < 0, in test_get_slaves_from_bonded_device()
494 current_slave_count = rte_eth_bond_slaves_get(test_params->bonded_port_id, in test_get_slaves_from_bonded_device()
496 TEST_ASSERT(current_slave_count < 0, in test_get_slaves_from_bonded_device()
499 current_slave_count = rte_eth_bond_active_slaves_get( in test_get_slaves_from_bonded_device()
501 TEST_ASSERT(current_slave_count < 0, in test_get_slaves_from_bonded_device()
505 current_slave_count = rte_eth_bond_slaves_get( in test_get_slaves_from_bonded_device()
507 TEST_ASSERT(current_slave_count < 0, in test_get_slaves_from_bonded_device()
510 current_slave_count = rte_eth_bond_active_slaves_get( in test_get_slaves_from_bonded_device()
512 TEST_ASSERT(current_slave_count < 0, in test_get_slaves_from_bonded_device()
557 int current_slave_count, current_bonding_mode, primary_port; in test_start_bonded_device() local
574 current_slave_count = rte_eth_bond_slaves_get(test_params->bonded_port_id, in test_start_bonded_device()
576 TEST_ASSERT_EQUAL(current_slave_count, test_params->bonded_slave_count, in test_start_bonded_device()
578 current_slave_count, test_params->bonded_slave_count); in test_start_bonded_device()
580 current_slave_count = rte_eth_bond_active_slaves_get( in test_start_bonded_device()
582 TEST_ASSERT_EQUAL(current_slave_count, test_params->bonded_slave_count, in test_start_bonded_device()
584 current_slave_count, test_params->bonded_slave_count); in test_start_bonded_device()
610 int current_slave_count; in test_stop_bonded_device() local
628 current_slave_count = rte_eth_bond_slaves_get(test_params->bonded_port_id, in test_stop_bonded_device()
630 TEST_ASSERT_EQUAL(current_slave_count, test_params->bonded_slave_count, in test_stop_bonded_device()
632 current_slave_count, test_params->bonded_slave_count); in test_stop_bonded_device()
634 current_slave_count = rte_eth_bond_active_slaves_get( in test_stop_bonded_device()
636 TEST_ASSERT_EQUAL(current_slave_count, 0, in test_stop_bonded_device()
638 current_slave_count, 0); in test_stop_bonded_device()