Skip to content
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

Add hostif traps for p4runtime and gNMI protocols #1436

Merged
merged 9 commits into from
Mar 17, 2022
12 changes: 12 additions & 0 deletions inc/saihostif.h
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,18 @@ typedef enum _sai_hostif_trap_type_t
*/
SAI_HOSTIF_TRAP_TYPE_LDP = 0x00004009,

/**
* @brief GNMI traffic (TCP dst port == 9339) to local router IP address
* (default packet action is drop)
*/
SAI_HOSTIF_TRAP_TYPE_GNMI = 0x0000400a,

/**
* @brief P4RT traffic (TCP dst port == 9559) to local router IP address
* (default packet action is drop)
*/
SAI_HOSTIF_TRAP_TYPE_P4RT = 0x0000400b,

/** Local IP traps custom range start */
SAI_HOSTIF_TRAP_TYPE_LOCAL_IP_CUSTOM_RANGE_BASE = 0x00005000,

Expand Down
2 changes: 2 additions & 0 deletions meta/acronyms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ FPGA - Field Programmable Gate Array
FW - Firmware
GCM - Galois Counter Mode
GMII - Gigabit Media-Independent Interface
GNMI - gRPC Network Management Interface
GPB - Google Protocol Buffers
GRE - Generic Routing Encapsulation
GRPC - GRPC Remote Procedure Call
Expand Down Expand Up @@ -87,6 +88,7 @@ NRZ - Non Return to Zero
NVGRE - Network Virtualization using Generic Routing Encapsulation
OAM - Operations Administration and Maintenance
OUI - Organizationally Unique Identifier
P4RT - Programming Protocol-independent Packet Processors Runtime
PAM4 - Pulse Amplitude Modulation 4-level
PBS - Peak Burst Size
PCI - Peripheral Component Interconnect
Expand Down