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

Adding support for metering #365

Merged
merged 1 commit into from
Jun 21, 2023
Merged

Adding support for metering #365

merged 1 commit into from
Jun 21, 2023

Conversation

vijasrin
Copy link
Collaborator

@vijasrin vijasrin commented May 12, 2023

  • Outbound metering P4 model changes in BMV2
  • Changes to support the SAI api generation for metering tables
  • Skipping failing SAIC tests till the metadata has been updated

@chrispsommers
Copy link
Collaborator

chrispsommers commented May 18, 2023

Some meeting comments:

@vijasrin
Copy link
Collaborator Author

dash-pipeline/bmv2/dash_pipeline.p4 Outdated Show resolved Hide resolved
dash-pipeline/bmv2/dash_pipeline.p4 Outdated Show resolved Hide resolved
dash-pipeline/bmv2/dash_pipeline.p4 Outdated Show resolved Hide resolved
dash-pipeline/bmv2/dash_pipeline.p4 Show resolved Hide resolved
dash-pipeline/bmv2/dash_pipeline.p4 Show resolved Hide resolved
@vijasrin
Copy link
Collaborator Author

Adding skip for the SAIC tests till the metadata is updated

@KrisNey-MSFT KrisNey-MSFT requested a review from jfingerh May 23, 2023 06:15
@taras-keryk-plv
Copy link
Contributor

taras-keryk-plv commented May 23, 2023

CI fails for two reasons:

  1. metadata is missing in SAI-C because the headers are generated automatically.
    Here is visible what information is missing: https://github.com/taras-keryk-plv/SAI-Challenger/pull/81/files

  2. dpugen does not generate config for these new attributes. Therefore, the tests will fail even if # 1 is fixed.
    So we have the next errors:

saiserver: saidasheni.cpp:376: sai_status_t sai_create_eni(sai_object_id_t*, sai_object_id_t, uint32_t, const sai_attribute_t*): Assertion `(matchedParams == expectedParams)' failed.

[413296.894310] traps: saiserver[643376] general protection fault ip:7f5b56bdd941 sp:7f5b4f7fd420 error:0 in libc-2.31.so[7f5b56bdd000+178000]

@chrispsommers
Copy link
Collaborator

Hi @taras-keryk-plv could you be more specific which test is failing where dpugen is involved? We can explore updating it. Thank you!- @mgheorghe please take note

@taras-keryk-plv
Copy link
Contributor

Hi @chrispsommers, @mgheorghe
yes, i tried:

make run-saichallenger-client-bash
cd functional
./run-tests.sh --setup=sai_dpu_client_server_snappi.json tutorial/test_sai_vnet_outbound_small_scale_config_via_dpugen.py::TestSaiVnetOutbound

Thank you!

@chrispsommers
Copy link
Collaborator

Hi @vijasrin PR #378 was merged, it should address item #1 in #365 (comment). Assuming this is true can you merge from main, re-enable the tests you'd skipped (except for any still depending upon dpugen enhancements)? Thanks.

dash-pipeline/bmv2/dash_pipeline.p4 Show resolved Hide resolved
dash-pipeline/bmv2/dash_metadata.p4 Show resolved Hide resolved
dash-pipeline/bmv2/dash_outbound.p4 Outdated Show resolved Hide resolved
@chrispsommers
Copy link
Collaborator

@vijasrin Do you intend to add any new functional tests to verify the new features?

@chrispsommers
Copy link
Collaborator

chrispsommers commented Jun 7, 2023

@reshmaintel mentioned there are PTF test cases against outbound metering, written assuming this PR will get merged. Once it is merged those tests can be upstreamed.

@vijasrin vijasrin force-pushed the meter branch 2 times, most recently from d309b3c to f361496 Compare June 7, 2023 17:33
@vijasrin vijasrin force-pushed the meter branch 2 times, most recently from 570c9bf to 3ce44a2 Compare June 7, 2023 17:53
- Metering P4 model changes in BMV2
- Changes to support the SAI api generation for metering tables
@KrisNey-MSFT KrisNey-MSFT merged commit add355e into sonic-net:main Jun 21, 2023
AmithGspn pushed a commit to AmithGspn/DASH that referenced this pull request Jul 13, 2023
- Metering P4 model changes in BMV2
- Changes to support the SAI api generation for metering tables
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.

7 participants