-
Notifications
You must be signed in to change notification settings - Fork 444
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: Add support for tdi.json #3440
Conversation
json->emplace("build_date", cstring(options.getBuildDate())); | ||
json->emplace("compile_command", cstring(options.getCompileCommand())); | ||
json->emplace("compiler_version", cstring(options.compilerVersion)); | ||
json->emplace("schema_version", cstring("0.1")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be a constant instead of a literal?
json->emplace("schema_version", cstring("0.1")); | ||
json->emplace("target", cstring("DPDK")); | ||
} else { | ||
json->emplace("schema_version", cstring("1.0.0")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version strings can have more than one decimal point. So I think a string literal should be ok here.
Do you mean instead of string literal, we should use a const string type variable to hold the version string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, a const string, in one place.
Some ptf-ebpf checks are failing. Not related to the changes in this PR. |
Tdi json file needs to be emitted from p4c-dpdk to interface with the TDI .The contents of tdi json file is same as bfrt json with few additional program/environment related fields given below
Attached sample tdi json and corresponding bfrt json.
bfrt.json.txt
psa-example-mask-range.p4.txt
tdi.json.txt