Skip to content

Commit

Permalink
Removing MLNX/BRCM specific initialization code (sonic-net#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan authored and Shuotian Cheng committed Jul 11, 2016
1 parent 91318fb commit ec9570f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions syncd/syncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1127,12 +1127,6 @@ int main(int argc, char **argv)
notifications = new swss::NotificationProducer(dbNtf, "NOTIFICATIONS");
notifySyncdResponse = new swss::NotificationProducer(db, "NOTIFYSYNCDRESPONSE");

#ifdef MLNXSAI
/* This file is included in Mellanox SAI package. */
std::string mlnx_config_file = "/usr/share/sai_2700.xml";
gProfileMap[SAI_KEY_INIT_CONFIG_FILE] = mlnx_config_file;
#endif /* MLNX_SAI */

g_veryFirstRun = isVeryFirstRun();

if (options.warmStart)
Expand Down Expand Up @@ -1167,7 +1161,7 @@ int main(int argc, char **argv)

initialize_common_api_pointers();

sai_status_t status = sai_switch_api->initialize_switch(0, "0xb850", "", &switch_notifications);
sai_status_t status = sai_switch_api->initialize_switch(0, "", "", &switch_notifications);

if (status != SAI_STATUS_SUCCESS)
{
Expand Down

0 comments on commit ec9570f

Please sign in to comment.