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

Function add_rx_dump_callbacks

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

Source from the content-addressed store, hash-verified

5979}
5980
5981void
5982add_rx_dump_callbacks(portid_t portid)
5983{
5984 struct rte_eth_dev_info dev_info;
5985 uint16_t queue;
5986 int ret;
5987
5988 if (port_id_is_invalid(portid, ENABLED_WARN))
5989 return;
5990
5991 ret = eth_dev_info_get_print_err(portid, &dev_info);
5992 if (ret != 0)
5993 return;
5994
5995 for (queue = 0; queue < dev_info.nb_rx_queues; queue++)
5996 if (!ports[portid].rx_dump_cb[queue])
5997 ports[portid].rx_dump_cb[queue] =
5998 rte_eth_add_rx_callback(portid, queue,
5999 dump_rx_pkts, NULL);
6000}
6001
6002void
6003add_tx_dump_callbacks(portid_t portid)

Callers 1

Calls 3

port_id_is_invalidFunction · 0.85
rte_eth_add_rx_callbackFunction · 0.85

Tested by

no test coverage detected