Skip to content

Commit

Permalink
[vslib]: Fix method signatures. (#1299)
Browse files Browse the repository at this point in the history
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
  • Loading branch information
nazariig authored Oct 10, 2023
1 parent 5450811 commit 7c07d81
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
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;
}

0 comments on commit 7c07d81

Please sign in to comment.