-
Notifications
You must be signed in to change notification settings - Fork 461
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
Cleaned PNA_NIC PSA_SWITCH code #5078
base: main
Are you sure you want to change the base?
Cleaned PNA_NIC PSA_SWITCH code #5078
Conversation
It looks like the p4c-lint CI test found some code formatting issues that can be fixed using clang-format. Let us know if you need help looking at the log, or figuring out how to run clang-format on the necessary files. |
b079f1d
to
f4c3bf2
Compare
backends/bmv2/pna_nic/main.cpp
Outdated
@@ -36,6 +33,9 @@ limitations under the License. | |||
#include "lib/gc.h" | |||
#include "lib/log.h" | |||
#include "lib/nullstream.h" | |||
#include "midend.h" |
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.
The other code doesn't follow this style. Any reason why you want to remove the prefix?
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.
Sorry. I misunderstood.
In the .cpp file, only the include statement of its own .h file has no prefix.
Signed-off-by: Rupesh Chiluka <rchiluka@marvell.com>
f4c3bf2
to
aaa797c
Compare
auto bitwidth = param->type->width_bits(); | ||
jsn->emplace("name", param->toString()); | ||
jsn->emplace("type", "hexstr"); | ||
auto bitwidth = 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.
@rupesh-chiluka-marvell Why 0 here?
Adjusted few headers.
Removed the "_cs" in pna_nic, which are modified in the psa_switch code long back.
Removed comments.