MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_rss

Function test_rss

dpdk/app/test/test_link_bonding_rssconf.c:445–474  ·  view source on GitHub ↗

* Test propagation logic, when RX_RSS mq_mode is turned on for bonding port */

Source from the content-addressed store, hash-verified

443 * Test propagation logic, when RX_RSS mq_mode is turned on for bonding port
444 */
445static int
446test_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/**

Callers

nothing calls this directly

Calls 7

rte_eth_dev_info_getFunction · 0.85
bond_membersFunction · 0.85
rte_eth_dev_startFunction · 0.85
test_propagateFunction · 0.85
member_remove_and_addFunction · 0.85
configure_ethdevFunction · 0.70

Tested by

no test coverage detected