View | Details | Raw Unified | Return to bug 2557
Collapse All | Expand All

(-)a/examples/traffic-control/queue-discs-benchmark.cc (+4 lines)
 Lines 153-162    Link Here 
153
  if (queueDiscType.compare ("PfifoFast") == 0)
153
  if (queueDiscType.compare ("PfifoFast") == 0)
154
    {
154
    {
155
      tchBottleneck.SetRootQueueDisc ("ns3::PfifoFastQueueDisc", "Limit", UintegerValue (queueDiscSize));
155
      tchBottleneck.SetRootQueueDisc ("ns3::PfifoFastQueueDisc", "Limit", UintegerValue (queueDiscSize));
156
      NS_UNUSED (handle);
156
    }
157
    }
157
  else if (queueDiscType.compare ("ARED") == 0)
158
  else if (queueDiscType.compare ("ARED") == 0)
158
    {
159
    {
159
      handle = tchBottleneck.SetRootQueueDisc ("ns3::RedQueueDisc");
160
      handle = tchBottleneck.SetRootQueueDisc ("ns3::RedQueueDisc");
161
      NS_UNUSED (handle);
160
      Config::SetDefault ("ns3::RedQueueDisc::ARED", BooleanValue (true));
162
      Config::SetDefault ("ns3::RedQueueDisc::ARED", BooleanValue (true));
161
      Config::SetDefault ("ns3::RedQueueDisc::Mode", EnumValue (Queue::QUEUE_MODE_PACKETS));
163
      Config::SetDefault ("ns3::RedQueueDisc::Mode", EnumValue (Queue::QUEUE_MODE_PACKETS));
162
      Config::SetDefault ("ns3::RedQueueDisc::QueueLimit", UintegerValue (queueDiscSize));
164
      Config::SetDefault ("ns3::RedQueueDisc::QueueLimit", UintegerValue (queueDiscSize));
 Lines 164-169    Link Here 
164
  else if (queueDiscType.compare ("CoDel") == 0)
166
  else if (queueDiscType.compare ("CoDel") == 0)
165
    {
167
    {
166
      handle = tchBottleneck.SetRootQueueDisc ("ns3::CoDelQueueDisc");
168
      handle = tchBottleneck.SetRootQueueDisc ("ns3::CoDelQueueDisc");
169
      NS_UNUSED (handle);
167
      Config::SetDefault ("ns3::CoDelQueueDisc::Mode", EnumValue (Queue::QUEUE_MODE_PACKETS));
170
      Config::SetDefault ("ns3::CoDelQueueDisc::Mode", EnumValue (Queue::QUEUE_MODE_PACKETS));
168
      Config::SetDefault ("ns3::CoDelQueueDisc::MaxPackets", UintegerValue (queueDiscSize));
171
      Config::SetDefault ("ns3::CoDelQueueDisc::MaxPackets", UintegerValue (queueDiscSize));
169
    }
172
    }
 Lines 177-182    Link Here 
177
  else if (queueDiscType.compare ("PIE") == 0)
180
  else if (queueDiscType.compare ("PIE") == 0)
178
    {
181
    {
179
      handle = tchBottleneck.SetRootQueueDisc ("ns3::PieQueueDisc");
182
      handle = tchBottleneck.SetRootQueueDisc ("ns3::PieQueueDisc");
183
      NS_UNUSED (handle);
180
      Config::SetDefault ("ns3::PieQueueDisc::Mode", EnumValue (Queue::QUEUE_MODE_PACKETS));
184
      Config::SetDefault ("ns3::PieQueueDisc::Mode", EnumValue (Queue::QUEUE_MODE_PACKETS));
181
      Config::SetDefault ("ns3::PieQueueDisc::QueueLimit", UintegerValue (queueDiscSize));
185
      Config::SetDefault ("ns3::PieQueueDisc::QueueLimit", UintegerValue (queueDiscSize));
182
    }
186
    }

Return to bug 2557