From 76a7d1a6d4e08f70bd4d3b67cd35ba178d56ed94 Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Thu, 16 Aug 2018 16:52:57 +0000 Subject: [PATCH 1/3] [SAI] upgrade to SAI header version v1.3.3 Signed-off-by: Ying Xie --- SAI | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SAI b/SAI index 90add5ce4cc5..67d61eb7738e 160000 --- a/SAI +++ b/SAI @@ -1 +1 @@ -Subproject commit 90add5ce4cc528d48822624eb82f46e3490f5249 +Subproject commit 67d61eb7738e96ecfb532590e678fee544e816a7 From 713afc4467a706e8a8becf230eb7c59446997675 Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Thu, 16 Aug 2018 17:44:29 +0000 Subject: [PATCH 2/3] [redis router interface] define dummy functions for newly added sai APIs Signed-off-by: Ying Xie --- lib/src/sai_redis_routerintf.cpp | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/lib/src/sai_redis_routerintf.cpp b/lib/src/sai_redis_routerintf.cpp index 6d7540a5c9fa..2536faefd27e 100644 --- a/lib/src/sai_redis_routerintf.cpp +++ b/lib/src/sai_redis_routerintf.cpp @@ -2,7 +2,50 @@ REDIS_GENERIC_QUAD(ROUTER_INTERFACE,router_interface); +sai_status_t redis_get_router_interface_stats( + _In_ sai_object_id_t router_interface_id, + _In_ uint32_t number_of_counters, + _In_ const sai_router_interface_stat_t *counter_ids, + _Out_ uint64_t *counters) +{ + MUTEX(); + + SWSS_LOG_ENTER(); + + return SAI_STATUS_NOT_IMPLEMENTED; +} + +sai_status_t redis_get_router_interface_stats_ext( + _In_ sai_object_id_t router_interface_id, + _In_ uint32_t number_of_counters, + _In_ const sai_router_interface_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 redis_clear_router_interface_stats( + _In_ sai_object_id_t router_interface_id, + _In_ uint32_t number_of_counters, + _In_ const sai_router_interface_stat_t *counter_ids) +{ + MUTEX(); + + SWSS_LOG_ENTER(); + + return SAI_STATUS_NOT_IMPLEMENTED; +} + const sai_router_interface_api_t redis_router_interface_api = { REDIS_GENERIC_QUAD_API(router_interface) + + redis_get_router_interface_stats, + redis_get_router_interface_stats_ext, + redis_clear_router_interface_stats, }; From 7561626415ffdca4bdac06385549d29a0a5f8fd0 Mon Sep 17 00:00:00 2001 From: Ying Xie Date: Thu, 16 Aug 2018 17:47:51 +0000 Subject: [PATCH 3/3] [router interface] define dummy functions for newly added APIs Signed-off-by: Ying Xie --- vslib/src/sai_vs_router_interface.cpp | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/vslib/src/sai_vs_router_interface.cpp b/vslib/src/sai_vs_router_interface.cpp index b757c3196845..b4f3e48e0194 100644 --- a/vslib/src/sai_vs_router_interface.cpp +++ b/vslib/src/sai_vs_router_interface.cpp @@ -3,7 +3,50 @@ VS_GENERIC_QUAD(ROUTER_INTERFACE,router_interface); +sai_status_t vs_get_router_interface_stats( + _In_ sai_object_id_t router_interface_id, + _In_ uint32_t number_of_counters, + _In_ const sai_router_interface_stat_t *counter_ids, + _Out_ uint64_t *counters) +{ + MUTEX(); + + SWSS_LOG_ENTER(); + + return SAI_STATUS_NOT_IMPLEMENTED; +} + +sai_status_t vs_get_router_interface_stats_ext( + _In_ sai_object_id_t router_interface_id, + _In_ uint32_t number_of_counters, + _In_ const sai_router_interface_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_router_interface_stats( + _In_ sai_object_id_t router_interface_id, + _In_ uint32_t number_of_counters, + _In_ const sai_router_interface_stat_t *counter_ids) +{ + MUTEX(); + + SWSS_LOG_ENTER(); + + return SAI_STATUS_NOT_IMPLEMENTED; +} + const sai_router_interface_api_t vs_router_interface_api = { VS_GENERIC_QUAD_API(router_interface) + + vs_get_router_interface_stats, + vs_get_router_interface_stats_ext, + vs_clear_router_interface_stats, };