Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SAI
10 changes: 10 additions & 0 deletions lib/src/sai_redis_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ REDIS_GENERIC_QUAD(BUFFER_PROFILE,buffer_profile);
REDIS_GENERIC_STATS(BUFFER_POOL,buffer_pool);
REDIS_GENERIC_STATS(INGRESS_PRIORITY_GROUP,ingress_priority_group);

REDIS_BULK_CREATE(INGRESS_PRIORITY_GROUP,ingress_priority_group);
REDIS_BULK_REMOVE(INGRESS_PRIORITY_GROUP,ingress_priority_group);
REDIS_BULK_SET(INGRESS_PRIORITY_GROUP,ingress_priority_group);
REDIS_BULK_GET(INGRESS_PRIORITY_GROUP,ingress_priority_group);

const sai_buffer_api_t redis_buffer_api = {

REDIS_GENERIC_QUAD_API(buffer_pool)
REDIS_GENERIC_STATS_API(buffer_pool)
REDIS_GENERIC_QUAD_API(ingress_priority_group)
REDIS_GENERIC_STATS_API(ingress_priority_group)
REDIS_GENERIC_QUAD_API(buffer_profile)

redis_bulk_create_ingress_priority_group,
redis_bulk_remove_ingress_priority_group,
redis_bulk_set_ingress_priority_group,
redis_bulk_get_ingress_priority_group
};
10 changes: 10 additions & 0 deletions lib/src/sai_redis_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ REDIS_GENERIC_QUAD(PORT_CONNECTOR,port_connector);
REDIS_GENERIC_STATS(PORT,port);
REDIS_GENERIC_STATS(PORT_POOL,port_pool);

REDIS_BULK_CREATE(PORT,port);
REDIS_BULK_REMOVE(PORT,port);
REDIS_BULK_SET(PORT,port);
REDIS_BULK_GET(PORT,port);

const sai_port_api_t redis_port_api = {

REDIS_GENERIC_QUAD_API(port)
Expand All @@ -26,4 +31,9 @@ const sai_port_api_t redis_port_api = {
REDIS_GENERIC_STATS_API(port_pool)
REDIS_GENERIC_QUAD_API(port_connector)
REDIS_GENERIC_QUAD_API(port_serdes)

redis_bulk_create_port,
redis_bulk_remove_port,
redis_bulk_set_port,
redis_bulk_get_port
};
10 changes: 10 additions & 0 deletions lib/src/sai_redis_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@
REDIS_GENERIC_QUAD(QUEUE,queue);
REDIS_GENERIC_STATS(QUEUE,queue);

REDIS_BULK_CREATE(QUEUE,queue);
REDIS_BULK_REMOVE(QUEUE,queue);
REDIS_BULK_SET(QUEUE,queue);
REDIS_BULK_GET(QUEUE,queue);

const sai_queue_api_t redis_queue_api = {

REDIS_GENERIC_QUAD_API(queue)
REDIS_GENERIC_STATS_API(queue)

redis_bulk_create_queue,
redis_bulk_remove_queue,
redis_bulk_set_queue,
redis_bulk_get_queue
};
10 changes: 10 additions & 0 deletions lib/src/sai_redis_schedulergroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

REDIS_GENERIC_QUAD(SCHEDULER_GROUP,scheduler_group);

REDIS_BULK_CREATE(SCHEDULER_GROUP,scheduler_group);
REDIS_BULK_REMOVE(SCHEDULER_GROUP,scheduler_group);
REDIS_BULK_SET(SCHEDULER_GROUP,scheduler_group);
REDIS_BULK_GET(SCHEDULER_GROUP,scheduler_group);

const sai_scheduler_group_api_t redis_scheduler_group_api = {

REDIS_GENERIC_QUAD_API(scheduler_group)

redis_bulk_create_scheduler_group,
redis_bulk_remove_scheduler_group,
redis_bulk_set_scheduler_group,
redis_bulk_get_scheduler_group
};
10 changes: 10 additions & 0 deletions vslib/src/sai_vs_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,21 @@ VS_GENERIC_QUAD(BUFFER_PROFILE,buffer_profile);
VS_GENERIC_STATS(BUFFER_POOL,buffer_pool);
VS_GENERIC_STATS(INGRESS_PRIORITY_GROUP,ingress_priority_group);

VS_BULK_CREATE(INGRESS_PRIORITY_GROUP,ingress_priority_group);
VS_BULK_REMOVE(INGRESS_PRIORITY_GROUP,ingress_priority_group);
VS_BULK_SET(INGRESS_PRIORITY_GROUP,ingress_priority_group);
VS_BULK_GET(INGRESS_PRIORITY_GROUP,ingress_priority_group);

const sai_buffer_api_t vs_buffer_api = {

VS_GENERIC_QUAD_API(buffer_pool)
VS_GENERIC_STATS_API(buffer_pool)
VS_GENERIC_QUAD_API(ingress_priority_group)
VS_GENERIC_STATS_API(ingress_priority_group)
VS_GENERIC_QUAD_API(buffer_profile)

vs_bulk_create_ingress_priority_group,
vs_bulk_remove_ingress_priority_group,
vs_bulk_set_ingress_priority_group,
vs_bulk_get_ingress_priority_group
};
10 changes: 10 additions & 0 deletions vslib/src/sai_vs_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ VS_GENERIC_QUAD(PORT_SERDES,port_serdes);
VS_GENERIC_STATS(PORT,port);
VS_GENERIC_STATS(PORT_POOL,port_pool);

VS_BULK_CREATE(PORT,port);
VS_BULK_REMOVE(PORT,port);
VS_BULK_SET(PORT,port);
VS_BULK_GET(PORT,port);

const sai_port_api_t vs_port_api = {

VS_GENERIC_QUAD_API(port)
Expand All @@ -28,4 +33,9 @@ const sai_port_api_t vs_port_api = {
VS_GENERIC_QUAD_API(port_connector)

VS_GENERIC_QUAD_API(port_serdes)

vs_bulk_create_port,
vs_bulk_remove_port,
vs_bulk_set_port,
vs_bulk_get_port
};
10 changes: 10 additions & 0 deletions vslib/src/sai_vs_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@
VS_GENERIC_QUAD(QUEUE,queue);
VS_GENERIC_STATS(QUEUE,queue);

VS_BULK_CREATE(QUEUE,queue);
VS_BULK_REMOVE(QUEUE,queue);
VS_BULK_SET(QUEUE,queue);
VS_BULK_GET(QUEUE,queue);

const sai_queue_api_t vs_queue_api = {

VS_GENERIC_QUAD_API(queue)
VS_GENERIC_STATS_API(queue)

vs_bulk_create_queue,
vs_bulk_remove_queue,
vs_bulk_set_queue,
vs_bulk_get_queue
};
10 changes: 10 additions & 0 deletions vslib/src/sai_vs_schedulergroup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@

VS_GENERIC_QUAD(SCHEDULER_GROUP,scheduler_group);

VS_BULK_CREATE(SCHEDULER_GROUP,scheduler_group);
VS_BULK_REMOVE(SCHEDULER_GROUP,scheduler_group);
VS_BULK_SET(SCHEDULER_GROUP,scheduler_group);
VS_BULK_GET(SCHEDULER_GROUP,scheduler_group);

const sai_scheduler_group_api_t vs_scheduler_group_api = {

VS_GENERIC_QUAD_API(scheduler_group)

vs_bulk_create_scheduler_group,
vs_bulk_remove_scheduler_group,
vs_bulk_set_scheduler_group,
vs_bulk_get_scheduler_group
};