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

Function add_tx_dynf_callback

dpdk/app/test-pmd/util.c:393–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void
394add_tx_dynf_callback(portid_t portid)
395{
396 struct rte_eth_dev_info dev_info;
397 uint16_t queue;
398 int ret;
399
400 if (port_id_is_invalid(portid, ENABLED_WARN))
401 return;
402
403 ret = eth_dev_info_get_print_err(portid, &dev_info);
404 if (ret != 0)
405 return;
406
407 for (queue = 0; queue < dev_info.nb_tx_queues; queue++)
408 if (!ports[portid].tx_set_dynf_cb[queue])
409 ports[portid].tx_set_dynf_cb[queue] =
410 rte_eth_add_tx_callback(portid, queue,
411 tx_pkt_set_dynf, NULL);
412}
413
414void
415remove_tx_dynf_callback(portid_t portid)

Callers 1

Calls 3

port_id_is_invalidFunction · 0.85
rte_eth_add_tx_callbackFunction · 0.85

Tested by

no test coverage detected