Skip to content

Commit 75ed784

Browse files
kcudnikpavel-shirshov
authored andcommitted
Remove lane map divide restriction (sonic-net#290)
* Remove lane map divide restriction * Remove lane size restriction
1 parent 2b67f5d commit 75ed784

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

syncd/syncd_saiswitch.cpp

-11
Original file line numberDiff line numberDiff line change
@@ -328,17 +328,6 @@ void SaiSwitch::helperCheckLaneMap()
328328
SWSS_LOG_THROW("lanes map size differ: %lu vs %lu", laneMap.size(), redisLaneMap.size());
329329
}
330330

331-
/*
332-
* We assume there are at least 32 ports and port number
333-
* can be divided by 16 without rest.
334-
*/
335-
336-
if (laneMap.size() < 32 || (laneMap.size() % 16 != 0))
337-
{
338-
// TODO throw here
339-
SWSS_LOG_ERROR("LANES size is %zu, something is wrong!", laneMap.size());
340-
}
341-
342331
for (auto kv: laneMap)
343332
{
344333
sai_uint32_t lane = kv.first;

0 commit comments

Comments
 (0)