Re: [lng-odp] Traffic Manager no applying policies?

2017-05-03 Thread Bala Manoharan
On 3 May 2017 at 18:29, Oriol Arcas wrote: > Hi, I use a simple: > > int res = odp_tm_enq(q, pkt); > > Our app chooses the queue to which enqueue the packets. Mostly it's C++ > wrappers around ODP objects. > > The packets have different sizes, but they belong to the

Re: [lng-odp] Traffic Manager no applying policies?

2017-05-02 Thread Bala Manoharan
Can you please share the code as to how are you enqueing packets to odp_tm_queue() are you creating packets of same size? I would like to know how these packets are enqueued to these 3 queues? Regards, Bala On 2 May 2017 at 18:50, Oriol Arcas wrote: > Bill, Barry,

Re: [lng-odp] Traffic Manager no applying policies?

2017-05-02 Thread Oriol Arcas
Bill, Barry, Bala, I've been thinking about this problem, and maybe it's caused by the mismatch in throughput between the PKTIOs and the CPU for high speed BW (eg, localhost connections). That is, both the PKTIN and the PKTOUT are faster than the TM thread. This would lead to a situation where

Re: [lng-odp] Traffic Manager no applying policies?

2017-05-01 Thread Bill Fischofer
+cc Barry, who is the expert in this area, for his thoughts. Do you have the complete list of TM config calls you issue to set this up? I know Bala (+cc) was looking to propose a "streamlined" config API for TM since this is can be tricky as there are a number of "knobs" the TM provides to control

[lng-odp] Traffic Manager no applying policies?

2017-04-28 Thread Oriol Arcas
Hello, I'm trying to use the Traffic Manager to implement priorities and weights. But it is not applying these policies. I have observed from the traces that the TM is not queuing the packets, but directly ouputing them. For instance, see this final stats from the TM: odp_tm_stats_print -

Re: [lng-odp] Traffic Manager

2016-12-06 Thread Nicolas Morey-Chaisemartin
Le 12/06/2016 à 01:27 PM, Mike Holmes a écrit : > > > On 6 December 2016 at 03:59, Nicolas Morey-Chaisemartin > wrote: > > Hi all, > > > I'm currently moving odp-mppa to monarch_lts (we ware based on 1.6 until > now). > I was wondering

Re: [lng-odp] Traffic Manager

2016-12-06 Thread Mike Holmes
On 6 December 2016 at 03:59, Nicolas Morey-Chaisemartin wrote: > Hi all, > > > I'm currently moving odp-mppa to monarch_lts (we ware based on 1.6 until > now). > I was wondering if the implementation MUST support the TM API. > ODP has no intentionally optional APIs becasue

[lng-odp] Traffic Manager

2016-12-06 Thread Nicolas Morey-Chaisemartin
Hi all, I'm currently moving odp-mppa to monarch_lts (we ware based on 1.6 until now). I was wondering if the implementation MUST support the TM API. The traffic_mngr.h is a bit hazy on that point. It looks to me as if odp_tm_capabilities returns 0, it announces that the TM API is not