Comments (3)
Solved?
from fastclick.
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 printf
ing (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.
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)
- Create Element HOT 2
- Secondary DPDK with FastClick HOT 2
- Access useful_kcycles() HOT 3
- Input aggregation element HOT 1
- --with-netmap does not compile HOT 3
- FastClick can't identify DPDK PORT,whatever Integer or PCI address.
- port 0 Rx queue allocation failed: Cannot allocate memory HOT 7
- Illegal instruction (core dumped) when using ToDPDKDevice() HOT 3
- rte_mempool segmentation fault. HOT 8
- storeing data in packet HOT 2
- How to enable scattered mode in fastclick? HOT 7
- issue in make package element HOT 3
- How to use replayUnqueue or MultiReplayUnqueue to limit the tx rate? HOT 3
- Automatically update wiki doc with CI
- middleclick configuration HOT 1
- compile error about context HOT 1
- Allow loop in FromDump HOT 4
- Non-existent librairies when parsing llvm-config's output
- FromDPDKDevice(FLOW_RULES_FILE) only work with DPDK<=21.11 HOT 2
- About address of IIO LLC WAYS in Ice lake HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastclick.