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

[vslib]: Fix method signatures #1299

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions vslib/SwitchMLNX2700.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,14 @@ sai_status_t SwitchMLNX2700::queryTunnelPeerModeCapability(
}

sai_status_t SwitchMLNX2700::queryPortAutonegFecOverrideSupportCapability(
_Out_ sai_attr_capability_t *capability)
_Out_ sai_attr_capability_t *attr_capability)
{
SWSS_LOG_ENTER();

capability->create_implemented = true;
capability->set_implemented = true;
capability->get_implemented = true;
attr_capability->create_implemented = true;
attr_capability->set_implemented = true;
attr_capability->get_implemented = true;

return SAI_STATUS_SUCCESS;
}

Expand Down
20 changes: 11 additions & 9 deletions vslib/SwitchStateBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3653,13 +3653,14 @@ sai_status_t SwitchStateBase::queryTunnelPeerModeCapability(
}

sai_status_t SwitchStateBase::queryPortAutonegFecOverrideSupportCapability(
_Out_ sai_attr_capability_t *capability)
_Out_ sai_attr_capability_t *attr_capability)
{
SWSS_LOG_ENTER();

capability->create_implemented = false;
capability->set_implemented = false;
capability->get_implemented = false;
attr_capability->create_implemented = false;
attr_capability->set_implemented = false;
attr_capability->get_implemented = false;

return SAI_STATUS_SUCCESS;
}

Expand Down Expand Up @@ -3769,17 +3770,18 @@ sai_status_t SwitchStateBase::queryAttributeCapability(
_In_ sai_object_id_t switch_id,
_In_ sai_object_type_t object_type,
_In_ sai_attr_id_t attr_id,
_Out_ sai_attr_capability_t *capability)
_Out_ sai_attr_capability_t *attr_capability)
{
SWSS_LOG_ENTER();

if (object_type == SAI_OBJECT_TYPE_PORT && attr_id == SAI_PORT_ATTR_AUTO_NEG_FEC_MODE_OVERRIDE)
{
return queryPortAutonegFecOverrideSupportCapability(capability);
return queryPortAutonegFecOverrideSupportCapability(attr_capability);
}
capability->create_implemented = true;
capability->set_implemented = true;
capability->get_implemented = true;

attr_capability->create_implemented = true;
attr_capability->set_implemented = true;
attr_capability->get_implemented = true;

return SAI_STATUS_SUCCESS;
}
Loading