* Test propagation logic, when RX_RSS mq_mode is turned on for bonding port */
| 443 | * Test propagation logic, when RX_RSS mq_mode is turned on for bonding port |
| 444 | */ |
| 445 | static int |
| 446 | test_rss(void) |
| 447 | { |
| 448 | /** |
| 449 | * Configure bonding port in RSS mq mode |
| 450 | */ |
| 451 | int ret; |
| 452 | |
| 453 | TEST_ASSERT_SUCCESS(configure_ethdev(test_params.bond_port_id, |
| 454 | &rss_pmd_conf, 0), "Failed to configure bonding device\n"); |
| 455 | |
| 456 | ret = rte_eth_dev_info_get(test_params.bond_port_id, |
| 457 | &test_params.bond_dev_info); |
| 458 | TEST_ASSERT((ret == 0), |
| 459 | "Error during getting device (port %u) info: %s\n", |
| 460 | test_params.bond_port_id, strerror(-ret)); |
| 461 | |
| 462 | TEST_ASSERT_SUCCESS(bond_members(), "Bonding members failed"); |
| 463 | |
| 464 | TEST_ASSERT_SUCCESS(rte_eth_dev_start(test_params.bond_port_id), |
| 465 | "Failed to start bonding port (%d).", test_params.bond_port_id); |
| 466 | |
| 467 | TEST_ASSERT_SUCCESS(test_propagate(), "Propagation test failed"); |
| 468 | |
| 469 | TEST_ASSERT(member_remove_and_add() == 1, "remove and add members success."); |
| 470 | |
| 471 | remove_members_and_stop_bonding_device(); |
| 472 | |
| 473 | return TEST_SUCCESS; |
| 474 | } |
| 475 | |
| 476 | |
| 477 | /** |
nothing calls this directly
no test coverage detected