Git Product home page Git Product logo

Comments (6)

KeithWiles avatar KeithWiles commented on June 27, 2024

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.

KeithWiles avatar KeithWiles commented on June 27, 2024

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.

nwaples avatar nwaples commented on June 27, 2024

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.

KeithWiles avatar KeithWiles commented on June 27, 2024

Somehow I missed that one :-( I will update the PR.

from cndp.

KeithWiles avatar KeithWiles commented on June 27, 2024

I think we can close this one, correct?

from cndp.

nwaples avatar nwaples commented on June 27, 2024

yes

from cndp.

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.