Hi,
First thanks for Mike, Bill’s information about the classification APIs☺.
But I encountered another problem about the combination of classification,
queue and buffer pool APIs. Appreciate your help in advance.
Consider following classical use case:
Available resource:
Queue A : expected to store packets with dst IP = a.a.a.a,
Queue B : expected to store packets with dst IP = b.b.b.b
Buffer Pool 1 : Buffer Size = 1k, expected to store pakcets with length little
than 1k,
Buffer Pool 2 : Buffer Size = 2k, expected to store pakcets with length little
than 2k but greater than 1k
One pktio.
Expected results:
When pakcet with dst iP a.a.a.a and length <1k is received , buffer for storing
this packet is allocated from Pool 1 and this packet will be stored in Queue A.
When pakcets with dst ip a.a.a.a with 1k <length <2k is received, buffer for
storing this packet is allocated from Pool 2 and this packet will be stored in
Queue A.
Questions:
The APIs below can be used to indicate pktio to store packets with destination
ip = a.a.a.a in Queue A.
But how can I use ODP APIs to indicate pktio to allocate buffer from Pool 1
(NOT Pool 2) when a packet with dst ip = a.a.a.a and length < 1k Bytes is
received?
cos_id=odp_cos_create("queue for dst ip a.a.a.a");
odp_cos_set_queue(cos_id, Queue_A);
pmr_id=odp_pmr_create_match(dst ip, a.a.a.a, 0xffffff,4);
odp_pktio_pmr_cos(pmr_id, pktio,cos_id);
BR / Jianhua
From: Mike Holmes [mailto:[email protected]]
Sent: 2015年3月26日 19:34
To: Zhujianhua
Cc: [email protected]
Subject: Re: [lng-odp] NO ODP API for Packet classification and Packet Shaping
Hi Jianhua
Egress API's are in progress currently, we expect to roll out initial proposals
into the api-next branch over the next few weeks, for classification the
existing API covers these features
http://docs.opendataplane.org/linux-generic-doxygen-html/group__odp__classification.html
If you have use cases that the API could be extended to cover patches or RFCs
are welcome on the list.
Also note that we have a public call once a week
http://www.opendataplane.org/meetings/ if you would like to discuss your ideas
there.
As an employee of a member company you can also become more deeply attached to
the daily discussion if that is valuable to you.
Mike
On 26 March 2015 at 07:13, Zhujianhua
<[email protected]<mailto:[email protected]>> wrote:
Hi,
ODP APIs are attractive and it seems very useful for data communication
application.
But unfortunately I cannot find any API
(http://docs.opendataplane.org/html/files.html) for:
Packet classification and Packet Shaping.
Are these APIs not needed from ODP’s point of view or will be defined later?
Thanks for any response.
Best Regards
Jianhua Zhu
_______________________________________________
lng-odp mailing list
[email protected]<mailto:[email protected]>
http://lists.linaro.org/mailman/listinfo/lng-odp
--
Mike Holmes
Technical Manager - Linaro Networking Group
Linaro.org<http://www.linaro.org/> │ Open source software for ARM SoCs
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp