Skip to content

[portsorch] Portsorch simple improvements#718

Merged
qiluo-msft merged 4 commits intosonic-net:masterfrom
stepanblyschak:portsorch_improvements
Dec 3, 2018
Merged

[portsorch] Portsorch simple improvements#718
qiluo-msft merged 4 commits intosonic-net:masterfrom
stepanblyschak:portsorch_improvements

Conversation

@stepanblyschak
Copy link
Copy Markdown
Contributor

What I did

  • Change 'p' varaible name to 'port'
  • Pass 'Port' struct object to set/update methods instead of SAI OID to avoid
    unncessary 'for' loops that search port object in m_portList
  • make setHostIntfsOperStatus/updateDbPortOperStatus methods const
  • minor simple changes

Why I did it
This PR was derivied from #704.
I will create another PR with fix for Mellanox fastfast boot feature

How I verified it
Installed swss deb package on switch & verify it is working good

Details if related

Stepan Blyschak added 4 commits December 3, 2018 13:35
 - Change 'p' varaible name to 'port'
 - Pass 'Port' struct object to set/update methods instead of SAI OID to avoid
   unncessary 'for' loops that search port object in m_portList
 - minor simple changes

Signed-off-by: Stepan Blyschak <[email protected]>
Signed-off-by: Stepan Blyschak <[email protected]>
Copy link
Copy Markdown
Contributor

@stcheng stcheng left a comment

Choose a reason for hiding this comment

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

thanks for the improvements!

@qiluo-msft qiluo-msft merged commit 3d60b3e into sonic-net:master Dec 3, 2018
@stepanblyschak stepanblyschak deleted the portsorch_improvements branch December 6, 2018 12:43
yxieca added a commit to yxieca/sonic-swss that referenced this pull request Jan 10, 2019
@yxieca yxieca mentioned this pull request Jan 10, 2019
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
…sonic-net#718)

* Revert "show BPS, PPS, UTIL rates w/o previous clear (sonic-net#508)"

This reverts commit 148d455.

* [portstat] use actual port speed for util calculation after revert

Signed-off-by: Mykola Faryma <[email protected]>
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
* [portsorch] throw runtime_error object instead of const char*
* [portsorch] simple improvements for portsorch
 - Change 'p' varaible name to 'port'
 - Pass 'Port' struct object to set/update methods instead of SAI OID to avoid
   unncessary 'for' loops that search port object in m_portList
 - minor simple changes
* [portsorch]] address comments
* [portsorch] make setHostIntfsOperStatus/updateDbPortOperStatus const
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
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.

3 participants