Skip to content

Commit

Permalink
[SAI]: Move SAI pointer to v1.4 (sonic-net#447)
Browse files Browse the repository at this point in the history
- Remove uburst
- Update tam

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
  • Loading branch information
Shuotian Cheng authored and lguohan committed Apr 23, 2019
1 parent f8950b7 commit a17e54e
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 76 deletions.
1 change: 0 additions & 1 deletion lib/inc/sai_redis.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ extern const sai_stp_api_t redis_stp_api;
extern const sai_switch_api_t redis_switch_api;
extern const sai_tam_api_t redis_tam_api;
extern const sai_tunnel_api_t redis_tunnel_api;
extern const sai_uburst_api_t redis_uburst_api;
extern const sai_udf_api_t redis_udf_api;
extern const sai_virtual_router_api_t redis_virtual_router_api;
extern const sai_vlan_api_t redis_vlan_api;
Expand Down
1 change: 0 additions & 1 deletion lib/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ libsairedis_la_SOURCES = \
sai_redis_switch.cpp \
sai_redis_tam.cpp \
sai_redis_tunnel.cpp \
sai_redis_uburst.cpp \
sai_redis_udf.cpp \
sai_redis_virtual_router.cpp \
sai_redis_vlan.cpp \
Expand Down
1 change: 0 additions & 1 deletion lib/src/sai_redis_interfacequery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ sai_status_t sai_api_query(
API_CASE(SWITCH,switch);
API_CASE(TAM,tam);
API_CASE(TUNNEL,tunnel);
API_CASE(UBURST,uburst);
API_CASE(UDF,udf);
API_CASE(VIRTUAL_ROUTER,virtual_router);
API_CASE(VLAN,vlan);
Expand Down
40 changes: 18 additions & 22 deletions lib/src/sai_redis_tam.cpp
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
#include "sai_redis.h"
#include "sai_redis_internal.h"

sai_status_t redis_get_tam_snapshot_stats(
_In_ sai_object_id_t tam_snapshot_id,
_Inout_ uint32_t *number_of_counters,
_Inout_ sai_tam_statistic_t *statistics)
{
MUTEX();
SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

REDIS_GENERIC_QUAD(TAM,tam);
REDIS_GENERIC_QUAD(TAM_STAT,tam_stat);
REDIS_GENERIC_QUAD(TAM_THRESHOLD,tam_threshold);
REDIS_GENERIC_QUAD(TAM_SNAPSHOT,tam_snapshot);
REDIS_GENERIC_QUAD(TAM_TRANSPORTER,tam_transporter);
REDIS_GENERIC_QUAD(TAM_MATH_FUNC,tam_math_func);
REDIS_GENERIC_QUAD(TAM_REPORT,tam_report);
REDIS_GENERIC_QUAD(TAM_EVENT_THRESHOLD,tam_event_threshold);
REDIS_GENERIC_QUAD(TAM_TEL_TYPE,tam_tel_type);
REDIS_GENERIC_QUAD(TAM_TRANSPORT,tam_transport);
REDIS_GENERIC_QUAD(TAM_TELEMETRY,tam_telemetry);
REDIS_GENERIC_QUAD(TAM_COLLECTOR,tam_collector);
REDIS_GENERIC_QUAD(TAM_EVENT_ACTION,tam_event_action);
REDIS_GENERIC_QUAD(TAM_EVENT,tam_event);

const sai_tam_api_t redis_tam_api = {

REDIS_GENERIC_QUAD_API(tam)
REDIS_GENERIC_QUAD_API(tam_stat)
REDIS_GENERIC_QUAD_API(tam_threshold)
REDIS_GENERIC_QUAD_API(tam_snapshot)

redis_get_tam_snapshot_stats,

REDIS_GENERIC_QUAD_API(tam_transporter)
REDIS_GENERIC_QUAD_API(tam_math_func)
REDIS_GENERIC_QUAD_API(tam_report)
REDIS_GENERIC_QUAD_API(tam_event_threshold)
REDIS_GENERIC_QUAD_API(tam_tel_type)
REDIS_GENERIC_QUAD_API(tam_transport)
REDIS_GENERIC_QUAD_API(tam_telemetry)
REDIS_GENERIC_QUAD_API(tam_collector)
REDIS_GENERIC_QUAD_API(tam_event_action)
REDIS_GENERIC_QUAD_API(tam_event)
};
13 changes: 0 additions & 13 deletions lib/src/sai_redis_uburst.cpp

This file was deleted.

1 change: 0 additions & 1 deletion vslib/inc/sai_vs.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ extern const sai_stp_api_t vs_stp_api;
extern const sai_switch_api_t vs_switch_api;
extern const sai_tam_api_t vs_tam_api;
extern const sai_tunnel_api_t vs_tunnel_api;
extern const sai_uburst_api_t vs_uburst_api;
extern const sai_udf_api_t vs_udf_api;
extern const sai_virtual_router_api_t vs_virtual_router_api;
extern const sai_vlan_api_t vs_vlan_api;
Expand Down
1 change: 0 additions & 1 deletion vslib/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ libsaivs_la_SOURCES = \
sai_vs_switch.cpp \
sai_vs_tam.cpp \
sai_vs_tunnel.cpp \
sai_vs_uburst.cpp \
sai_vs_udf.cpp \
sai_vs_virtual_router.cpp \
sai_vs_vlan.cpp \
Expand Down
1 change: 0 additions & 1 deletion vslib/src/sai_vs_interfacequery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,6 @@ sai_status_t sai_api_query(
API_CASE(SWITCH,switch);
API_CASE(TAM,tam);
API_CASE(TUNNEL,tunnel);
API_CASE(UBURST,uburst);
API_CASE(UDF,udf);
API_CASE(VIRTUAL_ROUTER,virtual_router);
API_CASE(VLAN,vlan);
Expand Down
39 changes: 18 additions & 21 deletions vslib/src/sai_vs_tam.cpp
Original file line number Diff line number Diff line change
@@ -1,31 +1,28 @@
#include "sai_vs.h"
#include "sai_vs_internal.h"

sai_status_t vs_get_tam_snapshot_stats(
_In_ sai_object_id_t tam_snapshot_id,
_Inout_ uint32_t *number_of_counters,
_Inout_ sai_tam_statistic_t *statistics)
{
MUTEX();
SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

VS_GENERIC_QUAD(TAM,tam);
VS_GENERIC_QUAD(TAM_STAT,tam_stat);
VS_GENERIC_QUAD(TAM_THRESHOLD,tam_threshold);
VS_GENERIC_QUAD(TAM_SNAPSHOT,tam_snapshot);
VS_GENERIC_QUAD(TAM_TRANSPORTER,tam_transporter);
VS_GENERIC_QUAD(TAM_MATH_FUNC,tam_math_func);
VS_GENERIC_QUAD(TAM_REPORT,tam_report);
VS_GENERIC_QUAD(TAM_EVENT_THRESHOLD,tam_event_threshold);
VS_GENERIC_QUAD(TAM_TEL_TYPE,tam_tel_type);
VS_GENERIC_QUAD(TAM_TRANSPORT,tam_transport);
VS_GENERIC_QUAD(TAM_TELEMETRY,tam_telemetry);
VS_GENERIC_QUAD(TAM_COLLECTOR,tam_collector);
VS_GENERIC_QUAD(TAM_EVENT_ACTION,tam_event_action);
VS_GENERIC_QUAD(TAM_EVENT,tam_event);

const sai_tam_api_t vs_tam_api = {

VS_GENERIC_QUAD_API(tam)
VS_GENERIC_QUAD_API(tam_stat)
VS_GENERIC_QUAD_API(tam_threshold)
VS_GENERIC_QUAD_API(tam_snapshot)

vs_get_tam_snapshot_stats,
VS_GENERIC_QUAD_API(tam_math_func)
VS_GENERIC_QUAD_API(tam_report)
VS_GENERIC_QUAD_API(tam_event_threshold)
VS_GENERIC_QUAD_API(tam_tel_type)
VS_GENERIC_QUAD_API(tam_transport)
VS_GENERIC_QUAD_API(tam_telemetry)
VS_GENERIC_QUAD_API(tam_collector)
VS_GENERIC_QUAD_API(tam_event_action)
VS_GENERIC_QUAD_API(tam_event)

VS_GENERIC_QUAD_API(tam_transporter)
};
13 changes: 0 additions & 13 deletions vslib/src/sai_vs_uburst.cpp

This file was deleted.

0 comments on commit a17e54e

Please sign in to comment.