SAI Metadata
|
Classes | |
struct | _sai_hostif_api_t |
Hostif methods table retrieved with sai_api_query() More... | |
Macros | |
#define | SAI_HOSTIF_NAME_SIZE 16 |
Defines maximum host interface name. | |
#define | SAI_HOSTIF_GENETLINK_MCGRP_NAME_SIZE 16 |
Defines maximum length of generic netlink multicast group name. | |
Typedefs | |
typedef enum _sai_hostif_trap_group_attr_t | sai_hostif_trap_group_attr_t |
Host interface trap group attributes. | |
typedef sai_status_t(* | sai_create_hostif_trap_group_fn) (_Out_ sai_object_id_t *hostif_trap_group_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface trap group. | |
typedef sai_status_t(* | sai_remove_hostif_trap_group_fn) (_In_ sai_object_id_t hostif_trap_group_id) |
Remove host interface trap group. | |
typedef sai_status_t(* | sai_set_hostif_trap_group_attribute_fn) (_In_ sai_object_id_t hostif_trap_group_id, _In_ const sai_attribute_t *attr) |
Set host interface trap group attribute value. | |
typedef sai_status_t(* | sai_get_hostif_trap_group_attribute_fn) (_In_ sai_object_id_t hostif_trap_group_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get host interface trap group attribute value. | |
typedef enum _sai_hostif_trap_type_t | sai_hostif_trap_type_t |
Host interface trap type. | |
typedef enum _sai_hostif_trap_attr_t | sai_hostif_trap_attr_t |
Host interface trap attributes. | |
typedef sai_status_t(* | sai_create_hostif_trap_fn) (_Out_ sai_object_id_t *hostif_trap_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface trap. | |
typedef sai_status_t(* | sai_remove_hostif_trap_fn) (_In_ sai_object_id_t hostif_trap_id) |
Remove host interface trap. | |
typedef sai_status_t(* | sai_set_hostif_trap_attribute_fn) (_In_ sai_object_id_t hostif_trap_id, _In_ const sai_attribute_t *attr) |
Set trap attribute value. | |
typedef sai_status_t(* | sai_get_hostif_trap_attribute_fn) (_In_ sai_object_id_t hostif_trap_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get trap attribute value. | |
typedef enum _sai_hostif_user_defined_trap_type_t | sai_hostif_user_defined_trap_type_t |
Host interface user defined trap type. | |
typedef enum _sai_hostif_user_defined_trap_attr_t | sai_hostif_user_defined_trap_attr_t |
Host interface user defined trap attributes. | |
typedef sai_status_t(* | sai_create_hostif_user_defined_trap_fn) (_Out_ sai_object_id_t *hostif_user_defined_trap_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface user defined trap. | |
typedef sai_status_t(* | sai_remove_hostif_user_defined_trap_fn) (_In_ sai_object_id_t hostif_user_defined_trap_id) |
Remove host interface user defined trap. | |
typedef sai_status_t(* | sai_set_hostif_user_defined_trap_attribute_fn) (_In_ sai_object_id_t hostif_user_defined_trap_id, _In_ const sai_attribute_t *attr) |
Set user defined trap attribute value. | |
typedef sai_status_t(* | sai_get_hostif_user_defined_trap_attribute_fn) (_In_ sai_object_id_t hostif_user_defined_trap_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get user defined trap attribute value. | |
typedef enum _sai_hostif_type_t | sai_hostif_type_t |
Attribute data for SAI_HOSTIF_ATTR_TYPE. | |
typedef enum _sai_hostif_vlan_tag_t | sai_hostif_vlan_tag_t |
Attribute data for SAI_HOSTIF_ATTR_VLAN_TAG. | |
typedef enum _sai_hostif_attr_t | sai_hostif_attr_t |
Host interface attribute IDs. | |
typedef sai_status_t(* | sai_create_hostif_fn) (_Out_ sai_object_id_t *hostif_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface. | |
typedef sai_status_t(* | sai_remove_hostif_fn) (_In_ sai_object_id_t hostif_id) |
Remove host interface. | |
typedef sai_status_t(* | sai_set_hostif_attribute_fn) (_In_ sai_object_id_t hostif_id, _In_ const sai_attribute_t *attr) |
Set host interface attribute. | |
typedef sai_status_t(* | sai_get_hostif_attribute_fn) (_In_ sai_object_id_t hostif_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get host interface attribute. | |
typedef enum _sai_hostif_table_entry_type_t | sai_hostif_table_entry_type_t |
Attribute data for SAI_HOSTIF_TABLE_ENTRY_ATTR_TYPE. | |
typedef enum _sai_hostif_table_entry_channel_type_t | sai_hostif_table_entry_channel_type_t |
Attribute data for SAI_HOSTIF_TABLE_ENTRY_ATTR_CHANNEL_TYPE. | |
typedef enum _sai_hostif_table_entry_attr_t | sai_hostif_table_entry_attr_t |
Host interface table entry attribute IDs. | |
typedef sai_status_t(* | sai_create_hostif_table_entry_fn) (_Out_ sai_object_id_t *hostif_table_entry_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface table entry. | |
typedef sai_status_t(* | sai_remove_hostif_table_entry_fn) (_In_ sai_object_id_t hostif_table_entry_id) |
Remove host interface table entry. | |
typedef sai_status_t(* | sai_set_hostif_table_entry_attribute_fn) (_In_ sai_object_id_t hostif_table_entry_id, _In_ const sai_attribute_t *attr) |
Set host interface table entry attribute. | |
typedef sai_status_t(* | sai_get_hostif_table_entry_attribute_fn) (_In_ sai_object_id_t hostif_table_entry_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get host interface table entry attribute. | |
typedef enum _sai_hostif_tx_type_t | sai_hostif_tx_type_t |
Host interface TX type. | |
typedef enum _sai_hostif_packet_attr_t | sai_hostif_packet_attr_t |
Host interface packet attributes. | |
typedef sai_status_t(* | sai_recv_hostif_packet_fn) (_In_ sai_object_id_t hostif_id, _Inout_ sai_size_t *buffer_size, _Out_ void *buffer, _Inout_ uint32_t *attr_count, _Out_ sai_attribute_t *attr_list) |
Hostif receive function. | |
typedef sai_status_t(* | sai_send_hostif_packet_fn) (_In_ sai_object_id_t hostif_id, _In_ sai_size_t buffer_size, _In_ const void *buffer, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Hostif send function. | |
typedef sai_status_t(* | sai_allocate_hostif_packet_fn) (_In_ sai_object_id_t hostif_id, _In_ sai_size_t buffer_size, _Out_ void **buffer, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Hostif allocate function. | |
typedef sai_status_t(* | sai_free_hostif_packet_fn) (_In_ sai_object_id_t hostif_id, _Inout_ void *buffer) |
Hostif free function. | |
typedef void(* | sai_packet_event_notification_fn) (_In_ sai_object_id_t switch_id, _In_ sai_size_t buffer_size, _In_ const void *buffer, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Hostif receive callback. | |
typedef struct _sai_hostif_api_t | sai_hostif_api_t |
Hostif methods table retrieved with sai_api_query() | |
#define SAI_HOSTIF_GENETLINK_MCGRP_NAME_SIZE 16 |
Defines maximum length of generic netlink multicast group name.
Definition at line 51 of file saihostif.h.
#define SAI_HOSTIF_NAME_SIZE 16 |
Defines maximum host interface name.
Definition at line 46 of file saihostif.h.
typedef sai_status_t(* sai_allocate_hostif_packet_fn) (_In_ sai_object_id_t hostif_id, _In_ sai_size_t buffer_size, _Out_ void **buffer, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Hostif allocate function.
[in] | hostif_id | Host interface id. When sending through FD channel, fill SAI_OBJECT_TYPE_HOST_INTERFACE object, of type SAI_HOSTIF_TYPE_FD. When sending through CB channel, fill Switch Object ID, SAI_OBJECT_TYPE_SWITCH. On sending such packets (say via the sai_send_hostif_packet_fn) application should set SAI_HOSTIF_PACKET_ATTR_ZERO_COPY_TX attribute to true |
[in] | buffer_size | Packet size in bytes |
[out] | buffer | Pointer to Packet buffer |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
Definition at line 1382 of file saihostif.h.
typedef sai_status_t(* sai_create_hostif_fn) (_Out_ sai_object_id_t *hostif_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface.
[out] | hostif_id | Host interface id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
Definition at line 978 of file saihostif.h.
typedef sai_status_t(* sai_create_hostif_table_entry_fn) (_Out_ sai_object_id_t *hostif_table_entry_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface table entry.
[out] | hostif_table_entry_id | Host interface table entry |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
Definition at line 1150 of file saihostif.h.
typedef sai_status_t(* sai_create_hostif_trap_fn) (_Out_ sai_object_id_t *hostif_trap_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface trap.
[out] | hostif_trap_id | Host interface trap id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
Definition at line 628 of file saihostif.h.
typedef sai_status_t(* sai_create_hostif_trap_group_fn) (_Out_ sai_object_id_t *hostif_trap_group_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface trap group.
[out] | hostif_trap_group_id | Host interface trap group id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
Definition at line 124 of file saihostif.h.
typedef sai_status_t(* sai_create_hostif_user_defined_trap_fn) (_Out_ sai_object_id_t *hostif_user_defined_trap_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Create host interface user defined trap.
[out] | hostif_user_defined_trap_id | Host interface user defined trap id |
[in] | switch_id | Switch object id |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
Definition at line 778 of file saihostif.h.
typedef sai_status_t(* sai_free_hostif_packet_fn) (_In_ sai_object_id_t hostif_id, _Inout_ void *buffer) |
Hostif free function.
[in] | hostif_id | Host interface id. When sending through FD channel, fill SAI_OBJECT_TYPE_HOST_INTERFACE object, of type SAI_HOSTIF_TYPE_FD. When sending through CB channel, fill Switch Object ID, SAI_OBJECT_TYPE_SWITCH. |
[in,out] | buffer | Packet buffer |
Definition at line 1399 of file saihostif.h.
typedef sai_status_t(* sai_get_hostif_attribute_fn) (_In_ sai_object_id_t hostif_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get host interface attribute.
[in] | hostif_id | Host interface id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
Definition at line 1015 of file saihostif.h.
typedef sai_status_t(* sai_get_hostif_table_entry_attribute_fn) (_In_ sai_object_id_t hostif_table_entry_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get host interface table entry attribute.
[in] | hostif_table_entry_id | Host interface table entry |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
Definition at line 1187 of file saihostif.h.
typedef sai_status_t(* sai_get_hostif_trap_attribute_fn) (_In_ sai_object_id_t hostif_trap_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get trap attribute value.
[in] | hostif_trap_id | Host interface trap id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
Definition at line 665 of file saihostif.h.
typedef sai_status_t(* sai_get_hostif_trap_group_attribute_fn) (_In_ sai_object_id_t hostif_trap_group_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get host interface trap group attribute value.
[in] | hostif_trap_group_id | Host interface trap group id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
Definition at line 161 of file saihostif.h.
typedef sai_status_t(* sai_get_hostif_user_defined_trap_attribute_fn) (_In_ sai_object_id_t hostif_user_defined_trap_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list) |
Get user defined trap attribute value.
[in] | hostif_user_defined_trap_id | Host interface user defined trap id |
[in] | attr_count | Number of attributes |
[in,out] | attr_list | Array of attributes |
Definition at line 815 of file saihostif.h.
typedef enum _sai_hostif_trap_type_t sai_hostif_trap_type_t |
Host interface trap type.
Host interface user defined trap type.
User defined traps action is controlled by the referencing object. For example, ACL entry with packet action trap and user trap object ID
typedef void(* sai_packet_event_notification_fn) (_In_ sai_object_id_t switch_id, _In_ sai_size_t buffer_size, _In_ const void *buffer, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Hostif receive callback.
[in] | switch_id | Switch Object ID |
[in] | buffer_size | Actual packet size in bytes |
[in] | buffer | Packet buffer |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
Definition at line 1417 of file saihostif.h.
typedef sai_status_t(* sai_recv_hostif_packet_fn) (_In_ sai_object_id_t hostif_id, _Inout_ sai_size_t *buffer_size, _Out_ void *buffer, _Inout_ uint32_t *attr_count, _Out_ sai_attribute_t *attr_list) |
Hostif receive function.
[in] | hostif_id | Host interface id |
[in,out] | buffer_size | Allocated buffer size [in], Actual packet size in bytes [out] |
[out] | buffer | Packet buffer |
[in,out] | attr_count | Allocated list size [in], Number of attributes [out] |
[out] | attr_list | Array of attributes |
Definition at line 1340 of file saihostif.h.
typedef sai_status_t(* sai_remove_hostif_fn) (_In_ sai_object_id_t hostif_id) |
Remove host interface.
[in] | hostif_id | Host interface id |
Definition at line 991 of file saihostif.h.
typedef sai_status_t(* sai_remove_hostif_table_entry_fn) (_In_ sai_object_id_t hostif_table_entry_id) |
Remove host interface table entry.
[in] | hostif_table_entry_id | Host interface table entry |
Definition at line 1163 of file saihostif.h.
typedef sai_status_t(* sai_remove_hostif_trap_fn) (_In_ sai_object_id_t hostif_trap_id) |
Remove host interface trap.
[in] | hostif_trap_id | Host interface trap id |
Definition at line 641 of file saihostif.h.
typedef sai_status_t(* sai_remove_hostif_trap_group_fn) (_In_ sai_object_id_t hostif_trap_group_id) |
Remove host interface trap group.
[in] | hostif_trap_group_id | Host interface trap group id |
Definition at line 137 of file saihostif.h.
typedef sai_status_t(* sai_remove_hostif_user_defined_trap_fn) (_In_ sai_object_id_t hostif_user_defined_trap_id) |
Remove host interface user defined trap.
[in] | hostif_user_defined_trap_id | Host interface user defined trap id |
Definition at line 791 of file saihostif.h.
typedef sai_status_t(* sai_send_hostif_packet_fn) (_In_ sai_object_id_t hostif_id, _In_ sai_size_t buffer_size, _In_ const void *buffer, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list) |
Hostif send function.
[in] | hostif_id | Host interface id. When sending through FD channel, fill SAI_OBJECT_TYPE_HOST_INTERFACE object, of type SAI_HOSTIF_TYPE_FD. When sending through CB channel, fill Switch Object ID, SAI_OBJECT_TYPE_SWITCH. |
[in] | buffer_size | Packet size in bytes |
[in] | buffer | Packet buffer |
[in] | attr_count | Number of attributes |
[in] | attr_list | Array of attributes |
Definition at line 1360 of file saihostif.h.
typedef sai_status_t(* sai_set_hostif_attribute_fn) (_In_ sai_object_id_t hostif_id, _In_ const sai_attribute_t *attr) |
Set host interface attribute.
[in] | hostif_id | Host interface id |
[in] | attr | Attribute |
Definition at line 1002 of file saihostif.h.
typedef sai_status_t(* sai_set_hostif_table_entry_attribute_fn) (_In_ sai_object_id_t hostif_table_entry_id, _In_ const sai_attribute_t *attr) |
Set host interface table entry attribute.
[in] | hostif_table_entry_id | Host interface table entry |
[in] | attr | Attribute |
Definition at line 1174 of file saihostif.h.
typedef sai_status_t(* sai_set_hostif_trap_attribute_fn) (_In_ sai_object_id_t hostif_trap_id, _In_ const sai_attribute_t *attr) |
Set trap attribute value.
[in] | hostif_trap_id | Host interface trap id |
[in] | attr | Attribute |
Definition at line 652 of file saihostif.h.
typedef sai_status_t(* sai_set_hostif_trap_group_attribute_fn) (_In_ sai_object_id_t hostif_trap_group_id, _In_ const sai_attribute_t *attr) |
Set host interface trap group attribute value.
[in] | hostif_trap_group_id | Host interface trap group id |
[in] | attr | Attribute |
Definition at line 148 of file saihostif.h.
typedef sai_status_t(* sai_set_hostif_user_defined_trap_attribute_fn) (_In_ sai_object_id_t hostif_user_defined_trap_id, _In_ const sai_attribute_t *attr) |
Set user defined trap attribute value.
[in] | hostif_user_defined_trap_id | Host interface user defined trap id |
[in] | attr | Attribute |
Definition at line 802 of file saihostif.h.
enum _sai_hostif_attr_t |
Host interface attribute IDs.
Definition at line 870 of file saihostif.h.
Host interface packet attributes.
Definition at line 1214 of file saihostif.h.
Host interface table entry attribute IDs.
Definition at line 1070 of file saihostif.h.
Attribute data for SAI_HOSTIF_TABLE_ENTRY_ATTR_CHANNEL_TYPE.
Definition at line 1045 of file saihostif.h.
Attribute data for SAI_HOSTIF_TABLE_ENTRY_ATTR_TYPE.
Definition at line 1023 of file saihostif.h.
Host interface trap attributes.
Enumerator | |
---|---|
SAI_HOSTIF_TRAP_ATTR_START | Start of attributes. |
SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE | Host interface trap type.
|
SAI_HOSTIF_TRAP_ATTR_PACKET_ACTION | Trap action.
|
SAI_HOSTIF_TRAP_ATTR_TRAP_PRIORITY | Trap priority. This is equivalent to ACL entry priority SAI_ACL_ENTRY_ATTR_PRIORITY.
|
SAI_HOSTIF_TRAP_ATTR_EXCLUDE_PORT_LIST | List of SAI ports to be excluded (disabled) from the trap generation.
|
SAI_HOSTIF_TRAP_ATTR_TRAP_GROUP | Trap group ID for the trap.
|
SAI_HOSTIF_TRAP_ATTR_MIRROR_SESSION | Mirror session for the trap.
|
SAI_HOSTIF_TRAP_ATTR_COUNTER_ID | Attach a counter. When it is empty, then packet hits won't be counted
|
SAI_HOSTIF_TRAP_ATTR_END | End of attributes. |
SAI_HOSTIF_TRAP_ATTR_CUSTOM_RANGE_START | Custom range start |
SAI_HOSTIF_TRAP_ATTR_CUSTOM_RANGE_END | Custom range end |
Definition at line 525 of file saihostif.h.
Host interface trap group attributes.
Definition at line 56 of file saihostif.h.
Host interface trap type.
Enumerator | |
---|---|
SAI_HOSTIF_TRAP_TYPE_START | Start of trap types. |
SAI_HOSTIF_TRAP_TYPE_STP | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_LACP | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_EAPOL | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_LLDP | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_PVRST | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_IGMP_TYPE_QUERY | Default action is forward |
SAI_HOSTIF_TRAP_TYPE_IGMP_TYPE_LEAVE | Default action is forward |
SAI_HOSTIF_TRAP_TYPE_IGMP_TYPE_V1_REPORT | Default action is forward |
SAI_HOSTIF_TRAP_TYPE_IGMP_TYPE_V2_REPORT | Default action is forward |
SAI_HOSTIF_TRAP_TYPE_IGMP_TYPE_V3_REPORT | Default action is forward |
SAI_HOSTIF_TRAP_TYPE_SAMPLEPACKET | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_UDLD | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_CDP | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_VTP | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_DTP | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_PAGP | Default action is drop |
SAI_HOSTIF_TRAP_TYPE_PTP | PTP traffic (EtherType = 0x88F7 or UDP dst port == 319 or UDP dst port == 320) (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_PTP_TX_EVENT | PTP packet sent from CPU with updated TX timestamp (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_DHCP_L2 | DHCP traffic (UDP ports 67, 68) (default packet action is forward) |
SAI_HOSTIF_TRAP_TYPE_DHCPV6_L2 | DHCPV6 traffic (UDP ports 546, 547) (default packet action is forward) |
SAI_HOSTIF_TRAP_TYPE_SWITCH_CUSTOM_RANGE_BASE | Switch traps custom range start |
SAI_HOSTIF_TRAP_TYPE_ARP_REQUEST | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_ARP_RESPONSE | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_DHCP | DHCP traffic (UDP ports 67, 68), either L3 broadcast or unicast to local router IP address (default packet action is forward) |
SAI_HOSTIF_TRAP_TYPE_OSPF | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_PIM | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_VRRP | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_DHCPV6 | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_OSPFV6 | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_VRRPV6 | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_IPV6_NEIGHBOR_DISCOVERY | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_IPV6_MLD_V1_V2 | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_IPV6_MLD_V1_REPORT | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_IPV6_MLD_V1_DONE | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_MLD_V2_REPORT | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_UNKNOWN_L3_MULTICAST | Unknown L3 multicast packets (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_SNAT_MISS | Source NAT miss packets (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_DNAT_MISS | Destination NAT miss packets (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_NAT_HAIRPIN | NAT hairpin packets (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_IPV6_NEIGHBOR_SOLICITATION | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_IPV6_NEIGHBOR_ADVERTISEMENT | Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_ISIS | Intermediate System-to-Intermediate System (IS-IS) protocol. Traffic: L1 IS: 01:80:c2:00:00:14, All Level 1 Intermediate Systems Address L2 IS: 01:80:c2:00:00:15, All Level 2 Intermediate Systems Address All IS: 09:00:2b:00:00:05, All Intermediate System Network Entities address Default packet action is forward |
SAI_HOSTIF_TRAP_TYPE_ROUTER_CUSTOM_RANGE_BASE | Router traps custom range start |
SAI_HOSTIF_TRAP_TYPE_IP2ME | IP packets to local router IP address (routes with SAI_ROUTE_ENTRY_ATTR_NEXT_HOP_ID = SAI_SWITCH_ATTR_CPU_PORT) (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_SSH | SSH traffic (TCP dst port == 22) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_SNMP | SNMP traffic (UDP dst port == 161) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_BGP | BGP traffic (TCP src port == 179 or TCP dst port == 179) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_BGPV6 | BGPv6 traffic (TCP src port == 179 or TCP dst port == 179) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_BFD | BFD traffic (UDP dst port == 3784 or UDP dst port == 4784) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_BFDV6 | BFDV6 traffic (UDP dst port == 3784 or UDP dst port == 4784) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_BFD_MICRO | Micro BFD traffic (UDP dst port == 6784) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_BFDV6_MICRO | Micro BFDV6 traffic (UDP dst port == 6784) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_LDP | LDP traffic (TCP src port == 646 or TCP dst port == 646) to local router IP address or, (UDP dst port == 646) to the 'all routers on this subnet' group multicast address (224.0.0.2) (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_GNMI | GNMI traffic (TCP dst port == 9339) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_P4RT | P4RT traffic (TCP dst port == 9559) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_NTPCLIENT | NTPCLIENT traffic (UDP/TCP src port == 123) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_NTPSERVER | NTPSERVER traffic (UDP/TCP dst port == 123) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_HTTPCLIENT | HTTPCLIENT traffic (TCP src port == 80) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_HTTPSERVER | HTTPSERVER traffic (TCP dst port == 80) to local router IP address (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_LOCAL_IP_CUSTOM_RANGE_BASE | Local IP traps custom range start |
SAI_HOSTIF_TRAP_TYPE_L3_MTU_ERROR | Packets size exceeds the router interface MTU size (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_TTL_ERROR | Packets with TTL 0 or 1 (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_STATIC_FDB_MOVE | Packets trapped when station move is observed with static FDB entry (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_PIPELINE_DISCARD_EGRESS_BUFFER | Packets discarded due to egress buffer full (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_PIPELINE_DISCARD_WRED | Packets discarded by WRED (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_PIPELINE_DISCARD_ROUTER | Packets discarded due to router causes, such as header checksum, router interface is down, matching a route with drop action (black holes), etc. (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_MPLS_TTL_ERROR | MPLS packets with expiring TTL value of 1 (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_MPLS_ROUTER_ALERT_LABEL | MPLS packet with router alert label (default packet action is forward) |
SAI_HOSTIF_TRAP_TYPE_MPLS_LABEL_LOOKUP_MISS | MPLS packets discarded due to label lookup miss (default packet action is drop) |
SAI_HOSTIF_TRAP_TYPE_CUSTOM_EXCEPTION_RANGE_BASE | Exception traps custom range start |
SAI_HOSTIF_TRAP_TYPE_END | End of trap types. |
Definition at line 171 of file saihostif.h.
Host interface TX type.
Definition at line 1195 of file saihostif.h.
enum _sai_hostif_type_t |
Attribute data for SAI_HOSTIF_ATTR_TYPE.
Enumerator | |
---|---|
SAI_HOSTIF_TYPE_NETDEV | Netdevice |
SAI_HOSTIF_TYPE_FD | File descriptor |
SAI_HOSTIF_TYPE_GENETLINK | Generic netlink |
Definition at line 823 of file saihostif.h.
Host interface user defined trap attributes.
Enumerator | |
---|---|
SAI_HOSTIF_USER_DEFINED_TRAP_ATTR_START | Start of attributes. |
SAI_HOSTIF_USER_DEFINED_TRAP_ATTR_TYPE | Host interface user defined trap type. It is valid to create multiple instances of the same user defined type
|
SAI_HOSTIF_USER_DEFINED_TRAP_ATTR_TRAP_PRIORITY | Trap priority. This is equivalent to ACL entry priority SAI_ACL_ENTRY_ATTR_PRIORITY.
|
SAI_HOSTIF_USER_DEFINED_TRAP_ATTR_TRAP_GROUP | Trap group ID for the trap.
|
SAI_HOSTIF_USER_DEFINED_TRAP_ATTR_END | End of attributes. |
SAI_HOSTIF_USER_DEFINED_TRAP_ATTR_CUSTOM_RANGE_START | Custom range start |
SAI_HOSTIF_USER_DEFINED_TRAP_ATTR_CUSTOM_RANGE_END | Custom range end |
Definition at line 718 of file saihostif.h.
Host interface user defined trap type.
User defined traps action is controlled by the referencing object. For example, ACL entry with packet action trap and user trap object ID
Definition at line 676 of file saihostif.h.
Attribute data for SAI_HOSTIF_ATTR_VLAN_TAG.
Definition at line 839 of file saihostif.h.