Skip to content

Commit

Permalink
Fixing build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsudharsan committed Sep 4, 2021
1 parent a302e5d commit 47a3e9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vslib/SwitchMLNX2700.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ sai_status_t SwitchMLNX2700::warm_update_queues()
sai_status_t SwitchMLNX2700::queryVxlanTunnelPeerModeCapability(
_Inout_ sai_s32_list_t *enum_values_capability)
{
SWSS_LOG_ENTER();

if (enum_values_capability->count < 1)
{
return SAI_STATUS_BUFFER_OVERFLOW;
Expand Down
4 changes: 4 additions & 0 deletions vslib/SwitchStateBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3300,6 +3300,8 @@ bool SwitchStateBase::dumpObject(
sai_status_t SwitchStateBase::queryVxlanTunnelPeerModeCapability(
_Inout_ sai_s32_list_t *enum_values_capability)
{
SWSS_LOG_ENTER();

if (enum_values_capability->count < 2)
{
return SAI_STATUS_BUFFER_OVERFLOW;
Expand All @@ -3317,6 +3319,8 @@ sai_status_t SwitchStateBase::queryAttrEnumValuesCapability(
_In_ sai_attr_id_t attr_id,
_Inout_ sai_s32_list_t *enum_values_capability)
{
SWSS_LOG_ENTER();

if (object_type == SAI_OBJECT_TYPE_TUNNEL && attr_id == SAI_TUNNEL_ATTR_PEER_MODE)
{
return queryVxlanTunnelPeerModeCapability(enum_values_capability);
Expand Down

0 comments on commit 47a3e9a

Please sign in to comment.