Skip to content

Commit

Permalink
syncd_reinit: bug fix: Using the actual lane count to build the lane …
Browse files Browse the repository at this point in the history
…map (sonic-net#31)
  • Loading branch information
lguohan authored and Shuotian Cheng committed Jul 11, 2016
1 parent ec9570f commit 4c257ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syncd/syncd_reinit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ std::unordered_map<sai_uint32_t, sai_object_id_t> saiGetHardwareLaneMap()
exit(EXIT_FAILURE);
}

for (int j = 0; j < lanesPerPort; j++)
sai_int32_t laneCount = attr.value.u32list.count;

for (int j = 0; j < laneCount; j++)
{
map[lanes[j]] = portList[i];
}
Expand Down

0 comments on commit 4c257ea

Please sign in to comment.