Hi,

The above described use-case is implementable with the existing ODP
classification framework.

Few points to take note for implementing this use-case
* Each CoS has an associated pool from which packets arriving at this CoS
is allocated.
* There is an existing PMR rule ODP_PMR_LEN which selects packets based on
the total length of received packets.

example:
An application can create different PMR rules with term ODP_PMR_LEN each
associated with different CoSs. When packets of different length arrive at
the pktio interface they will be associated to their respective CoS based
on the PMR rules (in this case ODP_PMR_LEN). Since each CoS has an
associated pool then these packets which have been differentiated based on
their length will be allocated on the pool associated with the CoS.

Hope this Helps,
Bala

On 29 February 2016 at 15:58, huanggaoyang <[email protected]> wrote:

> Make the packet IO interface support multi packet pools with different
> buffer size.
> When receiving packets, the pktio will alloc packets from the most
> suitable pool via packet len.
>
> It aims to save the memory in case that the Memory Resource is limited,
> and the pktio
> should deal with packets in different length.
>
> huanggaoyang (1):
>   linux-generic:pktio:add an interface to support multi pool
>
>  include/odp/api/packet_io.h                        | 15 +++++
>  .../linux-generic/include/odp_packet_io_internal.h |  1 +
>  platform/linux-generic/include/odp_packet_tap.h    |  5 +-
>  platform/linux-generic/odp_packet_io.c             | 16 +++++
>  platform/linux-generic/pktio/tap.c                 | 70
> ++++++++++++++++++++--
>  test/validation/pktio/pktio.c                      | 63
> ++++++++++++++++++-
>  test/validation/pktio/pktio.h                      |  1 +
>  7 files changed, 163 insertions(+), 8 deletions(-)
>
> --
> 1.9.1
>
>
> _______________________________________________
> lng-odp mailing list
> [email protected]
> https://lists.linaro.org/mailman/listinfo/lng-odp
>
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to