diff --git a/dash-pipeline/SAI/src/sai_dash_buffer.cpp b/dash-pipeline/SAI/src/sai_dash_buffer.cpp new file mode 100644 index 000000000..5d0b8ae7a --- /dev/null +++ b/dash-pipeline/SAI/src/sai_dash_buffer.cpp @@ -0,0 +1,22 @@ +#include "saiimpl.h" + +DASH_GENERIC_QUAD(BUFFER_POOL,buffer_pool); +DASH_GENERIC_QUAD(INGRESS_PRIORITY_GROUP,ingress_priority_group); +DASH_GENERIC_QUAD(BUFFER_PROFILE,buffer_profile); + +sai_buffer_api_t redis_buffer_api = { + + DASH_GENERIC_QUAD_API(buffer_pool) + + .get_buffer_pool_stats = 0, + .get_buffer_pool_stats_ext = 0, + .clear_buffer_pool_stats = 0, + + DASH_GENERIC_QUAD_API(ingress_priority_group) + + .get_ingress_priority_group_stats = 0, + .get_ingress_priority_group_stats_ext = 0, + .clear_ingress_priority_group_stats = 0, + + DASH_GENERIC_QUAD_API(buffer_profile) +}; diff --git a/dash-pipeline/SAI/src/sai_dash_dtel.cpp b/dash-pipeline/SAI/src/sai_dash_dtel.cpp new file mode 100644 index 000000000..49be60116 --- /dev/null +++ b/dash-pipeline/SAI/src/sai_dash_dtel.cpp @@ -0,0 +1,16 @@ +#include "saiimpl.h" + +DASH_GENERIC_QUAD(DTEL,dtel); +DASH_GENERIC_QUAD(DTEL_QUEUE_REPORT,dtel_queue_report); +DASH_GENERIC_QUAD(DTEL_INT_SESSION,dtel_int_session); +DASH_GENERIC_QUAD(DTEL_REPORT_SESSION,dtel_report_session); +DASH_GENERIC_QUAD(DTEL_EVENT,dtel_event); + +sai_dtel_api_t dash_sai_dtel_api = { + + DASH_GENERIC_QUAD_API(dtel) + DASH_GENERIC_QUAD_API(dtel_queue_report) + DASH_GENERIC_QUAD_API(dtel_int_session) + DASH_GENERIC_QUAD_API(dtel_report_session) + DASH_GENERIC_QUAD_API(dtel_event) +}; diff --git a/dash-pipeline/SAI/templates/saiimpl.h.j2 b/dash-pipeline/SAI/templates/saiimpl.h.j2 index 052a0a3ac..133bda777 100644 --- a/dash-pipeline/SAI/templates/saiimpl.h.j2 +++ b/dash-pipeline/SAI/templates/saiimpl.h.j2 @@ -11,6 +11,8 @@ DASH_PRIVATE extern sai_policer_api_t dash_sai_policer_api_impl; DASH_PRIVATE extern sai_port_api_t dash_sai_port_api_impl; DASH_PRIVATE extern sai_router_interface_api_t dash_sai_router_interface_api_impl; DASH_PRIVATE extern sai_switch_api_t dash_sai_switch_api_impl; +DASH_PRIVATE extern sai_dtel_api_t dash_sai_dtel_api; +DASH_PRIVATE extern sai_buffer_api_t dash_sai_buffer_api; {% for api in api_names %} DASH_PRIVATE extern sai_{{ api }}_api_t dash_sai_{{ api }}_api_impl;