This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] TDA4VM: How to adjust ALE classifier/policer partition in ETHFW

Part Number: TDA4VM
Other Parts Discussed in Thread: TDA4VH

Tool/software:

The number of user configurable ALE classifier/policer entries are limited in ETHFW by dividing them in to multiple partitions, how to adjust those partitions?

  • ETHFW has enabled ALE classifier/policer partitions to have higher priority for specific entries. As policer will follow higher match entry has high priority.

    The partitions are as follows:
    Partition-1 is for VEPA (High Priority) at top of policer entries -> 10 entries reserved.
    Parititon-2 is for QOS, Custom Policers by clients -> 20 entries reserved.
    Parititon-3 is for MAC Only Ports -> 10 entries reserved.
    Partition-4 is for general entries > 55

    Note: 

    • CPSW5G/CPSW9G has 96 policer entries.
    • Refer to partition of policers entries from "gEthFw_policeerTablePartSize" from ethfw_api.c file.
    • Partition configuration must be provided from high priority level (CPSW_ALE_POLICER_PARTITION_LEVEL_1) to lowest (CPSW_ALE_POLICER_PARTITION_DEFAULT).

    So, only 55 policers will be allowed. If requested beyond will result in failure of adding policer entry by default.

    Above partitions-1 can be made to 0 for other than J784s4/TDA4VH, as VEPA mode supported only on J784s4.
    Also, If you have only 2 clients then Partition-1 can reduced to 2 or 3 (1 for safe side) in J784s4.
    Also, by default there are no customer policers, you can decrease Partition-2 to 0.
    Also, if you are not enabling MAC only Ports, you can make Partiton-3 also to 0.


    One can modify the policer table partitions after 
    EthFw_initConfigParams() from ETHFW main application file using "aleCfg.policerTablePartSize".

    Note:

    Assuming above customPolicerTablePart is array of custom policer partitions.