Skip to content

ICMP_ECHO_SESSION meta and notification layer changes#1542

Merged
kcudnik merged 1 commit intosonic-net:masterfrom
harjotsinghpawra:master
May 5, 2025
Merged

ICMP_ECHO_SESSION meta and notification layer changes#1542
kcudnik merged 1 commit intosonic-net:masterfrom
harjotsinghpawra:master

Conversation

@harjotsinghpawra
Copy link
Contributor

Added support for ICMP_ECHO_SESSION in following areas of sonic-sairedis

meta layer
syncd
Notification Handling
added unittest to test notification and attribute handling

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

@manamand2020 manamand2020 left a comment

Choose a reason for hiding this comment

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

Fix sai_serialize_icmp_echo_session_state_ntf()

@mssonicbld
Copy link
Collaborator

/azp run

@mssonicbld
Copy link
Collaborator

/azp run

1 similar comment
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@harjotsinghpawra harjotsinghpawra marked this pull request as ready for review March 26, 2025 14:56
@harjotsinghpawra
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 1542 in repo sonic-net/sonic-sairedis

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@kcudnik
Copy link
Collaborator

kcudnik commented Apr 22, 2025

please resolve conflicts

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 1, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: harjotsinghpawra (3d3e754)

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@harjotsinghpawra
Copy link
Contributor Author

@kcudnik i made no changes in FlexCounter section. its failing for me even without my commit also. i see last commit in sonic-sairedis being merged having same failure . I have added all the test cases and in my previous run my code coverage was reaching 92%. I resynced my fork and raised new consolidated commit now i see all runs stuck and failing on this FlexCOunter.Bulksize test case with which my code is not related. Can you please help me review it again with added test case and help me to get it merged .thnaks for all you help

@kcudnik
Copy link
Collaborator

kcudnik commented May 2, 2025

that bulk test counter fail is also failing on master build, but only on ASAN build, other builds and tests are passing fine, can you rebase your changes to master and push force ?

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@harjotsinghpawra
Copy link
Contributor Author

@kcudnik Hi kamil , i rebased and only sonic-saireds and Asan build is failing with same bulksize error , rest of them are passing . Can you please review it and let me know if it looks good and we merge it .

Thanks and Regards
Harjot Singh

@kcudnik
Copy link
Collaborator

kcudnik commented May 3, 2025

@kcudnik Hi kamil , i rebased and only sonic-saireds and Asan build is failing with same bulksize error , rest of them are passing . Can you please review it and let me know if it looks good and we merge it .

Thanks and Regards Harjot Singh

this is interesing why normal vstests is passing but with assan its failing hmm

@harjotsinghpawra
Copy link
Contributor Author

@kcudnik Hi kamil, i think you re-triggered the checks now everything is passing nice

@harjotsinghpawra harjotsinghpawra requested a review from kcudnik May 5, 2025 05:34
@kcudnik kcudnik merged commit 4152366 into sonic-net:master May 5, 2025
15 checks passed
mssonicbld added a commit to mssonicbld/sonic-swss that referenced this pull request Jun 6, 2025
<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**
IcmpOrch for supporting hardware offloaded ICMP echo sessions.
Changes done here adds support for the SAI ICMP ECHO spec:
https://github.com/opencomputeproject/SAI/blob/master/doc/SAI-Proposal-ICMP-ECHO.md

A common template in saioffloadsession.h is added for handling sai offload sessions. BFD or any future offload session handling can be migrated to this template.

IcmpOrch will create sessions based on switch capability published in STATE_DB by switchcorch which is checked in IcmpOrch's constructor.

STATE_DB SWITCH_CAPABILITY:
```
  "SWITCH_CAPABILITY|switch": {
    "value": {
<snip>
...
      "ICMP_OFFLOAD_CAPABLE": "true",
...
<snip>
    }
  },
 ```
**Why I did it**
ICMP echo sessions are used by LinkMgrd to monitor link state in Dual-ToR architecture and switch traffic.
Current software based ICMP echo sessions used by Linkprober in LinkMgrd limits the detection time and uses host network bandwidth.
Hardware based sessions will bring down the detection time and host network bandwidth is not used.

**How I verified it**
Tested the changes with DVS.

**Details if related**
ICMP echo table definitions: sonic-net/sonic-swss-common#980
ICMP echo SaiRedis changes: sonic-net/sonic-sairedis#1542
mssonicbld added a commit to sonic-net/sonic-swss that referenced this pull request Jun 6, 2025
<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**
IcmpOrch for supporting hardware offloaded ICMP echo sessions.
Changes done here adds support for the SAI ICMP ECHO spec:
https://github.com/opencomputeproject/SAI/blob/master/doc/SAI-Proposal-ICMP-ECHO.md

A common template in saioffloadsession.h is added for handling sai offload sessions. BFD or any future offload session handling can be migrated to this template.

IcmpOrch will create sessions based on switch capability published in STATE_DB by switchcorch which is checked in IcmpOrch's constructor.

STATE_DB SWITCH_CAPABILITY:
```
 "SWITCH_CAPABILITY|switch": {
 "value": {
<snip>
...
 "ICMP_OFFLOAD_CAPABLE": "true",
...
<snip>
 }
 },
 ```
**Why I did it**
ICMP echo sessions are used by LinkMgrd to monitor link state in Dual-ToR architecture and switch traffic.
Current software based ICMP echo sessions used by Linkprober in LinkMgrd limits the detection time and uses host network bandwidth.
Hardware based sessions will bring down the detection time and host network bandwidth is not used.

**How I verified it**
Tested the changes with DVS.

**Details if related**
ICMP echo table definitions: sonic-net/sonic-swss-common#980
ICMP echo SaiRedis changes: sonic-net/sonic-sairedis#1542
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.

5 participants