-
Notifications
You must be signed in to change notification settings - Fork 89
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
[SAI] wrong code generated in libsai #415
Comments
After this will be fixed this https://github.com/sonic-net/DASH/pull/416/files#diff-0aa5719be28d4f17eb9bfe12e51198fadd9f7c1b0bf0a36600ffb345e7570d05R15 can be uncommented |
@marian-pritsak might be the best person to look at this, I think it was his code originally. |
i fixed param shadow warning here https://github.com/sonic-net/DASH/pull/416/files#diff-dc64de3830be25bf26df782f6ecffd85e2c43287b8f26d24d16c23244b6ec31bR361 |
ping |
@marian-pritsak please advise how to fix those obj issues |
ping |
1 similar comment
ping |
Idea was possibly to generate a struct; truncate to lower 16 bits. Will this cause an issue with a duplicate object name/id? |
@marian-pritsak please help resolve that, or at least give hints how i can do it myself, i really like to enable warnings as errors in this repo |
ping |
1 similar comment
ping |
Per @marian-pritsak needs some more work to find a better way to perform casting. Deferred for now, it's not "broken." |
yea, thanks, not calming it's broken, just generates warnings during compilation, and i want to enable warnings as errors to eliminate this in the future |
@marian-pritsak i has been 2 months on this, please take care of this, this is only 1 line of code which needs your attention, you alreade mentioned on DASH meetings to help with this, you ether add cast for this fo uint16, or add proper uint64 to take entire oid number,i have no clue about bmv2 implementation so im not able to make this judgment, if you dont want to make PR for this, please make comment here to tell which one is correct and i will make this change |
check back next week |
1 similar comment
check back next week |
@AmithGspn has offered to take a look, adding as Assigned |
From Meyappan: Hi Chris, Patch for issue#415. Compiled without warnings. Yet to test. diff --git a/dash-pipeline/SAI/SAI b/dash-pipeline/SAI/SAI
@@ -496,7 +504,14 @@ static sai_status_t dash_sai_remove_{{ table.name }}(
Note: |
Thanks for your contribution! You should be able to test in a few minutes using the workflow described in the READMEs: make clean Also, when you push your fork to your own repo, it will run the CI pipeline and do all the building and testing automatically! Just make sure you have “enabled actions” in your fork, see image below. You should ensure everything passes before you submit any PR. When you do submit a PR, the CI actions will be run in the DASH repo proper and appear as PR “checks” status. |
Can autor make a PR? |
* main: (75 commits) [dash-SAI] Enable warnings as errors (sonic-net#466) [SAI] wrong code generated in libsai sonic-net#415 (sonic-net#463) Fix incorrect IP in SONiC-DASH HLD VNET to VNET example. (sonic-net#459) DASH pipeline packet flow update proposal. (sonic-net#449) [libsai] Add attr name logging when doing get api (sonic-net#451) Build libsai deb packages in github workflow (sonic-net#450) Add Private Link mapping (sonic-net#327) [SAI] Update SAI submodule to the latest origin/master (sonic-net#446) [dash] Add libsai-debs target to create libsai debian packages (sonic-net#444) update p4 compile dependancy to avoid parallel docker runs (sonic-net#443) [dash] Refactor libsai (sonic-net#438) [dash] Update SAI to latest v1.13 (sonic-net#435) [dash-pipeline] Refactor Makefiles (sonic-net#432) Remove ACL tags from BM (sonic-net#425) [submodule] Update SAI submodule to origin/master (sonic-net#431) [sai-api-gen] Write files only when changes are detected (sonic-net#429) Adds SAI_ROUTE_ENTRY_ATTR_PACKET_ACTION api to dash_underlay_routing (sonic-net#422) [SAI] Add missing check for api initialized [SAI] Print oids in hex form [SAI] Change asserts to return error codes and add missing switch api ...
Fixed by #463 |
I found some issues with generated code for libsai.so from templates after enabling compiler warnings:
there are 2 issues here:
@marian-pritsak @chrispsommers please take a look and advise how to fix or provide solution
The text was updated successfully, but these errors were encountered: