Comments (6)
Thanks, It appears the register call is not being done for the thread that is running and calling into CNDP. Let me look at the problem.
from cndp.
I believe I have a fix for this issue. What happened was we add an assert to the cne_id() routine to validate the current thread local storage was valid. The test code was not calling RegisterThread in all cases or calling the routine twice in the same go thread which can corrupt the TLS pointer. The fwd example application also did not call RegisterThread and UnregisterThread correctly.
Each Go thread that is sending or receiving traffic or alloc/free pktmbuf's must call RegisterThread() once and UnregisterThread as the go thread dies.
Here is the PR: #179
Please have a look and give it a review/test.
from cndp.
I get this error on run_test
./system_test.go:10:2: imported and not used: "strconv"
but if I remove the import, all seems to be ok.
from cndp.
Somehow I missed that one :-( I will update the PR.
from cndp.
I think we can close this one, correct?
from cndp.
yes
from cndp.
Related Issues (20)
- [Question] Where to define lport number in fwd.jsonc? - cndpfwd sample application HOT 3
- Support hardware offloading on Smart NIC HOT 3
- Performance seems to have dropped in our nighly tests HOT 2
- newer versions of libbpf 0.8.0 or libxdp HOT 2
- make static_build=1 rebuild fails HOT 5
- GTP-u graph node for the CNET networking stack HOT 1
- Sharable Mempool between processes
- Sharable MsgChan for sending messages between processes
- Example Go application using Go binding layer HOT 1
- Example Rust application using Rust binding layer
- Python CNDP binding layer
- Avoid libbpf-dev dependency for CNDP applications HOT 10
- Add IP fragmentation/reassembly to CNDP for IPv4
- Update the Ansible playbook HOT 3
- Add L3 Fowarding to cndpfwd application HOT 1
- Add more testing to Go Binding test module HOT 1
- CNDP Test-cne application
- Rework the test-cne testing infrastructure HOT 2
- receiving zero length packets 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 cndp.