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.

TDA4AH-Q1: Precisions about Policer/Classifier couple

Part Number: TDA4AH-Q1

Tool/software:

Hi TI,

When looking at the CPSW0 registers for policers, I noticed that there seems to be 2 tables : one for policing entries and one for classifiers that allows packet steering to particular thread IDs.

Furthermore, the CSL functions to set policing entries put the same index in both tables.

Questions are the following:

  • Can I independently write into the classifiers table without creating a corresponding policing entry ?
  • If i created a classifier entry N for a corresponding policing entry N, is it possible to use the classifier entry N in another policing entry N+M ?
  • Essentially, can a same classifier be used for different policing entries or will I have to create duplicate classifiers for different policing entries ?

Thanks in advance for your time and answer.

Best regards

  • Hi,

    Can I independently write into the classifiers table without creating a corresponding policing entry ?

    No.

    If i created a classifier entry N for a corresponding policing entry N, is it possible to use the classifier entry N in another policing entry N+M ?

    No, these are one-to-one maps. 
    Based on the poclier entry match, the corresponding flow ID will be used while transferring the packet from the Host Port to the Internal cores.

    Essentially, can a same classifier be used for different policing entries or will I have to create duplicate classifiers for different policing entries ?

    It will not work as expected, as per the highest police index match the packet will be forwarded to the corresponding flow.

    Best Regards,
    Sudheer