Code Monkey home page Code Monkey logo

Comments (2)

tbarbette avatar tbarbette commented on August 23, 2024

Hi,

You can find the TDWB change here : https://github.com/tbarbette/netmap, that is the part where instead of poking the device registers for the current tail pointer of the ring, we use the TD writeback feature, where the tail is written in any memory location you choose. The specific patch is this one : tbarbette/netmap@c14ff0f

However after some rebase I lost the second part (I mostly moved to DPDK for my tests now) , but it is not complex, the fastclick code hasn't changed though, we can see here :
https://github.com/tbarbette/fastclick/blob/master/elements/userlevel/tonetmapdevice.cc#L160
that I pass 1 instead of 0. I modified Netmap to only call the "reclaim" part if an interrupt has happened.

The two most important things in that Netmap version are the TDWB and the support for dynamic buffer allocation (IOCTLs NIOCALLOCBUFF and NIOCFREEBUF) which allows to dynamically release and allocate buffers.

I can try to dig into backups for the reclaim part, but it is not a big deal anymore as the TDWB make it much lighter anyway.

Note that those changes are IXGBE-specific, so it concerns all 82599-based nics. i40e use TDWB by default, including in the Netmap drivers. I guess that's why Luigi never merged the patch probably just moved on... He showed interest at that time though... Probably have too much to do.

from fastclick.

tbarbette avatar tbarbette commented on August 23, 2024

Can I close this?

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.