forked from sonic-net/sonic-sairedis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request sonic-net#264 from lguohan/v1.2
update sairedis/syncd to use SAI v1.2.3
- Loading branch information
Showing
70 changed files
with
720 additions
and
491 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
path = SAI | ||
url = https://github.com/opencomputeproject/SAI.git | ||
ignore = dirty | ||
branch = v1.2 |
Submodule SAI
updated
95 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,67 @@ | ||
#include "sai_redis.h" | ||
|
||
sai_status_t redis_get_bridge_stats( | ||
_In_ sai_object_id_t bridge_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_bridge_stat_t *counter_ids, | ||
_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, | ||
_In_ const sai_bridge_stat_t *counter_ids) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
sai_status_t redis_get_bridge_port_stats( | ||
_In_ sai_object_id_t bridge_port_id, | ||
_In_ uint32_t number_of_counters, | ||
_In_ const sai_bridge_port_stat_t *counter_ids, | ||
_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, | ||
_In_ const sai_bridge_port_stat_t *counter_ids) | ||
{ | ||
MUTEX(); | ||
|
||
SWSS_LOG_ENTER(); | ||
|
||
return SAI_STATUS_NOT_IMPLEMENTED; | ||
} | ||
|
||
REDIS_GENERIC_QUAD(BRIDGE,bridge); | ||
REDIS_GENERIC_QUAD(BRIDGE_PORT,bridge_port); | ||
|
||
const sai_bridge_api_t redis_bridge_api = | ||
{ | ||
REDIS_GENERIC_QUAD_API(bridge) | ||
|
||
redis_get_bridge_stats, | ||
redis_clear_bridge_stats, | ||
|
||
REDIS_GENERIC_QUAD_API(bridge_port) | ||
|
||
redis_get_bridge_port_stats, | ||
redis_clear_bridge_port_stats, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.