From b7c76f6565332db8b60d0a1983fa9954dd490b44 Mon Sep 17 00:00:00 2001 From: Nazarii Hnydyn Date: Fri, 6 Oct 2023 12:29:47 +0300 Subject: [PATCH] [vslib]: Fix method signatures. Signed-off-by: Nazarii Hnydyn --- vslib/SwitchMLNX2700.cpp | 9 +++++---- vslib/SwitchStateBase.cpp | 20 +++++++++++--------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/vslib/SwitchMLNX2700.cpp b/vslib/SwitchMLNX2700.cpp index 651819b51..39994ec27 100644 --- a/vslib/SwitchMLNX2700.cpp +++ b/vslib/SwitchMLNX2700.cpp @@ -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; } diff --git a/vslib/SwitchStateBase.cpp b/vslib/SwitchStateBase.cpp index 3e19b45a6..7ec74a493 100644 --- a/vslib/SwitchStateBase.cpp +++ b/vslib/SwitchStateBase.cpp @@ -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; } @@ -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; }