Skip to content

Commit

Permalink
Additional Port Interface Types (#1098)
Browse files Browse the repository at this point in the history
* Add additional interface modes and make it flexible to set interface mode for NPU type of switches

* Add MAX type instead of custom range to support extensions
  • Loading branch information
phshaikh committed Jun 25, 2020
1 parent 2947de0 commit 8ff8693
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 16 additions & 2 deletions inc/saiport.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,22 @@ typedef enum _sai_port_interface_type_t

/** Interface type KR4 */
SAI_PORT_INTERFACE_TYPE_KR4,

/** Interface type CAUI */
SAI_PORT_INTERFACE_TYPE_CAUI,

/** Interface type GMII */
SAI_PORT_INTERFACE_TYPE_GMII,

/** Interface type SFI */
SAI_PORT_INTERFACE_TYPE_SFI,

/** Interface type XLAUI */
SAI_PORT_INTERFACE_TYPE_XLAUI,

/** Interface type MAX */
SAI_PORT_INTERFACE_TYPE_MAX,

} sai_port_interface_type_t;

/**
Expand Down Expand Up @@ -1352,8 +1368,6 @@ typedef enum _sai_port_attr_t
/**
* @brief Configure Interface type
*
* Valid when SAI_SWITCH_ATTR_TYPE == SAI_SWITCH_TYPE_PHY
*
* @type sai_port_interface_type_t
* @flags CREATE_AND_SET
* @default SAI_PORT_INTERFACE_TYPE_NONE
Expand Down
4 changes: 4 additions & 0 deletions meta/acronyms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ BFDV6 - Bidirectional Forwarding Detection for IPv6
BGP - Border Gateway Protocol
BOS - Bottom Of Stack
CAM - Content Addressable Memory
CAUI - 100 Gigabit Attachment Unit Interface
CB - Callback
CBS - Committed Burst Size
CCITT - Comite Consultatif International de Telegraphique et Telephonique
Expand Down Expand Up @@ -39,6 +40,7 @@ FDB - Forwarding Data Base
FEC - Forward Error Correction
FPGA - Field Programmable Gate Array
GCM - Galois Counter Mode
GMII - Gigabit Media-Independent Interface
GPB - Google Protocol Buffers
GRE - Generic Routing Encapsulation
GRPC - GRPC Remote Procedure Call
Expand Down Expand Up @@ -94,6 +96,7 @@ SAI - Switch Abstraction Interface
SCI - Secure Channel Identifier
SC - Secure Channel
SDK - Software Development Kit
SFI - SerDes Framer Interface
SFLOW - Sampled Flow
SG - (S,G) Source-specific multicast
SNAT - Source Network Address Translation
Expand Down Expand Up @@ -125,6 +128,7 @@ WCMP - Weighted Cost Multipath
WRED - Weighted Random Early Detection
WWW - World Wide Web
XG - (*,G) Any-source Multicast
XLAUI - 40 Gbps Attachment Unit Interface
XPN - Extended Packet Number
XOFF - Transmitter Off
XON - Transmitter On
Expand Down

0 comments on commit 8ff8693

Please sign in to comment.