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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,288件の閲覧回数
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

[email protected]

0 件の賞賛
返信
2 返答(返信)

2,249件の閲覧回数
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 件の賞賛
返信

2,281件の閲覧回数
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 件の賞賛
返信