Re: [lng-odp] Apply multiple filters using ODP Classifier API

2015-06-12 Thread Genís Riera Pérez
Hi Make, Bala. For me it's okay to add this discussion as part of the API DOC Classification, because I think sure this would be helpful for all users want to use the API, as well as all beginner developers. Especially point that a PMR match set is activated if all PMR in the set are matched (AND

Re: [lng-odp] Apply multiple filters using ODP Classifier API

2015-06-11 Thread Genís Riera Pérez
Hi Bala, Thank you again for clarify the concepts. Now with odp_pmr_match_t I've solved the problem. You were right about the AND operation in the composite PMR. Sorry for my misunderstanding, and thanks again for your help. Regards, Genís Riera Pérez E-mail: genis.riera.pe...@gmail.com

Re: [lng-odp] Apply multiple filters using ODP Classifier API

2015-06-11 Thread Mike Holmes
Genis, Bala The API_DOC_Classification http://docs.opendataplane.org/master/linux-generic-doxygen-html/group__odp__classification.html#details details section could probably do with this question as part of the description as it is pretty light on how to use the API right now in the description

[lng-odp] Apply multiple filters using ODP Classifier API

2015-06-10 Thread Genís Riera Pérez
Hi, I've used the linux-generic implementation of ODP since few month ago, and I would like to implement a classification system based on multiple filters. My scenario is as follows (arbitrary example, not real values): Imagine that you want classify packets matching the following set of

Re: [lng-odp] Apply multiple filters using ODP Classifier API

2015-06-10 Thread Bala Manoharan
Hi, There is a possibility in classification configuration to attach multiple PMR rules at the pktio level. I believe the above example you have described could be solved using the following rules pmr1 = odp_pmr_create(rule1); pmr2 = odp_pmr_create(rule2); odp_pktio_pmr_match_set_cos(pmr1,

Re: [lng-odp] Apply multiple filters using ODP Classifier API

2015-06-10 Thread Genís Riera Pérez
Hi Bala, First of all, thanks a lot for your response. I think I've explained myself wrong in the previous mail, so I'll try to express myself in a better way. The scanerio I propose has two filter, eahc one composed by a set of PMR. The problem is that I want the packet classified in Queue1 if

Re: [lng-odp] Apply multiple filters using ODP Classifier API

2015-06-10 Thread Bala Manoharan
Hi Genís, Sorry that I had not explained about the second part of your question in the previous mail, The composite pmr (odp_pmr_match_t ) succeeds only if it matches ALL the values in the odp_pmr_set_t it is an AND operation and not an OR operation. The entire set either matches or does not