From 354387d047c80b10fd16929800a614b51dc88cc1 Mon Sep 17 00:00:00 2001 From: Mike Beresford Date: Fri, 11 Mar 2022 09:58:58 -0800 Subject: [PATCH] Add gNMI and p4rt hostif trap types. Add IANA-reserved ports for gNMI and p4rt: https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=gnmi https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=p4runtime Signed-off-by: Mike Beresford --- inc/saihostif.h | 12 ++++++++++++ meta/acronyms.txt | 2 ++ 2 files changed, 14 insertions(+) diff --git a/inc/saihostif.h b/inc/saihostif.h index c57a4e57c..152e7879c 100644 --- a/inc/saihostif.h +++ b/inc/saihostif.h @@ -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, diff --git a/meta/acronyms.txt b/meta/acronyms.txt index b5d19a73b..cf6027b7d 100644 --- a/meta/acronyms.txt +++ b/meta/acronyms.txt @@ -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 @@ -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