-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Mellanox]the port index in port_config.ini should starts from 0 #4152
Conversation
device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/port_config.ini
Outdated
Show resolved
Hide resolved
What is the definition of the index here? I saw most of the implementation was "front pannel" port number. In such case, it should be "1" based, and we need fix the other side instead. |
Hi @zhenggen-xu, |
device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/port_config.ini
Outdated
Show resolved
Hide resolved
Looks like this change is specific to fix a platform driver and would like Joe/Guohan to comment. Approving from my side! |
@@ -1,37 +1,37 @@ | |||
# name lanes speed alias index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stephenxs # name lanes alias index speed fec autoneg
Dismissing my approval until comment from @nazariig is resolved
8af77e5
My point is the xcvrd should handle both cases, it should probably use the port_config.ini as Source of Truth? |
Hi zhenggen, |
If the indexes are presenting front pannel ports, to fix the error in xvrd, we need reload some of the plugins in your platform code in sonic_platform directory. The changes are fine if the 0 based port index is what you are looking for. |
retest vsimage please |
Retest vsimage please |
retest vsimage please |
2 similar comments
retest vsimage please |
retest vsimage please |
Hi @jleveque, could you please cherry-pick it to 201911? Thanks. |
@zhenggen-xu is right. Check out the porting guide here. https://github.com/Azure/SONiC/wiki/Porting-Guide index: Physical index of port (optional - needed if ports do not begin with index zero or increment by one), When this column is missing the index starts from 0 and increase by 1 for each row. It is recommend to explicitly set this index column and make the index number match the labeling of the front panel ports. AKA: if the front panel ports are starting from 1, the index should start from 1. If the front panel ports start from 0, the index should start form 0. The break out ports from the same physical port should have same index. |
- What I did
The port index in port_config.ini should starts from 0, otherwise it will cause xcvrd crash.
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)