-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove redundant calls to get child scheduler group during initializa…
…tion The QoS orchagent call SAI APIs to get the number of child scheduler groups and then initialize them. After that, the size of child scheduler groups vector will be non-zero, which indicates the child scheduler groups have been initialized and prevent QoS orchagent from calling SAI APIs. However, on Mellanox platform, some scheduler groups don't have child group, leaving size of child scheduler groups always being zero. This causes QoS orchagent to call the SAI API each time the scheduler group is handled, which wastes a lot of time especially during fast reboot. An extra flag indicating whether the child groups have been initialized is introduced to avoid the redundant calls. Signed-off-by: Stephen Sun <stephens@nvidia.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters