summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsongyanchao <[email protected]>2023-10-25 09:42:48 +0000
committersongyanchao <[email protected]>2023-10-25 09:42:48 +0000
commit35ff02325fc498c84b881fc0e97c140a129416bc (patch)
tree4ff0ba4ba628db229aa2146c47fd7a75245afcb5
parente04111652bc3397f2eaccdc5c37e1c15e986d529 (diff)
🐞 fix: Fix Packet Capture Failure Issue in mrpdump Tool for phydev Device TX Parametersv4.6.57-20231025
Fix Packet Capture Failure Issue in mrpdump Tool for phydev Device TX Parameters
-rw-r--r--tools/tcpdump/pdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tcpdump/pdump.c b/tools/tcpdump/pdump.c
index 1ff5de4..acf7de3 100644
--- a/tools/tcpdump/pdump.c
+++ b/tools/tcpdump/pdump.c
@@ -843,7 +843,7 @@ static void enable_pdump(void)
{
/* Phydev use dpdk pdump api */
int ret =
- rte_pdump_enable_bpf(pt->port_id, pt->queue, RTE_PDUMP_FLAG_TX, snaplen, pt->rx_ring, pt->mp, prm);
+ rte_pdump_enable_bpf(pt->port_id, pt->queue, RTE_PDUMP_FLAG_TX, snaplen, pt->tx_ring, pt->mp, prm);
if (ret < 0)
rte_exit(EXIT_FAILURE, "Phydev:%s, tx enable err.\n", pt->dev_symbol);
}