Skip to content

key-mask pair in commands.txt file #1

Description

@harshgondaliya

I am new to P4-NetFPGA Workflow and am not able to understand how key-mask is written for TCAM table entries in commands.txt file.

I had a couple of questions:

table_tcam_add_entry lookup_len 0x0 set_len_code 0b10011010/32 => 0x00000001

  1. Here, what does /32 imply? Does it mean that we need to match for 32 bits, similar to a subnet mask for IP address?

  2. How to interpret the 0b10011010/32 key-mask pair? What match value this key-value pair will check for?

  3. Out of all entries, the max length mentioned in mask is 32. Is it possible to go beyond that (ex: /48)?

An explanation to understand this concept of key-mask in a ternary match will be very helpful.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions