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

Dpdk Backend: Register extern support for bfrt.json #3723

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

usha1830
Copy link
Contributor

This PR adds support for register extern in bfrt.json.
A new table is emitted for the register instance. This is as expected by the p4-dpdk-target.

{
  "name" : "ip.MyIC.reg",
  "id" : 369588800,
  "table_type" : "Register",
  "size" : 1024,
  "annotations" : [],
  "depends_on" : [],
  "key" : [
    {
      "id" : 65557,
      "name" : "$REGISTER_INDEX",
      "repeated" : false,
      "annotations" : [],
      "mandatory" : true,
      "match_type" : "Exact",
      "type" : {
        "type" : "uint32"
      }
    }
  ],
  "data" : [
    {
      "mandatory" : false,
      "read_only" : false,
      "singleton" : {
        "id" : 65557,
        "name" : "$REGISTER_INDEX",
        "repeated" : false,
        "annotations" : [],
        "type" : {
          "type" : "bytes",
          "width" : 16
        }
      }
    }
  ],
  "supported_operations" : ["Sync"],
  "attributes" : []
}

@usha1830
Copy link
Contributor Author

These changes are consumed by p4-dpdk-target and are verified as mentioned in this comment
#3711 (comment)

Copy link
Contributor

@hanw hanw left a comment

Choose a reason for hiding this comment

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

LGTM

@usha1830 usha1830 merged commit 4520cef into p4lang:main Nov 29, 2022
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