Comments (4)
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.
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.
Hi @jafingerhut!
Thanks for the info. I will have a look at it and update it as soon as possible.
from p4-learning.
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)
- did not find a p4 program for switch s1 HOT 2
- p4-learning/exercises/05-ECMP/solution/sw-commands/s6-commands.txt; line 5 is wrong HOT 1
- sniff in Multicast example HOT 1
- detecting congestion header HOT 1
- Queue length for priority queueing HOT 2
- About sswitch_runtime HOT 1
- sudo p4run error and how to fix it
- match-action table do not support negative number
- How Count-Min Sketch implement on bmv2?
- Issue in recirculate example HOT 2
- How to create a topology HOT 1
- Can you show me the range match P4 and its controller example HOT 3
- Why the website https://adv-net.ethz.ch/ cannot be reached now? HOT 2
- How to use cli for resubmit_recirculate example? HOT 1
- Question about forwarding. HOT 2
- Priority and qid fields meaning HOT 3
- Fast reroute with LFA doesn't work HOT 3
- Switch debugger HOT 1
- In the 04-RSVP experiment, I found a problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p4-learning.