Help: Lx2160 DPAA2 how to control packets classify /distribute to one special frame queue?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help: Lx2160 DPAA2 how to control packets classify /distribute to one special frame queue?

771 Views
Stanleg
Contributor I

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

0 Kudos
2 Replies

732 Views
hemantagrawal
NXP Employee
NXP Employee

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

or , https://source.codeaurora.org/external/qoriq/qoriq-components/dpdk/tree/nxp/dpaa2/README_FLOW_CONTRO...

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. 

 

0 Kudos

764 Views
bpe
NXP Employee
NXP Employee

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

 

0 Kudos