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
-
Here, what does /32 imply? Does it mean that we need to match for 32 bits, similar to a subnet mask for IP address?
-
How to interpret the 0b10011010/32 key-mask pair? What match value this key-value pair will check for?
-
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.
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 => 0x00000001Here, what does /32 imply? Does it mean that we need to match for 32 bits, similar to a subnet mask for IP address?
How to interpret the
0b10011010/32key-mask pair? What match value this key-value pair will check for?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.