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

Added Basic PNA externs: Meter, Counter, Hash, etc #1263

Merged

Conversation

rupesh-chiluka-marvell
Copy link
Contributor

Part of Issue: #1245

@rupesh-chiluka-marvell
Copy link
Contributor Author

@antoninbas @qobilidop. Please review the PR

Copy link
Member

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any extern in this PR that is specific to PNA or different from its PSA equivalent? I am asking so I know where I should focus my review efforts.

def get_json_key(key):
return json.get(key, [])

for j_meter in get_json_key("extern_instances"):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would remove the changes to this file from this PR. I am not sure why we are only adding support for meters, but if that's what we need, I would still do it in a follow-up PR.

@rupesh-chiluka-marvell
Copy link
Contributor Author

Is there any extern in this PR that is specific to PNA or different from its PSA equivalent? I am asking so I know where I should focus my review efforts.

In this PR. No. These are general externs used in P4 programs.

@antoninbas antoninbas merged commit 11c789b into p4lang:main Aug 7, 2024
6 of 7 checks passed
@rupesh-chiluka-marvell rupesh-chiluka-marvell deleted the pna_dev_basic_externs branch August 9, 2024 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants