Yes that should do it, once done don't forget to rebuild both DPDK and OVS.

Cant remember from the top of my head which DPDK debug to enable, but the following will do it for sure:

   ovs-appctl vlog/set file:dpdk:dbg
   ovs-appctl vlog/set file:netdev_dpdk:dbg

//Eelco

On 16/05/18 14:11, Sam wrote:
Is this to enable debug log in DPDK?

diff --git a/config/common_base b/config/common_base
index 5f2ad94..ecbfb3f 100644
--- a/config/common_base
+++ b/config/common_base
@@ -93,8 +93,8 @@ CONFIG_RTE_MAX_NUMA_NODES=8
 CONFIG_RTE_MAX_MEMSEG=256
 CONFIG_RTE_MAX_MEMZONE=2560
 CONFIG_RTE_MAX_TAILQ=32
-CONFIG_RTE_LOG_LEVEL=RTE_LOG_INFO
-CONFIG_RTE_LOG_DP_LEVEL=RTE_LOG_INFO
+CONFIG_RTE_LOG_LEVEL=RTE_LOG_DEBUG
+CONFIG_RTE_LOG_DP_LEVEL=RTE_LOG_DEBUG
 CONFIG_RTE_LOG_HISTORY=256
 CONFIG_RTE_LIBEAL_USE_HPET=n
 CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n
@@ -651,7 +651,7 @@ CONFIG_RTE_LIBRTE_KNI=n
 CONFIG_RTE_LIBRTE_PMD_KNI=n
 CONFIG_RTE_KNI_KMOD=n
 CONFIG_RTE_KNI_KMOD_ETHTOOL=n
-CONFIG_RTE_KNI_PREEMPT_DEFAULT=y
+CONFIG_RTE_KNI_PREEMPT_DEFAULT=n

 #
 # Compile the pdump library
@@ -661,9 +661,9 @@ CONFIG_RTE_LIBRTE_PDUMP=y
 #
 # Compile vhost user library
 #
-CONFIG_RTE_LIBRTE_VHOST=n
+CONFIG_RTE_LIBRTE_VHOST=y
 CONFIG_RTE_LIBRTE_VHOST_NUMA=n
-CONFIG_RTE_LIBRTE_VHOST_DEBUG=n
+CONFIG_RTE_LIBRTE_VHOST_DEBUG=y

2018-05-16 20:04 GMT+08:00 Eelco Chaudron <[email protected] <mailto:[email protected]>>:

    On 16/05/18 10:30, Sam wrote:

        I want DPDK VHOST module DEBUG level log

    First make sure you build DPDK with debug logging enabled, than
    you can set the debug level using appctl.

    ovs-appctl vlog/list | grep dpdk
    ovs-appctl vlog/set file:dpdk:dbg

    Logs should be in the ovs-vswitchd.log.

    //Eelco

        2018-05-16 16:27 GMT+08:00 Sam <[email protected]
        <mailto:[email protected]>>:

            Hi all,

            I'm debugging OVS2.9.0 and DPDK18.02, I found I could not
            dump DPDK log
            like vhost module.

            How can I dump DPDK log into files? Thank you~

        _______________________________________________
        dev mailing list
        [email protected] <mailto:[email protected]>
        https://mail.openvswitch.org/mailman/listinfo/ovs-dev
        <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>



    _______________________________________________
    dev mailing list
    [email protected] <mailto:[email protected]>
    https://mail.openvswitch.org/mailman/listinfo/ovs-dev
    <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>



_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to