Skip to content

Commit

Permalink
Remove lane map divide restriction (sonic-net#290)
Browse files Browse the repository at this point in the history
* Remove lane map divide restriction

* Remove lane size restriction
  • Loading branch information
kcudnik authored and pavel-shirshov committed May 14, 2018
1 parent 2b67f5d commit 75ed784
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions syncd/syncd_saiswitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,17 +328,6 @@ void SaiSwitch::helperCheckLaneMap()
SWSS_LOG_THROW("lanes map size differ: %lu vs %lu", laneMap.size(), redisLaneMap.size());
}

/*
* We assume there are at least 32 ports and port number
* can be divided by 16 without rest.
*/

if (laneMap.size() < 32 || (laneMap.size() % 16 != 0))
{
// TODO throw here
SWSS_LOG_ERROR("LANES size is %zu, something is wrong!", laneMap.size());
}

for (auto kv: laneMap)
{
sai_uint32_t lane = kv.first;
Expand Down

0 comments on commit 75ed784

Please sign in to comment.