Re: [lng-odp] [PATCH] linux-generic: pktio: enable classifier only when needed

2015-09-28 Thread Savolainen, Petri (Nokia - FI/Espoo)
ject: Re: [lng-odp] [PATCH] linux-generic: pktio: enable classifier > only when needed > > In this case the packet will not be dispatched to the default CoS in > the scenario when the application configures only the default CoS and > not the PMRs. > Is this the expected behaviour? in c

Re: [lng-odp] [PATCH] linux-generic: pktio: enable classifier only when needed

2015-09-18 Thread Bill Fischofer
Good catch. The classifier can be completely bypassed only if there are no classification rules (default or PMRs) in effect. Presumably the classifier itself can contain fastpath processing if only a default CoS is in effect. On Fri, Sep 18, 2015 at 5:25 AM, Bala Manoharan wrote: > In this cas

Re: [lng-odp] [PATCH] linux-generic: pktio: enable classifier only when needed

2015-09-18 Thread Bala Manoharan
In this case the packet will not be dispatched to the default CoS in the scenario when the application configures only the default CoS and not the PMRs. Is this the expected behaviour? in case not then pktio_cls_enabled_set() should be configured in the odp_pktio_default_cos_set() function also.

[lng-odp] [PATCH] linux-generic: pktio: enable classifier only when needed

2015-09-18 Thread Petri Savolainen
Skip packet_classifier function as long as there's no pmr set for an pktio interface. Signed-off-by: Petri Savolainen --- platform/linux-generic/include/odp_packet_io_internal.h | 10 ++ platform/linux-generic/odp_classification.c | 2 ++ platform/linux-generic/odp_packet_io