GithubHelp home page GithubHelp logo

Comments (3)

edgar-costa avatar edgar-costa commented on May 20, 2024

Hi @butuizd

  1. There is no official documentation about digest. The only way to know how to use it, is by the little information you can find in mailing lists, issues, or here. Now I can not find more info, but basically:

device_id is the switch id, ctx_id, list_id and buffer_id somehow identify the digested packet. And it needs to be used to acknowledge it to the switch https://github.com/nsg-ethz/p4-learning/blob/master/examples/digest_messages/get_digest.py#L29

num is the number of aggregated digests.

  1. Digests are somehow buffered, if you call digest very fast it will in theory batch several packets together, I guess the time it buffers can be found in the simple_switch code. Also, if you digest the same thing multiple times it will only appear one time in the "buffer".

If you want a different behaviour, use copy to cpu.

  1. Again, there is no more info than the code itself (unless there is new documentation). The, function is used to acknowledge one digest message, something needed to continue digesting new packets.

from p4-learning.

butuizd avatar butuizd commented on May 20, 2024

Thanks a lot @edgar-costa . If I use the p4runtime API, whether I can process the digest message in controller more easily ,which means I don't have to care the fields such as topic, device_id, ctx_id, list_id, buffer_id, num .

from p4-learning.

edgar-costa avatar edgar-costa commented on May 20, 2024

Well, then, all good!

Our new version of p4-utils, will have a P4runtime based controller.

from p4-learning.

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.