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:
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
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>
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
Thanks.
Would you please create a new thread to discuss your new problem?
Investigating