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

Function rte_eth_tx_buffer_init

dpdk/lib/ethdev/rte_ethdev.c:2804–2823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2802}
2803
2804int
2805rte_eth_tx_buffer_init(struct rte_eth_dev_tx_buffer *buffer, uint16_t size)
2806{
2807 int ret = 0;
2808
2809 if (buffer == NULL) {
2810 RTE_ETHDEV_LOG(ERR, "Cannot initialize NULL buffer\n");
2811 return -EINVAL;
2812 }
2813
2814 buffer->size = size;
2815 if (buffer->error_callback == NULL) {
2816 ret = rte_eth_tx_buffer_set_err_callback(
2817 buffer, rte_eth_tx_buffer_drop_callback, NULL);
2818 }
2819
2820 rte_eth_trace_tx_buffer_init(buffer, size, ret);
2821
2822 return ret;
2823}
2824
2825int
2826rte_eth_tx_done_cleanup(uint16_t port_id, uint16_t queue_id, uint32_t free_cnt)

Callers 12

txa_service_queue_addFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
configure_tx_bufferFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
configure_tx_buffersFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
configure_tx_bufferFunction · 0.85

Calls 1

Tested by

no test coverage detected