Giter Club home page Giter Club logo

Comments (4)

edgar-costa avatar edgar-costa commented on August 28, 2024 1

Hi @WigginsLi,

I recently added the option.

This p4-learning example already uses it (just check the readme or the topology files):
https://github.com/nsg-ethz/p4-learning/tree/master/examples/multiqueueing

from p4-learning.

jafingerhut avatar jafingerhut commented on August 28, 2024

See my answer here: https://forum.p4.org/t/priority-queueing/743

If the p4-learning repo uses source code of the p4lang/behavioral-model repository after the enhancement was made, I would recommend updating the instructions in this repo, since changing the source code and recompiling is no longer necessary.

from p4-learning.

edgar-costa avatar edgar-costa commented on August 28, 2024

Hi @jafingerhut!

Thanks for the info. I will have a look at it and update it as soon as possible.

from p4-learning.

WigginsLi avatar WigginsLi commented on August 28, 2024

How can i add the -- --priority-queues 8 in p4app.json or somewhere?


i simply modify the /<path to p4-utils>/p4utils/mininetlib/node.py as below and reinstall p4-utils. It works.
Is there a easy way to allow user to add custom options to simple_switch?

def add_arguments(self):
        """Adds arguments to the simple switch process"""
        args = [self.sw_bin]
        for port, intf in list(self.intfs.items()):
            if not intf.IP():
                args.extend(['-i', str(port) + '@' + intf.name])
        if self.pcap_dump:
            if self.pcap_dir:
                args.append('--pcap=' + self.pcap_dir)
            else:
                args.append('--pcap')
        if self.thrift_port:
            args.extend(['--thrift-port', str(self.thrift_port)])
        if self.nanomsg:
            args.extend(['--nanolog', self.nanomsg])
        args.extend(['--device-id', str(self.device_id)])
        if self.json_path:
            args.append(self.json_path)
        else:
            args.append('--no-p4')
        if self.enable_debugger:
            args.append('--debugger')
        if self.log_enabled:
            args.append('--log-console')
/*modify begin*/
        args.extend(['-- --priority-queue', str(8)])
/*end*/
        return args

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.