FMC filtering based on vlan

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

FMC filtering based on vlan

516 Views
eugmtx
Contributor II

I need to prioritize UDP IPv4 packets with vlan say 4500 over all other ingress packets coming to a port of the Broadcom switch on P2041. I am new to this but have been looking at AN4760.pdf (Frame Manager Configuration Tool Example Configuration and Policy).

Questions:

  1. How to specify vlan = 4500 in the policy file?
  2. Is there an example I can use for the rest of the <distribution> entry to make sure that packets with vlan 4500 have a higher priority than the rest of the packets?

Alternatively, instead of vlan=4500 I can use the PCP field. The packets that I need to prioritize will have PCP=7 while all others will have the default value of zero.

Thank you in advance for any suggestions,

Eugene

Tags (2)
0 Kudos
Reply
6 Replies

430 Views
yipingwang
NXP TechSupport
NXP TechSupport

For vlan=4500:

<key>

<fieldref name ="vlan.tci"/>

                </key>

                <entry>

                        <data>0x4500</data>

                        <mask>0xffff</mask>

                        <queue base="0xd00" count="1"/>

                </entry>

 

for pcp=7:

<key>

<fieldref name ="vlan.tci"/>

                </key>

                <entry>

                        <data>0xe000</data>

                        <mask>0xe000</mask>

                        <queue base="0xd00" count="1"/>

                </entry>

 

0 Kudos
Reply

376 Views
eugmtx
Contributor II

Hi yipingwang,

thank you for your suggestion. When I tried to run fmc on my P2041 I got:

ERR : Invocation of FM_Open for fm0 failed
ERR : Invocation of FM_PCD_Disable for fm0/pcd failed with error code 0x00010028

because there is no /dev/fm0. I am on LSDK-20.04-V5.4-update-290520. Here's my relevant Kconfig selections:

CONFIG_FSL_BMAN_TEST_API=y
CONFIG_FSL_BMAN_TEST=y
CONFIG_FSL_CORENET_CF=y
CONFIG_FSL_CORENET_RCPM=y
CONFIG_FSL_DPAA_CHECKING=y
CONFIG_FSL_DPAA_ETH=y
CONFIG_FSL_DPAA=y
CONFIG_FSL_FMAN=y

Do I need to include other CONFIG_FSL options to have /dev/fm0? Please help if you can.

Thank you,

Eugene

0 Kudos
Reply

348 Views
yipingwang
NXP TechSupport
NXP TechSupport

Thanks.

0 Kudos
Reply

354 Views
yipingwang
NXP TechSupport
NXP TechSupport

Would you please create a new thread to discuss your new problem?

0 Kudos
Reply

476 Views
yipingwang
NXP TechSupport
NXP TechSupport

Investigating

0 Kudos
Reply