Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Savolainen, Petri (Nokia - FI/Espoo)
> -Original Message- > From: Liron Himi [mailto:lir...@marvell.com] > Sent: Friday, November 10, 2017 1:32 PM > To: Savolainen, Petri (Nokia - FI/Espoo) ; > Bala Manoharan > Cc: lng-odp@lists.linaro.org; Liron Himi > Subject: RE: [EXT] Re: [lng-odp] classifier with pktio in > ODP_PKTIN_

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Liron Himi
This is great. On which version it will be released? 1.16? or later? Liron -Original Message- From: Savolainen, Petri (Nokia - FI/Espoo) [mailto:petri.savolai...@nokia.com] Sent: Friday, November 10, 2017 13:19 To: Liron Himi ; Bala Manoharan Cc: lng-odp@lists.linaro.org Subject: RE: [E

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Liron Himi
Hi Petri, See comments inline Liron -Original Message- From: Savolainen, Petri (Nokia - FI/Espoo) [mailto:petri.savolai...@nokia.com] Sent: Friday, November 10, 2017 13:13 To: Liron Himi ; Bala Manoharan Cc: lng-odp@lists.linaro.org Subject: RE: [EXT] Re: [lng-odp] classifier with pkti

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Liron Himi
Hi, See comments inline Liron -Original Message- From: Bala Manoharan [mailto:bala.manoha...@linaro.org] Sent: Friday, November 10, 2017 13:07 To: Liron Himi Cc: Savolainen, Petri (Nokia - FI/Espoo) ; lng-odp@lists.linaro.org Subject: Re: [EXT] Re: [lng-odp] classifier with pktio in OD

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Savolainen, Petri (Nokia - FI/Espoo)
To mix things, api-next introduces queue hashing *within* a CoS. But also there you use odp_cls_cos_queues() to get the implementation created queue handles, not odp_pktin_event_queue(). -Petri > -Original Message- > From: Savolainen, Petri (Nokia - FI/Espoo) > Sent: Friday, November 1

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Savolainen, Petri (Nokia - FI/Espoo)
odp_pktin_event_queue() is *not* used when classifier is enabled. odp_queue_deq(q) 1) if q has events, return an event 2) if q does not have events, poll packet input * packet input poll finds a packet * classify the packet * enqueue the packet into an event queue * some la

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Bala Manoharan
On 10 November 2017 at 15:52, Liron Himi wrote: > Hi, > > I understand what you are saying, but I don't understand (probably I miss > something here) how classifier is working in PKTIO in a > ODP_PKTIN_MODE_QUEUE mode. > Application create its own queues, associate them to the cos and connect the

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Liron Himi
Hi, I understand what you are saying, but I don't understand (probably I miss something here) how classifier is working in PKTIO in a ODP_PKTIN_MODE_QUEUE mode. Application create its own queues, associate them to the cos and connect them to the classifier. In order to receive packets, applicat

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Bala Manoharan
Comments inline... On 10 November 2017 at 12:01, Liron Himi wrote: > Hi Bala, > > According to the documentation, classifier can be operate with > PKTIN_QUEUE_MODE. > /** Enable classifier > * > * * 0: Classifier is disabled (default) > * * 1: Classifier is

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-10 Thread Savolainen, Petri (Nokia - FI/Espoo)
Subject: Re: [lng-odp] [EXT] Re: classifier with pktio in > ODP_PKTIN_MODE_QUEUE > > Hi Bala, > > According to the documentation, classifier can be operate with > PKTIN_QUEUE_MODE. > /** Enable classifier > * > * * 0: Classifier is disabled (defa

Re: [lng-odp] [EXT] Re: classifier with pktio in ODP_PKTIN_MODE_QUEUE

2017-11-09 Thread Liron Himi
Hi Bala, According to the documentation, classifier can be operate with PKTIN_QUEUE_MODE. /** Enable classifier * * * 0: Classifier is disabled (default) * * 1: Classifier is enabled. Use classifier to direct incoming * packets into pktin event