sonic-swss
sonic-swss copied to clipboard
[copp] Add CoPP trap for DHCP L2 broadcasts
What I did This PR adds support for the DHCP_L2 trap types.
Why I did it It appears that these traps are needed on Innovium SAI in order for DHCP broadcast packets to be trapped. Out of the box, the DHCP Relay doesn't do anything (since DHCP broadcasts don't appear on the CPU), but with these extra traps applied it works.
How I verified it
- Set up test switch using Innovium SAI (e.g. Supermicro T7132S)
- Run
tcpdump
on switch to watch for DHCP packets - Run DHCP client on a connected server
- Observe that no packets are received
- Apply patch, enable L2 traps
- Re-run
tcpdump
and DHCP client - Observe that packets are received and relayed, and that the client receives an answer
Details if related