opencomputeproject / SAI

Switch Abstraction Interface
Other
480 stars 475 forks source link

UDT attributes for RIF loopback and Neighbor table miss #2067

Closed rck-innovium closed 2 months ago

rck-innovium commented 2 months ago

Problem

When SAI_ROUTER_INTERFACE_ATTR_LOOPBACK_PACKET_ACTION is SAI_PACKET_ACTION_TRAP, the user has no control on which CPU queue the packets should go to. They can also not configure the trap group policer.

Solution

Allow user to set the User Defined Traps to control packets sent to CPU when RIF loopback action or neighbor table miss has Trap action. This is done by adding two new RIF attributes of type User Defined Trap.