Skip to content
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

[202205][vslib]: Add SAI_PORT_ATTR_OPER_SPEED get #1123

Merged
merged 1 commit into from
Sep 16, 2022

Conversation

Pterosaur
Copy link
Contributor

@Pterosaur Pterosaur commented Sep 9, 2022

Add SAI_PORT_ATTR_OPER_SPEED get in vslib.
If the SAI_PORT_ATTR_OPER_STATUS is DOWN, SAI_PORT_ATTR_OPER_SPEED should be 0, otherwise its value comes from /sys/class/net/eth{X}/speed

Fixing the PR(#1107) conflict with 202205

Add SAI_PORT_ATTR_OPER_SPEED get in vslib.
If the SAI_PORT_ATTR_OPER_STATUS is DOWN, SAI_PORT_ATTR_OPER_SPEED should be 0, otherwise its value comes from /sys/class/net/eth{X}/speed

Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur Pterosaur requested a review from yxieca September 9, 2022 06:05
@Pterosaur Pterosaur marked this pull request as ready for review September 9, 2022 06:05
@Pterosaur Pterosaur merged commit c147dd0 into sonic-net:202205 Sep 16, 2022
skbarista pushed a commit to skbarista/sonic-sairedis that referenced this pull request Dec 2, 2022
Add SAI_PORT_ATTR_OPER_SPEED get in vslib.
If the SAI_PORT_ATTR_OPER_STATUS is DOWN, SAI_PORT_ATTR_OPER_SPEED should be 0, otherwise its value comes from /sys/class/net/eth{X}/speed

Fixing the PR(sonic-net#1107) conflict with 202205

Signed-off-by: Ze Gan <ganze718@gmail.com>
@Pterosaur Pterosaur deleted the test_202205 branch January 12, 2023 04:23
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