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

Function add_tx_md_callback

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

Source from the content-addressed store, hash-verified

335}
336
337void
338add_tx_md_callback(portid_t portid)
339{
340 struct rte_eth_dev_info dev_info;
341 uint16_t queue;
342 int ret;
343
344 if (port_id_is_invalid(portid, ENABLED_WARN))
345 return;
346
347 ret = eth_dev_info_get_print_err(portid, &dev_info);
348 if (ret != 0)
349 return;
350
351 for (queue = 0; queue < dev_info.nb_tx_queues; queue++)
352 if (!ports[portid].tx_set_md_cb[queue])
353 ports[portid].tx_set_md_cb[queue] =
354 rte_eth_add_tx_callback(portid, queue,
355 tx_pkt_set_md, NULL);
356}
357
358void
359remove_tx_md_callback(portid_t portid)

Calls 3

port_id_is_invalidFunction · 0.85
rte_eth_add_tx_callbackFunction · 0.85

Tested by

no test coverage detected