Code Monkey home page Code Monkey logo

Comments (2)

antoninbas avatar antoninbas commented on June 26, 2024

It's not supported by PTF currently, but I would recommend the gRPC service for injecting packets (https://github.com/p4lang/behavioral-model/blob/main/services/p4/bm/dataplane_interface.proto), instead of the nanomsg socket. You could consider adding that support to PTF...

The nanomsg stuff we use doesn't seem to be actively maintained any more. There are new implementations (both for the core library and the Python module). I don't know if using these would help.

I could think of the following workaround (not guaranteed to work): force delete the socket files after you detect that simple_switch_grpc has crashed. I assume this is an unplanned crash (e.g. segfault), and not a signal we could trap in bmv2 to close the socket before exiting.

from ptf.

fruffy avatar fruffy commented on June 26, 2024

Thanks, will try to give the hack a shot.

from ptf.

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.