Skip to contentSkip to conversation

ethdev: fix incorrect function name in comment

PATCH Applied Bruce Richardson 3 participants 4 messages Oct 20, 2023 – Oct 26, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethdev: fix incorrect function name in comment

For those using the function comments as a guide, provide the name of the correct callback function to use when wanting to count dropped packets from the ethdev tx buffering system.

Fixes d6c99e62c852 ("ethdev: add buffered Tx")
---
 lib/ethdev/rte_ethdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/ethdev/rte_ethdev.h +1 -1
index 85b9af7a02..2fd3cd808d 100644
@@ -3732,7 +3732,7 @@ rte_eth_tx_buffer_init(struct rte_eth_dev_tx_buffer *buffer, uint16_t size);
  * for example, to count dropped packets, or to retry transmission of packets
  * which cannot be sent, this function should be used to register a suitable
  * callback function to implement the desired behaviour.
- * The example callback "rte_eth_count_unsent_packet_callback()" is also
+ * The example callback "rte_eth_tx_buffer_count_callback()" is also
  * provided as reference.
  *
  * @param buffer
Signature · 1 line
2.39.2
Acked-by
#2 lore raw
Quoted 11 lines · Ferruh Yigit
Quoted 9 lines · Bruce Richardson

For those using the function comments as a guide, provide the name of the correct callback function to use when wanting to count dropped packets from the ethdev tx buffering system.

Fixes d6c99e62c852 ("ethdev: add buffered Tx")

correct, rte_eth_count_unsent_packet_callback is not even exist.

Quoted 2 lines

.

Applied
#3 lore raw
Quoted 10 lines · lihuisong (C)
Quoted 8 lines · Ferruh Yigit
Quoted 7 lines · Bruce Richardson

For those using the function comments as a guide, provide the name of the correct callback function to use when wanting to count dropped packets from the ethdev tx buffering system.

Fixes d6c99e62c852 ("ethdev: add buffered Tx")
Quoted 8 lines
Quoted 3 lines
Quoted 2 lines

correct, rte_eth_count_unsent_packet_callback is not even exist.

Applied to dpdk-next-net/main, thanks.