-
Notifications
You must be signed in to change notification settings - Fork 509
Hostif Trap for route to interface (subnet route) #2037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Fixes opencomputeproject#2037 Signed-off-by: rck-innovium <[email protected]>
Fixes opencomputeproject#2037 Signed-off-by: rck-innovium <[email protected]>
Fixes opencomputeproject#2037 Signed-off-by: rck-innovium <[email protected]>
Thanks for raising this issue. I agree that the current SAI trap types are insufficient for handling subnet routes, particularly when packets need to be trapped to the CPU. Summary of the Issue: Proposed Solution: Next Steps: This addition will greatly enhance the flexibility and control over packet handling in scenarios involving subnet routes. |
Fixes #2037 Signed-off-by: rck-innovium <[email protected]>
Fixes opencomputeproject#2037 Signed-off-by: rck-innovium <[email protected]>
Problem statement
There are cases where routes trap packets to CPU other than IP2ME routes.
Defining a trap type allows the SAI application to:
Today, SAI has only defined a trap type for IP2ME packets (SAI_HOSTIF_TRAP_TYPE_IP2ME).
The below scenarios need the route to point the packets to CPU but we do not have a trap type defined.
When an IP address and subnet, say 10.1.1.1/24 is on a RIF and a neighbor 10.1.1.2 is learnt, the following set of routes are needed:
Related SAI constructs:
SAI has a user defined trap instead of a regular trap defined for neighbor.
Why this is not sufficient?
A user defined trap by definition can be attached to only the objects of that type. So a user defined trap of type SAI_HOSTIF_USER_DEFINED_TRAP_TYPE_NEIGHBOR can be attached only to a Neighbor object and not to a nexthop/route object.
What is required?
Generated by neighbor table entry hit with action trap/log, or by neighbor table miss for a router interface that has SAI_ROUTER_INTERFACE_ATTR_NEIGHBOR_MISS_PACKET_ACTION set to trap.
The text was updated successfully, but these errors were encountered: