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,279 次查看
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,240 次查看
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,272 次查看
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 项奖励
回复