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

Function add_tx_dump_callbacks

dpdk/app/test-pmd/config.c:6002–6021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6000}
6001
6002void
6003add_tx_dump_callbacks(portid_t portid)
6004{
6005 struct rte_eth_dev_info dev_info;
6006 uint16_t queue;
6007 int ret;
6008
6009 if (port_id_is_invalid(portid, ENABLED_WARN))
6010 return;
6011
6012 ret = eth_dev_info_get_print_err(portid, &dev_info);
6013 if (ret != 0)
6014 return;
6015
6016 for (queue = 0; queue < dev_info.nb_tx_queues; queue++)
6017 if (!ports[portid].tx_dump_cb[queue])
6018 ports[portid].tx_dump_cb[queue] =
6019 rte_eth_add_tx_callback(portid, queue,
6020 dump_tx_pkts, NULL);
6021}
6022
6023void
6024remove_rx_dump_callbacks(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