forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VS support for counters (sonic-net#363)
- Loading branch information
Showing
15 changed files
with
370 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,15 @@ | ||
#include "sai_vs.h" | ||
#include "sai_vs_internal.h" | ||
|
||
sai_status_t vs_get_bridge_stats( | ||
_In_ sai_object_id_t bridge_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_bridge_stat_t *counter_ids, | ||
_Out_ uint64_t *counters) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_get_bridge_stats_ext( | ||
_In_ sai_object_id_t bridge_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_bridge_stat_t *counter_ids, | ||
_In_ sai_stats_mode_t mode, | ||
_Out_ uint64_t *counters) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_clear_bridge_stats( | ||
_In_ sai_object_id_t bridge_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_bridge_stat_t *counter_ids) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_get_bridge_port_stats( | ||
_In_ sai_object_id_t bridge_port_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_bridge_port_stat_t *counter_ids, | ||
_Out_ uint64_t *counters) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_get_bridge_port_stats_ext( | ||
_In_ sai_object_id_t bridge_port_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_bridge_port_stat_t *counter_ids, | ||
_In_ sai_stats_mode_t mode, | ||
_Out_ uint64_t *counters) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_clear_bridge_port_stats( | ||
_In_ sai_object_id_t bridge_port_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_bridge_port_stat_t *counter_ids) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
VS_GENERIC_QUAD(BRIDGE,bridge); | ||
VS_GENERIC_QUAD(BRIDGE_PORT,bridge_port); | ||
VS_GENERIC_STATS(BRIDGE,bridge); | ||
VS_GENERIC_STATS(BRIDGE_PORT,bridge_port); | ||
|
||
const sai_bridge_api_t vs_bridge_api = | ||
{ | ||
VS_GENERIC_QUAD_API(bridge) | ||
|
||
vs_get_bridge_stats, | ||
vs_get_bridge_stats_ext, | ||
vs_clear_bridge_stats, | ||
const sai_bridge_api_t vs_bridge_api = { | ||
|
||
VS_GENERIC_QUAD_API(bridge) | ||
VS_GENERIC_STATS_API(bridge) | ||
VS_GENERIC_QUAD_API(bridge_port) | ||
|
||
vs_get_bridge_port_stats, | ||
vs_get_bridge_port_stats_ext, | ||
vs_clear_bridge_port_stats, | ||
VS_GENERIC_STATS_API(bridge_port) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,17 @@ | ||
#include "sai_vs.h" | ||
#include "sai_vs_internal.h" | ||
|
||
sai_status_t vs_clear_ingress_priority_group_stats( | ||
_In_ sai_object_id_t ingress_pg_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_ingress_priority_group_stat_t *counter_ids) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_get_ingress_priority_group_stats_ext( | ||
_In_ sai_object_id_t ingress_priority_group_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_ingress_priority_group_stat_t *counter_ids, | ||
_In_ sai_stats_mode_t mode, | ||
_Out_ uint64_t *counters) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_get_buffer_pool_stats( | ||
_In_ sai_object_id_t pool_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_buffer_pool_stat_t *counter_ids, | ||
_Out_ uint64_t *counters) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_get_buffer_pool_stats_ext( | ||
_In_ sai_object_id_t buffer_pool_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_buffer_pool_stat_t *counter_ids, | ||
_In_ sai_stats_mode_t mode, | ||
_Out_ uint64_t *counters) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t vs_clear_buffer_pool_stats( | ||
_In_ sai_object_id_t pool_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_buffer_pool_stat_t *counter_ids) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
VS_GENERIC_GET_STATS(INGRESS_PRIORITY_GROUP,ingress_priority_group); | ||
|
||
VS_GENERIC_QUAD(BUFFER_POOL,buffer_pool); | ||
VS_GENERIC_QUAD(INGRESS_PRIORITY_GROUP,ingress_priority_group); | ||
VS_GENERIC_QUAD(BUFFER_PROFILE,buffer_profile); | ||
VS_GENERIC_STATS(BUFFER_POOL,buffer_pool); | ||
VS_GENERIC_STATS(INGRESS_PRIORITY_GROUP,ingress_priority_group); | ||
|
||
const sai_buffer_api_t vs_buffer_api = { | ||
|
||
VS_GENERIC_QUAD_API(buffer_pool) | ||
|
||
vs_get_buffer_pool_stats, | ||
vs_get_buffer_pool_stats_ext, | ||
vs_clear_buffer_pool_stats, | ||
|
||
VS_GENERIC_STATS_API(buffer_pool) | ||
VS_GENERIC_QUAD_API(ingress_priority_group) | ||
|
||
vs_get_ingress_priority_group_stats, | ||
vs_get_ingress_priority_group_stats_ext, | ||
vs_clear_ingress_priority_group_stats, | ||
|
||
VS_GENERIC_STATS_API(ingress_priority_group) | ||
VS_GENERIC_QUAD_API(buffer_profile) | ||
}; |
Oops, something went wrong.