Hi,
Thank you for your explaining. But I can't totally agree with you.
I don't know how does the ODP_PMR_LEN support range match.
I mean if I want the packets with different lenth alloced from Pool
No1~4 like this:
lenth alloc from
(0, 200) Pool-No.1
[200, 800) Pool-No.2
[800, 1600) Pool-No.3
other Pool-No.4
How can I create <PMR CoS> pair to implement this?
在 2016/3/1 23:27, Bala Manoharan 写道:
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]
<mailto:[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] <mailto:[email protected]>
https://lists.linaro.org/mailman/listinfo/lng-odp
_______________________________________________
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