Skip to content
Merged
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
aa5bf64
initial barefoot checkin october 2017
Nov 3, 2017
c48a7a2
Merge branch 'master' of https://github.com/Azure/sonic-sairedis into…
Nov 3, 2017
29ab3de
Revert "Merge branch 'master' of https://github.com/Azure/sonic-saire…
Nov 3, 2017
e0366e0
missed integration diffs
Nov 4, 2017
30c8f89
Merge remote-tracking branch 'azure/master' into bf-master
Nov 13, 2017
67d998b
Merge remote-tracking branch 'azure/master' into bf-master
Nov 18, 2017
17ef711
Merge remote-tracking branch 'azure/master' into bf-master
Nov 21, 2017
1b39bc2
Added new attr type support to sairedis. Also, some fixes for compila…
Nov 28, 2017
0204303
Merge branch 'rel_6_0' into rel_6_0_telemetry
Nov 28, 2017
23a5d39
Changes to add new DTel api support in sairedis
Nov 29, 2017
8138854
Add new file to generate Dtel specific SAI stub API
Dec 7, 2017
be10c3f
Missed adding a file in the last commit
Dec 7, 2017
77a33ca
Merge pull request #1 from barefootnetworks/rel_6_0_telemetry
shruthi9 Dec 7, 2017
ce80282
Merge remote-tracking branch 'azure/master' into bf-master
Dec 11, 2017
b31892b
Fix ref point for SAI
Dec 15, 2017
1c1d862
Updated SAI repo to point to dtel_exp
Dec 21, 2017
488287d
Changes to handle new additions to DTel experimental SAI. Not compile…
Dec 22, 2017
05048cf
handle platform specific lins in different directory (@runtime)
Jan 5, 2018
450ed3b
force order of library path to look for platform dir before lib dir
Jan 5, 2018
eb81f24
Merge branch 'telemetry_cfgdb' into rel_7_0_telemetry
Jan 10, 2018
5c3c19d
Merge branch 'telemetry_exp_sai' into rel_7_0_telemetry
Jan 10, 2018
c97ca98
Change SAI branch refpoint
Jan 10, 2018
f32489b
Update SAI submodule refpoint
Jan 11, 2018
2da73f8
enable fast-boot for barefoot platforms
Jan 11, 2018
2467bc6
Update ref point for SAI
Jan 16, 2018
679f7ee
Merge branch 'rel_7_0' into rel_7_0_telemetry
Jan 17, 2018
216f745
SONiC changes due to DTel experimental SAI changes
Jan 4, 2018
d6b0ca3
allow Makefile to build for other platforms - restore it original for…
Jan 18, 2018
909a50e
Merge branch 'rel_7_0' into rel_7_0_telemetry
Jan 19, 2018
adfdb86
allow clean build
Jan 19, 2018
b995cd1
Merge branch 'rel_7_0' into rel_7_0_telemetry
Jan 21, 2018
043ac32
Revert "allow clean build"
Jan 22, 2018
8d6d487
Revert "allow Makefile to build for other platforms - restore it orig…
Jan 22, 2018
097422d
Merge branch 'rel_7_0' into rel_7_0_telemetry
Jan 22, 2018
b0c7c23
Merge branch 'rel_7_0_telemetry' of https://github.com/barefootnetwor…
Jan 22, 2018
fb55ef7
makefile cleanup towards upstream
Jan 23, 2018
bff6e2c
Merge branch '201712' into bf-master
Mar 14, 2018
c591e38
Support for platforms based on Barefoot Networks' device (#304)
Mar 14, 2018
226dc4d
search for exact string - newer onie versions match multiple lines
Apr 13, 2018
bac744c
Merge branch 'master' into sonicSaiv1.3
mkbalani May 14, 2018
b68ee14
Will need to revert this
mkbalani May 31, 2018
4b6df45
Merge branch 'bf-master' into sonicSaiv1.3
mkbalani Jun 1, 2018
0ad8951
Merge pull request #2 from barefootnetworks/sonicSaiv1.3
mkbalani Jun 1, 2018
986dad6
Merge remote-tracking branch 'origin/rel_7_0_telemetry' into dtel_mas…
Jun 1, 2018
39975ba
SONiC sairedis changes needed to work with SAIv1.3
Jun 5, 2018
158d5c8
Merge pull request #3 from barefootnetworks/dtel_master_merge
shruthi9 Jun 7, 2018
d1be87a
Fix SAI path in gitmodules and add a comment
Jun 8, 2018
e2c7d9b
Remove sai thrift build hack
mkbalani Jun 13, 2018
7418cb0
Merge pull request #4 from barefootnetworks/fixSaiHack
mkbalani Jun 13, 2018
6849eb3
enable fast-boot for barefoot platforms
Jan 11, 2018
1cf8724
enable fast-boot for barefoot platforms
Jan 11, 2018
8be553e
Add missing sai rpc hdr file path for bfn
mkbalani Jun 22, 2018
8f44c34
Merge branch 'bf-master' of https://github.com/barefootnetworks/sonic…
mkbalani Jun 22, 2018
4b98411
Update SAI ref points
Jun 26, 2018
73c9611
Multi p4 profile support for bfn sde (#5)
mkbalani Jul 6, 2018
3623488
Merge remote-tracking branch 'azure/master' into azure-merge
Jul 9, 2018
96adf56
Remove code duplicated in merge
mkbalani Jul 10, 2018
5de2c9a
Merge pull request #7 from barefootnetworks/azure-merge
shruthi9 Jul 10, 2018
c19b02a
Keep fn in same order as azure master (#8)
mkbalani Jul 10, 2018
befaed1
Address review comment
Jul 11, 2018
82760ff
Link just bfn sai lib and shorten linking command by removing other l…
mkbalani Jul 11, 2018
14902a5
Convert tabs to spaces
Jul 11, 2018
5d914e5
Fix alignment
mkbalani Jul 12, 2018
3c70742
Merge branch 'bf-master' of https://github.com/barefootnetworks/sonic…
mkbalani Jul 12, 2018
fc15c56
Address upstream comment
mkbalani Jul 12, 2018
14cbaef
Address review comments
Jul 12, 2018
7b11204
Merge branch 'bf-master' of github.com:barefootnetworks/sonic-sairedi…
Jul 12, 2018
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 .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
path = SAI
url = https://github.com/opencomputeproject/SAI.git
ignore = dirty
branch = v1.2
branch = v1.3
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ AC_PROG_CXX
AC_PROG_LIBTOOL
AC_HEADER_STDC

AM_CONDITIONAL(sonic_asic_platform_barefoot, test x$CONFIGURED_PLATFORM = xbarefoot)

AC_ARG_ENABLE(debug,
[ --enable-debug turn on debugging],
[case "${enableval}" in
Expand Down
1 change: 1 addition & 0 deletions lib/inc/sai_redis.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ 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;
extern const sai_wred_api_t redis_wred_api;
extern const sai_dtel_api_t redis_dtel_api;

#define UNREFERENCED_PARAMETER(X)

Expand Down
1 change: 1 addition & 0 deletions lib/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ libsairedis_la_SOURCES = \
sai_redis_fdb.cpp \
sai_redis_hash.cpp \
sai_redis_hostintf.cpp \
sai_redis_dtel.cpp \
sai_redis_interfacequery.cpp \
sai_redis_lag.cpp \
sai_redis_mirror.cpp \
Expand Down
30 changes: 30 additions & 0 deletions lib/src/sai_redis_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ sai_status_t redis_get_bridge_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_bridge_stats_ext(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am not sure this needs to be modified.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

_In_ sai_object_id_t bridge_id,
_In_ uint32_t number_of_counters,
_In_ const sai_bridge_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_bridge_stats(
_In_ sai_object_id_t bridge_id,
_In_ uint32_t number_of_counters,
Expand All @@ -38,6 +52,20 @@ sai_status_t redis_get_bridge_port_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_bridge_port_stats_ext(
_In_ sai_object_id_t bridge_port_id,
_In_ uint32_t number_of_counters,
_In_ const sai_bridge_port_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_bridge_port_stats(
_In_ sai_object_id_t bridge_port_id,
_In_ uint32_t number_of_counters,
Expand All @@ -58,10 +86,12 @@ const sai_bridge_api_t redis_bridge_api =
REDIS_GENERIC_QUAD_API(bridge)

redis_get_bridge_stats,
redis_get_bridge_stats_ext,
redis_clear_bridge_stats,

REDIS_GENERIC_QUAD_API(bridge_port)

redis_get_bridge_port_stats,
redis_get_bridge_port_stats_ext,
redis_clear_bridge_port_stats,
};
30 changes: 30 additions & 0 deletions lib/src/sai_redis_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ sai_status_t redis_clear_ingress_priority_group_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_ingress_priority_group_stats_ext(
_In_ sai_object_id_t ingress_pg_id,
_In_ uint32_t number_of_counters,
_In_ const sai_ingress_priority_group_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_get_buffer_pool_stats(
_In_ sai_object_id_t pool_id,
_In_ uint32_t number_of_counters,
Expand All @@ -37,6 +51,20 @@ sai_status_t redis_clear_buffer_pool_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_buffer_pool_stats_ext(
_In_ sai_object_id_t pool_id,
_In_ uint32_t number_of_counters,
_In_ const sai_buffer_pool_stat_t *counter_ids,
_In_ sai_stats_mode_t mode,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

REDIS_GENERIC_QUAD(BUFFER_POOL,buffer_pool);
REDIS_GENERIC_QUAD(INGRESS_PRIORITY_GROUP,ingress_priority_group);
REDIS_GENERIC_QUAD(BUFFER_PROFILE,buffer_profile);
Expand All @@ -48,11 +76,13 @@ const sai_buffer_api_t redis_buffer_api = {
REDIS_GENERIC_QUAD_API(buffer_pool)

redis_get_buffer_pool_stats,
redis_get_buffer_pool_stats_ext,
redis_clear_buffer_pool_stats,

REDIS_GENERIC_QUAD_API(ingress_priority_group)

redis_get_ingress_priority_group_stats,
redis_get_ingress_priority_group_stats_ext,
redis_clear_ingress_priority_group_stats,

REDIS_GENERIC_QUAD_API(buffer_profile)
Expand Down
16 changes: 16 additions & 0 deletions lib/src/sai_redis_dtel.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "sai_redis.h"

REDIS_GENERIC_QUAD(DTEL,dtel);
REDIS_GENERIC_QUAD(DTEL_QUEUE_REPORT,dtel_queue_report);
REDIS_GENERIC_QUAD(DTEL_INT_SESSION,dtel_int_session);
REDIS_GENERIC_QUAD(DTEL_REPORT_SESSION,dtel_report_session);
REDIS_GENERIC_QUAD(DTEL_EVENT,dtel_event);

const sai_dtel_api_t redis_dtel_api = {

REDIS_GENERIC_QUAD_API(dtel)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TAB -> SPACES

REDIS_GENERIC_QUAD_API(dtel_queue_report)
REDIS_GENERIC_QUAD_API(dtel_int_session)
REDIS_GENERIC_QUAD_API(dtel_report_session)
REDIS_GENERIC_QUAD_API(dtel_event)
};
6 changes: 3 additions & 3 deletions lib/src/sai_redis_hostintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

sai_status_t redis_recv_hostif_packet(
_In_ sai_object_id_t hif_id,
_Out_ void *buffer,
_Inout_ sai_size_t *buffer_size,
_Out_ void *buffer,
_Inout_ uint32_t *attr_count,
_Out_ sai_attribute_t *attr_list)
{
Expand All @@ -16,10 +16,10 @@ sai_status_t redis_recv_hostif_packet(

sai_status_t redis_send_hostif_packet(
_In_ sai_object_id_t hif_id,
_In_ void *buffer,
_In_ sai_size_t buffer_size,
_In_ const void *buffer,
_In_ uint32_t attr_count,
_In_ sai_attribute_t *attr_list)
_In_ const sai_attribute_t *attr_list)
{
MUTEX();

Expand Down
1 change: 1 addition & 0 deletions lib/src/sai_redis_interfacequery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ sai_status_t sai_api_query(
API_CASE(VIRTUAL_ROUTER,virtual_router);
API_CASE(VLAN,vlan);
API_CASE(WRED,wred);
API_CASE(DTEL,dtel);

default:
SWSS_LOG_ERROR("Invalid API type %d", sai_api_id);
Expand Down
15 changes: 15 additions & 0 deletions lib/src/sai_redis_policer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ sai_status_t redis_get_policer_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_policer_stats_ext(
_In_ sai_object_id_t policer_id,
_In_ uint32_t number_of_counters,
_In_ const sai_policer_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_policer_stats(
_In_ sai_object_id_t policer_id,
_In_ uint32_t number_of_counters,
Expand All @@ -32,5 +46,6 @@ const sai_policer_api_t redis_policer_api = {
REDIS_GENERIC_QUAD_API(policer)

redis_get_policer_stats,
redis_get_policer_stats_ext,
redis_clear_policer_stats,
};
30 changes: 30 additions & 0 deletions lib/src/sai_redis_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ sai_status_t redis_clear_port_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_port_stats_ext(
_In_ sai_object_id_t port_id,
_In_ uint32_t number_of_counters,
_In_ const sai_port_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_port_all_stats(
_In_ sai_object_id_t port_id)
{
Expand All @@ -34,6 +48,20 @@ sai_status_t redis_clear_port_pool_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_port_pool_stats_ext(
_In_ sai_object_id_t port_pool_id,
_In_ uint32_t number_of_counters,
_In_ const sai_port_pool_stat_t *counter_ids,
_In_ sai_stats_mode_t mode,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}


REDIS_GENERIC_QUAD(PORT,port);
REDIS_GENERIC_QUAD(PORT_POOL,port_pool);
Expand All @@ -46,11 +74,13 @@ const sai_port_api_t redis_port_api = {
REDIS_GENERIC_QUAD_API(port)

redis_get_port_stats,
redis_get_port_stats_ext,
redis_clear_port_stats,
redis_clear_port_all_stats,

REDIS_GENERIC_QUAD_API(port_pool)

redis_get_port_pool_stats,
redis_get_port_pool_stats_ext,
redis_clear_port_pool_stats
};
15 changes: 15 additions & 0 deletions lib/src/sai_redis_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@ sai_status_t redis_clear_queue_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_queue_stats_ext(
_In_ sai_object_id_t queue_id,
_In_ uint32_t number_of_counters,
_In_ const sai_queue_stat_t *counter_ids,
_In_ sai_stats_mode_t mode,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}

REDIS_GENERIC_QUAD(QUEUE,queue);

REDIS_GENERIC_GET_STATS(QUEUE, queue);
Expand All @@ -22,5 +36,6 @@ const sai_queue_api_t redis_queue_api = {
REDIS_GENERIC_QUAD_API(queue)

redis_get_queue_stats,
redis_get_queue_stats_ext,
redis_clear_queue_stats,
};
15 changes: 15 additions & 0 deletions lib/src/sai_redis_tunnel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ sai_status_t redis_clear_tunnel_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_tunnel_stats_ext(
_In_ sai_object_id_t tunnel_id,
_In_ uint32_t number_of_counters,
_In_ const sai_tunnel_stat_t *counter_ids,
_In_ sai_stats_mode_t mode,
_Out_ uint64_t *counters)
{
MUTEX();

SWSS_LOG_ENTER();

return SAI_STATUS_NOT_IMPLEMENTED;
}


REDIS_GENERIC_QUAD(TUNNEL_MAP,tunnel_map);
REDIS_GENERIC_QUAD(TUNNEL,tunnel);
Expand All @@ -25,6 +39,7 @@ const sai_tunnel_api_t redis_tunnel_api = {
REDIS_GENERIC_QUAD_API(tunnel)

redis_get_tunnel_stats,
redis_get_tunnel_stats_ext,
redis_clear_tunnel_stats,

REDIS_GENERIC_QUAD_API(tunnel_term_table_entry)
Expand Down
15 changes: 15 additions & 0 deletions lib/src/sai_redis_vlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ sai_status_t redis_get_vlan_stats(
return SAI_STATUS_NOT_IMPLEMENTED;
}

sai_status_t redis_get_vlan_stats_ext(
_In_ sai_object_id_t vlan_id,
_In_ uint32_t number_of_counters,
_In_ const sai_vlan_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_vlan_stats(
_In_ sai_object_id_t vlan_id,
_In_ uint32_t number_of_counters,
Expand All @@ -65,5 +79,6 @@ const sai_vlan_api_t redis_vlan_api = {
redis_create_vlan_members,
redis_remove_vlan_members,
redis_get_vlan_stats,
redis_get_vlan_stats_ext,
redis_clear_vlan_stats,
};
Loading