Help: Lx2160 DPAA2
My intention is to classify the packets , based on different VLANID, the packets can be distributed to enter a specific frame queue (such as 401), and the upper application (like DPDK) can read from the specific queue
I wonder if currently DPAA2 supports this function? If so, are there any similar implementation configuration examples?
Thank you
Regards
Stanleg@earlysci.com
There are two methods for you.
1. Use DPDK flow classification APIs.
Please refer to dpdk flow APIs
https://doc.dpdk.org/guides/prog_guide/flow_classify_lib.html
2. you can use dpdmux to create multiple dpnis and distribute them on vlan id basis. However in this case you will get 1 dpni/queue per VLAN.
Packet steering for DPAA2 Linux interfaces is controlled by ethtool. See
LSDK User Guide, Section 8.3.2.3.4.10 for details. As for DPDK applications, they can
control packet steering by calling DPAA2 API which is described in DPAA2 API Reference Manual
(DPAA2APIRM). Go through Section 1.12 of that document to see what is available.
Grep DPDK source code for the API calls of your interest to get an example.
Best Regards
Platon