| 198 | } |
| 199 | |
| 200 | static int |
| 201 | configure_ethdev(uint16_t port_id, uint8_t start) |
| 202 | { |
| 203 | TEST_ASSERT(rte_eth_dev_configure(port_id, 1, 1, &default_pmd_conf) == 0, |
| 204 | "Failed to configure device %u", port_id); |
| 205 | |
| 206 | TEST_ASSERT(rte_eth_rx_queue_setup(port_id, 0, RX_RING_SIZE, |
| 207 | rte_eth_dev_socket_id(port_id), NULL, test_params.mbuf_pool) == 0, |
| 208 | "Failed to setup rx queue."); |
| 209 | |
| 210 | TEST_ASSERT(rte_eth_tx_queue_setup(port_id, 0, TX_RING_SIZE, |
| 211 | rte_eth_dev_socket_id(port_id), NULL) == 0, |
| 212 | "Failed to setup tx queue."); |
| 213 | |
| 214 | if (start) { |
| 215 | TEST_ASSERT(rte_eth_dev_start(port_id) == 0, |
| 216 | "Failed to start device (%d).", port_id); |
| 217 | } |
| 218 | return 0; |
| 219 | } |
| 220 | |
| 221 | static int |
| 222 | add_member(struct member_conf *member, uint8_t start) |
no test coverage detected