Skip to content

ICMP HW offload and ICMP_ECHO_SESSION support#288

Merged
zjswhhh merged 14 commits intosonic-net:masterfrom
harjotsinghpawra:harjosin_icmp
May 30, 2025
Merged

ICMP HW offload and ICMP_ECHO_SESSION support#288
zjswhhh merged 14 commits intosonic-net:masterfrom
harjotsinghpawra:harjosin_icmp

Conversation

@harjotsinghpawra
Copy link
Contributor

@harjotsinghpawra harjotsinghpawra commented Apr 1, 2025

Description of PR

  • PR to support ICMP HW Offload feature .
  • For hardware probing we will use LinkProberHw.
  • Normal software probing is done by LinkProberSw.
  • New positive Probing timer added in Hardware Prober.
  • New handle recv logic added for both probers.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • [ X] New feature
  • Doc/Design
  • Unit test

Approach

What is the motivation for this PR?

Faster Probing and Switching in dualtor based system

Work item tracking
  • Microsoft ADO (number only):

How did you do it?

SAI and SDK support for ICMP HW offload is implement and then linkmanagerd normaly handles ICMP_ECHO_SESSION
and state of the device, links and session related to icmp_echo_session

How did you verify/test it?

In Progress

Any platform specific information?

Documentation

Signed-off-by: Harjot Singh <harjotpawrawork@gmail.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lolyu lolyu self-requested a review April 8, 2025 00:28
harjotsinghpawra and others added 3 commits April 24, 2025 11:04
Co-authored-by: manamand <manamand@cisco.com>
Co-authored-by: manamand <manamand@cisco.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@harjotsinghpawra harjotsinghpawra marked this pull request as ready for review April 25, 2025 18:36
@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).

Co-authored-by: manamand <manamand@cisco.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

MUXLOGDEBUG(mMuxPortConfig.getPortName());

if (errorCode != boost::asio::error::operation_aborted) {
//ether_header *ethHeader = reinterpret_cast<ether_header *> (mRxBuffer.data());

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
* GUID will indicate standby state. Lack of ICMP packets will signal
* that the link state is unknown and it might be newly learned peers UID
*/
class LinkProberBase

Check warning

Code scanning / CodeQL

Non-virtual destructor in base class Warning

A base class with a virtual function should define a virtual destructor.
Signed-off-by: Manas Kumar Mandal <manamand@cisco.com>
@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).

zjswhhh
zjswhhh previously approved these changes May 25, 2025
@zjswhhh zjswhhh requested a review from prsunny May 25, 2025 23:45
@zjswhhh
Copy link
Collaborator

zjswhhh commented May 25, 2025

Hi @prsunny - the missing coverage is mainly existing code (i.e. we moved software link prober solution to linkprobersw* files), can we merge still?

@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).

@zjswhhh zjswhhh merged commit 19cd34f into sonic-net:master May 30, 2025
8 of 9 checks passed
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202505: #297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants