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.
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.