NetFPGA / P4-NetFPGA-public

P4-NetFPGA wiki
103 stars 31 forks source link

CLI allows adding more than 32 TCAM entries but Workflow steps doesn't? #45

Open harshgondaliya opened 4 years ago

harshgondaliya commented 4 years ago

Dear All,

For my experiment, I have declared a TCAM table: Key: { ipSrcAddr, ipDstAddr} Action Data: {16-bit key, EthernetAddr, 8-bit port}

When I run the Workflow steps, I see two-three conflicting observations. If someone can help me understand the reason behind this, it will be very helpful for me.

  1. If the index of matching TCAM table entry for the expected packet declared in gen_testdata.py is at position >5 then the vivado_sim.bash step fails.
  2. For more than 32 TCAM table entries, SUME simulation step ./tools/scripts/nf_test.py sim --major switch --minor default fails.
  3. However, while I add TCAM entries via P4_SWITCH_CLI.py, it allows me to add more than 32 TCAM table entries. Why is this so?

Thanks.