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

Function remove_tx_md_callback

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

Source from the content-addressed store, hash-verified

356}
357
358void
359remove_tx_md_callback(portid_t portid)
360{
361 struct rte_eth_dev_info dev_info;
362 uint16_t queue;
363 int ret;
364
365 if (port_id_is_invalid(portid, ENABLED_WARN))
366 return;
367
368 ret = eth_dev_info_get_print_err(portid, &dev_info);
369 if (ret != 0)
370 return;
371
372 for (queue = 0; queue < dev_info.nb_tx_queues; queue++)
373 if (ports[portid].tx_set_md_cb[queue]) {
374 rte_eth_remove_tx_callback(portid, queue,
375 ports[portid].tx_set_md_cb[queue]);
376 ports[portid].tx_set_md_cb[queue] = NULL;
377 }
378}
379
380uint16_t
381tx_pkt_set_dynf(uint16_t port_id, __rte_unused uint16_t queue,

Calls 3

port_id_is_invalidFunction · 0.85

Tested by

no test coverage detected