* rte_eth_dev_configure
@ 2014-07-24 12:34 sothy shan
[not found] ` <CAHcF_0brn7OPhvWdb5JDuckkFPk65qhR-r2Kr6uJ9QORtCptNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: sothy shan @ 2014-07-24 12:34 UTC (permalink / raw)
To: dev-VfR2kkLFssw
Hello!
I am trying to use DPDK ovs (development branch) with DPDK1.7.
There is an error when running ovs_dpdk command.
Error is
PANIC in ovdk_vport_phy_port_init.
Cannot initi NIC port 0 (-22).
Based on my search within code, rte_eth_dev_configure gives an error with
code -22.
My question is that how to debug or print the PMD_DEBUG_TRACE into file or
terminal when running ovs-dpdk?
Second, any clue why rte_eth_dev_configure give an error with code -22?
Thanks for your help.
Best regards
Sothy
^ permalink raw reply [flat|nested] 6+ messages in thread[parent not found: <CAHcF_0brn7OPhvWdb5JDuckkFPk65qhR-r2Kr6uJ9QORtCptNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: rte_eth_dev_configure [not found] ` <CAHcF_0brn7OPhvWdb5JDuckkFPk65qhR-r2Kr6uJ9QORtCptNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-07-24 12:44 ` Thomas Monjalon 2014-07-24 12:51 ` rte_eth_dev_configure Thomas Monjalon 0 siblings, 1 reply; 6+ messages in thread From: Thomas Monjalon @ 2014-07-24 12:44 UTC (permalink / raw) To: sothy shan; +Cc: dev-VfR2kkLFssw Hello, 2014-07-24 14:34, sothy shan: > I am trying to use DPDK ovs (development branch) with DPDK1.7. Could you try with testpmd? > Cannot initi NIC port 0 (-22). > > Based on my search within code, rte_eth_dev_configure gives an error with > code -22. Which driver are you using? > My question is that how to debug or print the PMD_DEBUG_TRACE into file or > terminal when running ovs-dpdk? The default is to print on stdout. > Second, any clue why rte_eth_dev_configure give an error with code -22? It depends of your driver. Example: #define IXGBE_ERR_NO_SAN_ADDR_PTR -22 -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rte_eth_dev_configure 2014-07-24 12:44 ` rte_eth_dev_configure Thomas Monjalon @ 2014-07-24 12:51 ` Thomas Monjalon 2014-07-24 13:00 ` rte_eth_dev_configure sothy shan 0 siblings, 1 reply; 6+ messages in thread From: Thomas Monjalon @ 2014-07-24 12:51 UTC (permalink / raw) To: sothy shan; +Cc: dev-VfR2kkLFssw 2014-07-24 14:44, Thomas Monjalon: > 2014-07-24 14:34, sothy shan: > > Second, any clue why rte_eth_dev_configure give an error with code -22? > > It depends of your driver. > Example: #define IXGBE_ERR_NO_SAN_ADDR_PTR -22 It's more probably -EINVAL without driver dependency. It means there is a mistake in your configuration. PMD_DEBUG_TRACE will help you. -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rte_eth_dev_configure 2014-07-24 12:51 ` rte_eth_dev_configure Thomas Monjalon @ 2014-07-24 13:00 ` sothy shan [not found] ` <CAHcF_0a_UkiQmzKtuWCDLviVLdLjuAAggHnoYHt8vAc+rCMrqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: sothy shan @ 2014-07-24 13:00 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev-VfR2kkLFssw I have problem when I try dpdk ovs with DPDK 1.7. DPDK 1.7 alone working well. Drive I installed is compiled with T=x86_64-ivshmem-linuxapp-gcc. I am not sure when I using DPDK ovs, how to debug at DPDK 1.7.0 code. I guess I need to enable to print PMD_DEBUG_TRACE message. At this point, DPDK ovs message is only printed. I too suspect it is problem with port_conf message. Not sure. First I need to know how to use PMD_DEBUG_TRACE with DPDK_ovs. You understand my question? Thanks again On Thu, Jul 24, 2014 at 2:51 PM, Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> wrote: > 2014-07-24 14:44, Thomas Monjalon: > > 2014-07-24 14:34, sothy shan: > > > Second, any clue why rte_eth_dev_configure give an error with code -22? > > > > It depends of your driver. > > Example: #define IXGBE_ERR_NO_SAN_ADDR_PTR -22 > > It's more probably -EINVAL without driver dependency. > It means there is a mistake in your configuration. > PMD_DEBUG_TRACE will help you. > > -- > Thomas > ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAHcF_0a_UkiQmzKtuWCDLviVLdLjuAAggHnoYHt8vAc+rCMrqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: rte_eth_dev_configure [not found] ` <CAHcF_0a_UkiQmzKtuWCDLviVLdLjuAAggHnoYHt8vAc+rCMrqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-07-24 13:05 ` Thomas Monjalon 2014-07-24 14:15 ` rte_eth_dev_configure sothy shan 0 siblings, 1 reply; 6+ messages in thread From: Thomas Monjalon @ 2014-07-24 13:05 UTC (permalink / raw) To: sothy shan; +Cc: dev-VfR2kkLFssw 2014-07-24 15:00, sothy shan: > I have problem when I try dpdk ovs with DPDK 1.7. DPDK 1.7 alone working > well. [...] > I am not sure when I using DPDK ovs, how to debug at DPDK 1.7.0 code. I > guess I need to enable to print PMD_DEBUG_TRACE message. At this point, > DPDK ovs message is only printed. You should enable CONFIG_RTE_LIBRTE_ETHDEV_DEBUG before compiling. > I too suspect it is problem with port_conf message. Not sure. First I need > to know how to use PMD_DEBUG_TRACE with DPDK_ovs. > > You understand my question? Yes I understand that you should enable debugging and ask for help on the right mailling list. If DPDK alone works well, we cannot do anything for you. -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rte_eth_dev_configure 2014-07-24 13:05 ` rte_eth_dev_configure Thomas Monjalon @ 2014-07-24 14:15 ` sothy shan 0 siblings, 0 replies; 6+ messages in thread From: sothy shan @ 2014-07-24 14:15 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev-VfR2kkLFssw Thanks and it is working and help me a lot. On Thu, Jul 24, 2014 at 3:05 PM, Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> wrote: > 2014-07-24 15:00, sothy shan: > > I have problem when I try dpdk ovs with DPDK 1.7. DPDK 1.7 alone working > > well. > [...] > > I am not sure when I using DPDK ovs, how to debug at DPDK 1.7.0 code. I > > guess I need to enable to print PMD_DEBUG_TRACE message. At this point, > > DPDK ovs message is only printed. > > You should enable CONFIG_RTE_LIBRTE_ETHDEV_DEBUG before compiling. > > > I too suspect it is problem with port_conf message. Not sure. First I > need > > to know how to use PMD_DEBUG_TRACE with DPDK_ovs. > > > > You understand my question? > > Yes I understand that you should enable debugging and ask for help on the > right mailling list. > If DPDK alone works well, we cannot do anything for you. > > -- > Thomas > ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-07-24 14:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 12:34 rte_eth_dev_configure sothy shan
[not found] ` <CAHcF_0brn7OPhvWdb5JDuckkFPk65qhR-r2Kr6uJ9QORtCptNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-24 12:44 ` rte_eth_dev_configure Thomas Monjalon
2014-07-24 12:51 ` rte_eth_dev_configure Thomas Monjalon
2014-07-24 13:00 ` rte_eth_dev_configure sothy shan
[not found] ` <CAHcF_0a_UkiQmzKtuWCDLviVLdLjuAAggHnoYHt8vAc+rCMrqQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-07-24 13:05 ` rte_eth_dev_configure Thomas Monjalon
2014-07-24 14:15 ` rte_eth_dev_configure sothy shan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).