Lines Matching refs:test_params

70 static struct link_bonding_rssconf_unittest_params test_params  = {  variable
120 FOR_EACH(_i, _port, test_params.slave_ports, \
121 RTE_DIM(test_params.slave_ports))
136 test_params.mbuf_pool) == 0, "Failed to setup rx queue."); in configure_ethdev()
163 port = &test_params.slave_ports[n]; in remove_slaves()
166 test_params.bond_port_id, port->port_id), in remove_slaves()
179 TEST_ASSERT_SUCCESS(rte_eth_dev_stop(test_params.bond_port_id), in remove_slaves_and_stop_bonded_device()
180 "Failed to stop port %u", test_params.bond_port_id); in remove_slaves_and_stop_bonded_device()
194 port = &test_params.slave_ports[n]; in bond_slaves()
196 TEST_ASSERT_SUCCESS(rte_eth_bond_slave_add(test_params.bond_port_id, in bond_slaves()
234 for (i = 0; i < test_params.bond_dev_info.reta_size; in reta_check_synced()
241 test_params.bond_reta_conf[index].reta[shift]) in reta_check_synced()
256 for (j = 0; j < test_params.bond_dev_info.reta_size / RTE_RETA_GROUP_SIZE; in bond_reta_fetch()
258 test_params.bond_reta_conf[j].mask = ~0LL; in bond_reta_fetch()
260 TEST_ASSERT_SUCCESS(rte_eth_dev_rss_reta_query(test_params.bond_port_id, in bond_reta_fetch()
261 test_params.bond_reta_conf, test_params.bond_dev_info.reta_size), in bond_reta_fetch()
289 struct slave_conf *port = &(test_params.slave_ports[0]); in slave_remove_and_add()
292 TEST_ASSERT_SUCCESS(rte_eth_bond_slave_remove(test_params.bond_port_id, in slave_remove_and_add()
298 reta_set(test_params.bond_port_id, 1, test_params.bond_dev_info.reta_size); in slave_remove_and_add()
308 TEST_ASSERT_SUCCESS(rte_eth_bond_slave_add(test_params.bond_port_id, in slave_remove_and_add()
333 retval = rte_eth_dev_info_get(test_params.bond_port_id, in test_propagate()
334 &test_params.bond_dev_info); in test_propagate()
337 test_params.bond_port_id, strerror(-retval)); in test_propagate()
342 for (i = 0; i < sizeof(test_params.bond_dev_info.flow_type_rss_offloads)*8; in test_propagate()
345 rss_hf = test_params.bond_dev_info.flow_type_rss_offloads & (1<<i); in test_propagate()
350 retval = rte_eth_dev_rss_hash_update(test_params.bond_port_id, in test_propagate()
355 port = &test_params.slave_ports[n]; in test_propagate()
379 port = &test_params.slave_ports[n]; in test_propagate()
391 retval = rte_eth_dev_rss_hash_update(test_params.bond_port_id, in test_propagate()
396 port = &test_params.slave_ports[n]; in test_propagate()
419 port = &test_params.slave_ports[n]; in test_propagate()
425 TEST_ASSERT_SUCCESS(reta_set(test_params.bond_port_id, in test_propagate()
426 i % RXTX_QUEUE_COUNT, test_params.bond_dev_info.reta_size), in test_propagate()
432 port = &test_params.slave_ports[n]; in test_propagate()
453 TEST_ASSERT_SUCCESS(configure_ethdev(test_params.bond_port_id, in test_rss()
456 ret = rte_eth_dev_info_get(test_params.bond_port_id, in test_rss()
457 &test_params.bond_dev_info); in test_rss()
460 test_params.bond_port_id, strerror(-ret)); in test_rss()
464 TEST_ASSERT_SUCCESS(rte_eth_dev_start(test_params.bond_port_id), in test_rss()
465 "Failed to start bonding port (%d).", test_params.bond_port_id); in test_rss()
484 TEST_ASSERT_SUCCESS(configure_ethdev(test_params.bond_port_id, in test_rss_lazy()
487 ret = rte_eth_dev_info_get(test_params.bond_port_id, in test_rss_lazy()
488 &test_params.bond_dev_info); in test_rss_lazy()
491 test_params.bond_port_id, strerror(-ret)); in test_rss_lazy()
495 TEST_ASSERT_SUCCESS(rte_eth_dev_start(test_params.bond_port_id), in test_rss_lazy()
496 "Failed to start bonding port (%d).", test_params.bond_port_id); in test_rss_lazy()
517 if (test_params.mbuf_pool == NULL) { in test_setup()
519 test_params.mbuf_pool = rte_pktmbuf_pool_create( in test_setup()
523 TEST_ASSERT(test_params.mbuf_pool != NULL, in test_setup()
529 port = &test_params.slave_ports[n]; in test_setup()
555 test_params.bond_port_id, strerror(-retval)); in test_setup()
558 if (test_params.bond_port_id == INVALID_PORT_ID) { in test_setup()
564 test_params.bond_port_id = retval; in test_setup()
566 TEST_ASSERT_SUCCESS(configure_ethdev(test_params.bond_port_id, in test_setup()
569 retval = rte_eth_dev_info_get(test_params.bond_port_id, in test_setup()
570 &test_params.bond_dev_info); in test_setup()
573 test_params.bond_port_id, strerror(-retval)); in test_setup()
589 rte_eth_dev_stop(test_params.bond_port_id); in testsuite_teardown()