Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to control pck enter into specfic queue of one port. #875

Closed
zqz-net opened this issue Mar 19, 2020 · 4 comments
Closed

how to control pck enter into specfic queue of one port. #875

zqz-net opened this issue Mar 19, 2020 · 4 comments

Comments

@zqz-net
Copy link

zqz-net commented Mar 19, 2020

one of port of simple switch has 8 priority queue?
I want my p4 program to control the pck enter into specific queue.
for example, pck 1 to queue 1, pck 2 to queue 8.Is there any way to use p4 to achieve this?

@antoninbas
Copy link
Member

Input ports don't have priority queues in simple_switch.

Priority queueing can be enabled for simple_switch (https://github.com/p4lang/behavioral-model/blob/master/targets/simple_switch/simple_switch.h#L37) for the queueing logic between the ingress & egress pipelines. In which case, you need to can select a specific priority queue by setting the standard_metadata.priority field in ingress: https://github.com/p4lang/p4c/blob/master/p4include/v1model.p4#L122

@Crystal-wxy
Copy link

Input ports don't have priority queues in simple_switch.

Priority queueing can be enabled for simple_switch (https://github.com/p4lang/behavioral-model/blob/master/targets/simple_switch/simple_switch.h#L37) for the queueing logic between the ingress & egress pipelines. In which case, you need to can select a specific priority queue by setting the standard_metadata.priority field in ingress: https://github.com/p4lang/p4c/blob/master/p4include/v1model.p4#L122

i replace two file in P4 Tutorial 2019-04-25.ova but it doesn`t work
p4c-bm2-ss --p4v 16 "s_edge.p4" -o "s_edge.p4.json"
s_edge.p4(141): [--Werror=type-error] error: Field priority is not a member of structure struct standard_metadata;
what should i do to make it work

@antoninbas
Copy link
Member

standard_metadata.priority was added to v1model.p4 on April 25th 2019 (p4lang/p4c#1704): your tutorial OVA image may not include this change. You can locate the v1model.p4 file and check.

@github-actions
Copy link

github-actions bot commented Sep 1, 2022

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment, or this will be closed in 180 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants