MCPcopy Index your code
hub / github.com/F-Stack/f-stack / configure_ethdev

Function configure_ethdev

dpdk/app/test/test_link_bonding_mode4.c:200–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198}
199
200static int
201configure_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
221static int
222add_member(struct member_conf *member, uint8_t start)

Callers 1

test_setupFunction · 0.70

Calls 5

rte_eth_dev_configureFunction · 0.85
rte_eth_rx_queue_setupFunction · 0.85
rte_eth_dev_socket_idFunction · 0.85
rte_eth_tx_queue_setupFunction · 0.85
rte_eth_dev_startFunction · 0.85

Tested by

no test coverage detected