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

Function nic_tx_descriptor_display

dpdk/app/proc-info/main.c:1920–1939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1918}
1919
1920static void
1921nic_tx_descriptor_display(uint16_t port_id, struct desc_param *desc)
1922{
1923 uint16_t queue_id = desc->queue_id;
1924 uint16_t offset = desc->offset;
1925 uint16_t num = desc->num;
1926 int ret;
1927
1928 snprintf(bdr_str, MAX_STRING_LEN, " show - Tx descriptor ");
1929 STATS_BDR_STR(10, bdr_str);
1930
1931 printf("Dump ethdev Tx descriptor for port %u, queue %u, offset %u, num %u\n",
1932 port_id, queue_id, offset, num);
1933
1934 ret = rte_eth_tx_descriptor_dump(port_id, queue_id, offset, num,
1935 stdout);
1936 if (ret < 0)
1937 fprintf(stderr, "Error dumping ethdev Tx descriptor: %s\n",
1938 strerror(-ret));
1939}
1940
1941static void
1942xstats_display(uint8_t dev_id,

Callers 1

mainFunction · 0.85

Calls 3

snprintfFunction · 0.85
printfFunction · 0.50

Tested by

no test coverage detected