SDK 2.0 fmc policer

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

SDK 2.0 fmc policer

736 Views
ysack
Contributor I

I'm using SDK 2.0 fmc on T4240RDB board. 

When I use policer as shown below, I see that all traffic passes through a single CPU core. How can I prevent this situation?

<policer name="policer2">

<algorithm>rfc2698</algorithm>

<color_mode>color_blind</color_mode>

<CIR>12000</CIR>

<EIR>34000</EIR>

<CBS>56000</CBS>

<EBS>78000</EBS>

<unit>packet</unit>

<action condition="on-red" type="drop"/>

 

0 Kudos
Reply
2 Replies

520 Views
ysack
Contributor I
Thank you very much for your reply. When I clicked on the link you gave, I saw the qman_driver.c file. 
Can you help me on how to use this file?
0 Kudos
Reply

672 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to the following explanation.

This is because in DPAA1, each Ethernet interface uses one pool channel across all software portals and also one dedicated channel for each CPU. In Linux Kernel, PCD Frame queues use dedicated channels. You could refer to the section "5. Dedicated and Pool Channels Usage in Linux Kernel" in https://community.nxp.com/docs/DOC-329916 for details.

 

In the multiple flows scenario, after executing FMC policy, one flow will bind to one core.

0 Kudos
Reply