mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-24 13:51:27 +02:00
Use max_group_size 1 for INDIRECT groups
Change-Id: I8db03a88af06b373d615e05c4b01e47579df2398
This commit is contained in:
parent
a3635abf1d
commit
4f73fac78a
@ -102,13 +102,16 @@ final class PiGroupTranslatorImpl {
|
|||||||
actionProfileId, actionProfileModel.maxGroupSize()));
|
actionProfileId, actionProfileModel.maxGroupSize()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If not INDIRECT, we set the maximum group size as specified in the
|
||||||
|
// model, however this might be highly inefficient for some HW targets
|
||||||
|
// which pre-allocate resources for the whole group.
|
||||||
|
final int maxGroupSize = group.type() == GroupDescription.Type.INDIRECT
|
||||||
|
? 1 : group.buckets().buckets().size();
|
||||||
|
|
||||||
final PiActionProfileGroup.Builder piActionGroupBuilder = PiActionProfileGroup.builder()
|
final PiActionProfileGroup.Builder piActionGroupBuilder = PiActionProfileGroup.builder()
|
||||||
.withId(PiActionProfileGroupId.of(group.id().id()))
|
.withId(PiActionProfileGroupId.of(group.id().id()))
|
||||||
.withActionProfileId(groupKey.actionProfileId())
|
.withActionProfileId(groupKey.actionProfileId())
|
||||||
// We set the maximum group size as specified in the model,
|
.withMaxSize(maxGroupSize);
|
||||||
// however this might be highly inefficient for some HW targets
|
|
||||||
// which pre-allocate resources for the whole group.
|
|
||||||
.withMaxSize(actionProfileModel.maxGroupSize());
|
|
||||||
|
|
||||||
// Translate group buckets to PI group members
|
// Translate group buckets to PI group members
|
||||||
final PiPipelineInterpreter interpreter = getInterpreterOrNull(device, pipeconf);
|
final PiPipelineInterpreter interpreter = getInterpreterOrNull(device, pipeconf);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user