Skip to content

Commit

Permalink
[SAI] Advance submodule to v1.4.1 (sonic-net#450)
Browse files Browse the repository at this point in the history
Signed-off-by: Marian Pritsak <[email protected]>
  • Loading branch information
marian-pritsak authored and lguohan committed Apr 24, 2019
1 parent 3d87ad1 commit 1b0d609
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SAI
47 changes: 47 additions & 0 deletions lib/src/sai_redis_bmtor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,47 @@ sai_status_t redis_clear_table_bitmap_router_entry_stats(

REDIS_GENERIC_QUAD(TABLE_BITMAP_ROUTER_ENTRY,table_bitmap_router_entry);

sai_status_t redis_get_table_meta_tunnel_entry_stats(
_In_ sai_object_id_t table_meta_tunnel_entry_id,
_In_ uint32_t number_of_counters,
_In_ const sai_stat_id_t *counter_ids,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_table_meta_tunnel_entry_stats_ext(
_In_ sai_object_id_t table_meta_tunnel_entry_id,
_In_ uint32_t number_of_counters,
_In_ const sai_stat_id_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 redis_clear_table_meta_tunnel_entry_stats(
_In_ sai_object_id_t table_meta_tunnel_entry_id,
_In_ uint32_t number_of_counters,
_In_ const sai_stat_id_t *counter_ids)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

REDIS_GENERIC_QUAD(TABLE_META_TUNNEL_ENTRY,table_meta_tunnel_entry);

const sai_bmtor_api_t redis_bmtor_api = {

REDIS_GENERIC_QUAD_API(table_bitmap_classification_entry)
Expand All @@ -95,4 +136,10 @@ const sai_bmtor_api_t redis_bmtor_api = {
redis_get_table_bitmap_router_entry_stats,
redis_get_table_bitmap_router_entry_stats_ext,
redis_clear_table_bitmap_router_entry_stats,

REDIS_GENERIC_QUAD_API(table_meta_tunnel_entry)

redis_get_table_meta_tunnel_entry_stats,
redis_get_table_meta_tunnel_entry_stats_ext,
redis_clear_table_meta_tunnel_entry_stats,
};
4 changes: 4 additions & 0 deletions vslib/src/sai_vs_bmtor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ VS_GENERIC_QUAD(TABLE_BITMAP_CLASSIFICATION_ENTRY,table_bitmap_classification_en
VS_GENERIC_STATS(TABLE_BITMAP_CLASSIFICATION_ENTRY,table_bitmap_classification_entry);
VS_GENERIC_QUAD(TABLE_BITMAP_ROUTER_ENTRY,table_bitmap_router_entry);
VS_GENERIC_STATS(TABLE_BITMAP_ROUTER_ENTRY,table_bitmap_router_entry);
VS_GENERIC_QUAD(TABLE_META_TUNNEL_ENTRY,table_meta_tunnel_entry);
VS_GENERIC_STATS(TABLE_META_TUNNEL_ENTRY,table_meta_tunnel_entry);

const sai_bmtor_api_t vs_bmtor_api = {
VS_GENERIC_QUAD_API(table_bitmap_classification_entry)
VS_GENERIC_STATS_API(table_bitmap_classification_entry)
VS_GENERIC_QUAD_API(table_bitmap_router_entry)
VS_GENERIC_STATS_API(table_bitmap_router_entry)
VS_GENERIC_QUAD_API(table_meta_tunnel_entry)
VS_GENERIC_STATS_API(table_meta_tunnel_entry)
};

0 comments on commit 1b0d609

Please sign in to comment.