Code Monkey home page Code Monkey logo

Comments (3)

tbarbette avatar tbarbette commented on August 23, 2024

Solved?

from fastclick.

davidek avatar davidek commented on August 23, 2024

It appears that the specific issue with ToDPDKDevice is gone, but it's still very unhappy when NDESC is not defined -- now also in the FromDPDKDevice element: now, instead, it appears that when NDESC is unspecified it takes 0 and DPDK doesn't like it. Perhaps I'm missing something and you indented NDESC to be required in the conf file?

Reproducing:

./configure --enable-multithread --disable-linuxmodule --enable-intel-cpu --enable-user-multithread --verbose CFLAGS="-g -O0" CXXFLAGS="-g -std=gnu++11 -O0" --disable-dynamic-linking --enable-poll --enable-bound-port-transfer --with-netmap=no --enable-zerocopy --disable-dpdk-pools --enable-dpdk --disable-batch

conf file: FromDPDKDevice(0) -> ToDPDKDevice(0);
run : sudo userlevel/click -c 0x1 -n 1 -- -f ...

Some printfing (git apply-able)

diff --git a/lib/dpdkdevice.cc b/lib/dpdkdevice.cc
index 4a8c1c9..e31964d 100644
--- a/lib/dpdkdevice.cc
+++ b/lib/dpdkdevice.cc
@@ -177,7 +177,10 @@ int DPDKDevice::initialize_device(unsigned port_id, DevInfo &info,
                 port_id, i, info.n_rx_descs, numa_node, &rx_conf,
                 _pktmbuf_pools[numa_node]) != 0)
+        {
+            fprintf(stderr, "info.n_rx_descs: %d\n", info.n_rx_descs);
             return errh->error(
                 "Cannot setup RX queue %u of port %u on node %u",
                 i, port_id, numa_node);
+        }
     }

@@ -185,7 +188,10 @@ int DPDKDevice::initialize_device(unsigned port_id, DevInfo &info,
         if (rte_eth_tx_queue_setup(port_id, i, info.n_tx_descs, numa_node,
                                    &tx_conf) != 0)
+        {
+            fprintf(stderr, "info.n_tx_descs: %d\n", info.n_tx_descs);
             return errh->error(
                 "Cannot setup TX queue %u of port %u on node %u",
                 i, port_id, numa_node);
+        }

     int err = rte_eth_dev_start(port_id);

Output:

Initializing DPDK
info.n_rx_descs: 0
/home/davide/master/click_conf/bug_copy.click:3: While initializing 'ToDPDKDevice@2 :: ToDPDKDevice':
  Cannot setup RX queue 0 of port 0 on node 0
Router could not be initialized!

And, when running with FromDPDKDevice(0, NDESC 1024) -> ToDPDKDevice(0);:

Initializing DPDK
PMD: ixgbe_dev_rx_queue_setup(): sw_ring=0x7efdf669d140 sw_sc_ring=0x7efdf669b000 hw_ring=0x7efdf669f280 dma_addr=0x83669f280
info.n_tx_descs: 0
/home/davide/master/click_conf/bug_copy.click:3: While initializing 'ToDPDKDevice@2 :: ToDPDKDevice':
  Cannot setup TX queue 0 of port 0 on node 0
Router could not be initialized!

from fastclick.

tbarbette avatar tbarbette commented on August 23, 2024

Solved by 117e017 , the default value is set in the To/FromDPDK device in mainline click but wasn't set there in fastclick ,so retrieving the patch as is lead to loose the default value.

Fixed, thanks again !

from fastclick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.