Skip to content

Enhance Mellanox Platform API implementation to support SN2201 and RJ45 port#41

Closed
keboliu wants to merge 20 commits intomasterfrom
platform-api-support-RJ45
Closed

Enhance Mellanox Platform API implementation to support SN2201 and RJ45 port#41
keboliu wants to merge 20 commits intomasterfrom
platform-api-support-RJ45

Conversation

@keboliu
Copy link
Owner

@keboliu keboliu commented Feb 18, 2022

Why I did it

Support SN2201 SSD FW upgrade in platform API
Support SN2201 ONIE upgrade in platform API
Support RJ45 port in platform API

  1. introduce a new class which inherited from SFPbase to manage RJ45 port
  2. add new utility function to extract RJ45 port list from hwsku.json
  3. enhance sfp event change to support RJ45 port

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

@keboliu keboliu changed the title Enhance Mellanox Platform API implementation to support RJ45 port Enhance Mellanox Platform API implementation to support SN2201 and RJ45 port Feb 18, 2022
@liat-grozovik
Copy link

liat-grozovik commented Feb 21, 2022 via email

keboliu pushed a commit that referenced this pull request Mar 21, 2022
f00efef Longxiang Lyu Wed Mar 16 09:12:46 2022 +0800 Add a command line option to store logs into a separate file (#41)
ff2e67d Longxiang Lyu Tue Mar 15 09:10:59 2022 +0800 Add default port cable type (#39)
ebbb4d8 Jing Zhang Mon Mar 14 15:41:11 2022 -0700 Prevent switching MUX to "Unknown" (#36)
c779b8f Longxiang Lyu Thu Mar 10 21:35:11 2022 +0800 [nonfunctional] Use LinkProberStateMachineBase (#38)
b9fedd0 Longxiang Lyu Wed Mar 9 13:03:58 2022 +0800 [NONFUNCTIONAL] Add LinkProberStateMachineBase (#37)
bedd42b Longxiang Lyu Wed Mar 9 10:03:00 2022 +0800 Add .clang-format file to format code (#28)
9fe4fc6 Guohan Lu Thu Mar 3 17:51:43 2022 -0800 [doc]: add lgtm badge in README.md
c1249d9 Longxiang Lyu Wed Mar 2 18:05:18 2022 +0800 Enable lgtm (#33)
b8514c6 Longxiang Lyu Wed Mar 2 13:34:39 2022 +0800 Collect port cable type to use corresponding state machine (#31)
9b59ef9 Longxiang Lyu Wed Mar 2 07:19:33 2022 +0800 Improve make clean (#32)
@keboliu keboliu force-pushed the platform-api-support-RJ45 branch from d0ce777 to 09dcfa9 Compare March 21, 2022 08:03
keboliu and others added 19 commits March 21, 2022 16:12
Do not check ONIE version on SN2201.
In legacy switches, upgrading firmware from ONIE was supported from a certain version
while it is supported from the very beginning on SN2201.
So we do not need to check ONIE version on SN2201

Signed-off-by: Stephen Sun <[email protected]>
1. A derived class representing RJ45 ports is introduced. get_presence always returns True
2. SFP error event is leveraged to represent "unknown" and "not present" states.
   By doing so, most of code change for supporting RJ45 is restricted in platform API and CLI
   xcvrd won't need to be updated for this

Signed-off-by: Stephen Sun <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
- Hide the logic to convert port_change to error_dict inside sfp_event
- In case there are some RJ45 ports are down (not present),
  report them as sfp_event during the first round of get_change_event
  This is because SDK/FW will never report port change occurred before init
  We must make compensation for it in platform API

Signed-off-by: Stephen Sun <[email protected]>
- Report unknown event for RJ45 ports
- Fix syntax error

Signed-off-by: Stephen Sun <[email protected]>
Signed-off-by: Kebo Liu <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
Signed-off-by: Stephen Sun <[email protected]>
@keboliu keboliu force-pushed the platform-api-support-RJ45 branch from 09dcfa9 to 079ca89 Compare March 21, 2022 08:22
@keboliu keboliu closed this Mar 21, 2022
@keboliu keboliu deleted the platform-api-support-RJ45 branch June 14, 2023 10:00
keboliu pushed a commit that referenced this pull request Dec 2, 2024
…ly (sonic-net#20959)

#### Why I did it
src/sonic-stp
```
* ea85d65 - (HEAD -> master, origin/master, origin/HEAD) [ci] Add arm64 build on PR validation. (#41) (20 hours ago) [Xin Wang]
* 6cdf964 - fix (25 hours ago) [Shilong Liu]
* 40cd2d5 - fix (2 days ago) [Shilong Liu]
* 0bfbed4 - makefile (2 days ago) [Shilong Liu]
* 837b0ce - makefile (2 days ago) [Shilong Liu]
* 0ef306e - fix (2 days ago) [Shilong Liu]
* 859374c - fix (2 days ago) [Shilong Liu]
* 7d65161 - fix (2 days ago) [Shilong Liu]
* 6580a62 - fix (2 days ago) [Shilong Liu]
* 017f2a9 - fix (2 days ago) [Shilong Liu]
* a26b6c2 - [ci] Try building on arm agent. (2 days ago) [Shilong Liu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
keboliu pushed a commit that referenced this pull request Aug 13, 2025
…tically (sonic-net#23101)

#### Why I did it
src/sonic-dash-api
```
* 38853ef - (HEAD -> master, origin/master, origin/HEAD) Use ValueOrRange for trusted_vni fields (#41) (2 days ago) [Lawrence Lee]
* 5daac7d - Add outbound port map proto definitions (#40) (2 days ago) [Lawrence Lee]
```
#### How I did it
#### How to verify it
#### Description for the changelog
liat-grozovik pushed a commit that referenced this pull request Jan 14, 2026
fbccffa (HEAD -> main, origin/main, origin/HEAD) Add function to validate and regenerate ONIE EEPROM cahce file if needed
72bf0c6 [H4-32D][H5-32D][H5-64D][H5-64O] Fix GPIO base change on Trixie (#41)
f3f90e3 Increase frequency of fstrim from weekly to daily for chassis
1b7645f [X4] Add support for IXR7250 X4 platform
2348e9b [H6-64] support kernel 6.12.x
3b36679 [H6-64] Add support for Nokia H6-64
16e8635 Modify hw-mnangement-generate-dump to include qfpga info log
23d69af Add mechanism to LC to send eeprom info to CHASSIS_STATE_DB
5f18eab [H5-64O]Update thermal algorithm according to HW spec V04
65293de [H5-64D][H5-64O]Update thermal algorithm
18686fe [H4-32D][H5-32D][H5-64D][H5-64O]Fix emc2305 driver fan speed initialization issue
6412f56 cpuctl i2c delay optic
5199ecf cpuctl i2c delay optic

Signed-off-by: mlok <[email protected]>
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.

4 participants