Skip to content

Commit 4aaeec9

Browse files
authored
added support for Xsight platform (#2426)
* Added support for Xsight platform Signed-off-by: Borys Barkauskas <[email protected]>
1 parent ca9edca commit 4aaeec9

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

orchagent/aclorch.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2885,6 +2885,7 @@ void AclOrch::init(vector<TableConnector>& connectors, PortsOrch *portOrch, Mirr
28852885
platform == MRVL_PLATFORM_SUBSTRING ||
28862886
platform == INVM_PLATFORM_SUBSTRING ||
28872887
platform == NPS_PLATFORM_SUBSTRING ||
2888+
platform == XS_PLATFORM_SUBSTRING ||
28882889
platform == VS_PLATFORM_SUBSTRING)
28892890
{
28902891
m_mirrorTableCapabilities =
@@ -2913,6 +2914,7 @@ void AclOrch::init(vector<TableConnector>& connectors, PortsOrch *portOrch, Mirr
29132914
if (platform == MLNX_PLATFORM_SUBSTRING ||
29142915
platform == CISCO_8000_PLATFORM_SUBSTRING ||
29152916
platform == MRVL_PLATFORM_SUBSTRING ||
2917+
platform == XS_PLATFORM_SUBSTRING ||
29162918
(platform == BRCM_PLATFORM_SUBSTRING && sub_platform == BRCM_DNX_PLATFORM_SUBSTRING))
29172919
{
29182920
m_isCombinedMirrorV6Table = false;

orchagent/orch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const char state_db_key_delimiter = '|';
4040
#define NPS_PLATFORM_SUBSTRING "nephos"
4141
#define MRVL_PLATFORM_SUBSTRING "marvell"
4242
#define CISCO_8000_PLATFORM_SUBSTRING "cisco-8000"
43+
#define XS_PLATFORM_SUBSTRING "xsight"
4344

4445
#define CONFIGDB_KEY_SEPARATOR "|"
4546
#define DEFAULT_KEY_SEPARATOR ":"

orchagent/saihelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void initSaiRedis(const string &record_location, const std::string &record_filen
307307
SWSS_LOG_NOTICE("Enable redis pipeline");
308308

309309
char *platform = getenv("platform");
310-
if (platform && strstr(platform, MLNX_PLATFORM_SUBSTRING))
310+
if (platform && (strstr(platform, MLNX_PLATFORM_SUBSTRING) || strstr(platform, XS_PLATFORM_SUBSTRING)))
311311
{
312312
/* We set this long timeout in order for Orchagent to wait enough time for
313313
* response from syncd. It is needed since in init, systemd syncd startup
@@ -337,7 +337,7 @@ void initSaiRedis(const string &record_location, const std::string &record_filen
337337
}
338338
SWSS_LOG_NOTICE("Notify syncd INIT_VIEW");
339339

340-
if (platform && strstr(platform, MLNX_PLATFORM_SUBSTRING))
340+
if (platform && (strstr(platform, MLNX_PLATFORM_SUBSTRING) || strstr(platform, XS_PLATFORM_SUBSTRING)))
341341
{
342342
/* Set timeout back to the default value */
343343
attr.id = SAI_REDIS_SWITCH_ATTR_SYNC_OPERATION_RESPONSE_TIMEOUT;

0 commit comments

Comments
 (0)