RE: Troubles using pdump to capture the packets
From: 廖書華 Sent: Friday, October 15, 2021 5:16 AM To: Pattan, Reshma Cc: Stephen Hemminger ; users@dpdk.org; 林庭安 Subject: Re: Troubles using pdump to capture the packets >>Dear Reshma, >>Thanks for your kind response ! Unfortunately, it still can't work. Also, could you please paste me the lbpcap-devel package version on your system. Thanks, Reshma Pattan, Reshma mailto:reshma.pat...@intel.com>> 於 2021年10月14日 週四 下午5:52寫道: > -Original Message- > From: 廖書華 mailto:sim860...@gmail.com>> > Yes, I already set *CONFIG_RTE_LIBRTE_PMD_PCAP=y *and > *CONFIG_RTE_LIBRTE_PDUMP=y *in the file "dpdk- > 19.11/config/common_base" > then build DPDK. > Also, in the files "dpdk-19.11/x86_64-native-linuxapp-icc/.config" and "dpdk- > 19.11/x86_64-native-linuxapp-icc/.config.orig", they also show that > *CONFIG_RTE_LIBRTE_PMD_PCAP=y *and *CONFIG_RTE_LIBRTE_PDUMP=y.* > > It seems that it already enabled pcap PMD of DPDK. > Do you have other suggestions ? Hi, Few options you can double check 1)Make sure your primary application is calling rte_pdump_init()/ret_pudmp_uninit() to initialize/uninitialize the pdump library. 2)If you are using a shared library build, double check you are linking pcap pmd properly in primary build as explained in below link https://www.mail-archive.com/users@dpdk.org/msg05039.html https://stackoverflow.com/questions/62795017/dpdk-pdump-failed-to-hotplug-add-device 3)If you are passing any pci device using eal "-w" option to primary, try to pass the same device to secondary also using "-w" option . If you still see the issue please paste the full primary and secondary application run log with command that you are running. Also what kind of build you are using. Thanks, Reshma
RE: Troubles using pdump to capture the packets
> -Original Message- > From: 廖書華 > Yes, I already set *CONFIG_RTE_LIBRTE_PMD_PCAP=y *and > *CONFIG_RTE_LIBRTE_PDUMP=y *in the file "dpdk- > 19.11/config/common_base" > then build DPDK. > Also, in the files "dpdk-19.11/x86_64-native-linuxapp-icc/.config" and "dpdk- > 19.11/x86_64-native-linuxapp-icc/.config.orig", they also show that > *CONFIG_RTE_LIBRTE_PMD_PCAP=y *and *CONFIG_RTE_LIBRTE_PDUMP=y.* > > It seems that it already enabled pcap PMD of DPDK. > Do you have other suggestions ? Hi, Few options you can double check 1)Make sure your primary application is calling rte_pdump_init()/ret_pudmp_uninit() to initialize/uninitialize the pdump library. 2)If you are using a shared library build, double check you are linking pcap pmd properly in primary build as explained in below link https://www.mail-archive.com/users@dpdk.org/msg05039.html https://stackoverflow.com/questions/62795017/dpdk-pdump-failed-to-hotplug-add-device 3)If you are passing any pci device using eal "-w" option to primary, try to pass the same device to secondary also using "-w" option . If you still see the issue please paste the full primary and secondary application run log with command that you are running. Also what kind of build you are using. Thanks, Reshma
Re: Troubles using pdump to capture the packets
Dear Stephen, Thanks for your response !!! Yes, I already set *CONFIG_RTE_LIBRTE_PMD_PCAP=y *and *CONFIG_RTE_LIBRTE_PDUMP=y *in the file "dpdk-19.11/config/common_base" then build DPDK. Also, in the files "dpdk-19.11/x86_64-native-linuxapp-icc/.config" and "dpdk-19.11/x86_64-native-linuxapp-icc/.config.orig", they also show that *CONFIG_RTE_LIBRTE_PMD_PCAP=y *and *CONFIG_RTE_LIBRTE_PDUMP=y.* It seems that it already enabled pcap PMD of DPDK. Do you have other suggestions ? Best Regards, Shu-hua, Liao Stephen Hemminger 於 2021年10月14日 週四 上午12:55寫道: > On Wed, 13 Oct 2021 14:10:17 +0800 > 廖書華 wrote: > > > Dear all, > > > > In our environment, the DPDK version is for 19.11. > > Currently, we try to use pdump to capture the packet of our own > > application, however, we got the below error in our application and pdump > > respectively. (If we replace our application with test-pmd, pdump will > not > > get the error) > > > > Error in our application : > > EAL: failed to parse device “vdev:net_pcap_rx_0” > > The pdump support requires the pcap PMD to be enabled in the build. > What is your DPDK config? >
Re: Troubles using pdump to capture the packets
On Wed, 13 Oct 2021 14:10:17 +0800 廖書華 wrote: > Dear all, > > In our environment, the DPDK version is for 19.11. > Currently, we try to use pdump to capture the packet of our own > application, however, we got the below error in our application and pdump > respectively. (If we replace our application with test-pmd, pdump will not > get the error) > > Error in our application : > EAL: failed to parse device “vdev:net_pcap_rx_0” The pdump support requires the pcap PMD to be enabled in the build. What is your DPDK config?