0001 .. SPDX-License-Identifier: GPL-2.0
0002
0003 ========================
0004 prestera devlink support
0005 ========================
0006
0007 This document describes the devlink features implemented by the ``prestera``
0008 device driver.
0009
0010 Driver-specific Traps
0011 =====================
0012
0013 .. list-table:: List of Driver-specific Traps Registered by ``prestera``
0014 :widths: 5 5 90
0015
0016 * - Name
0017 - Type
0018 - Description
0019 .. list-table:: List of Driver-specific Traps Registered by ``prestera``
0020 :widths: 5 5 90
0021
0022 * - Name
0023 - Type
0024 - Description
0025 * - ``arp_bc``
0026 - ``trap``
0027 - Traps ARP broadcast packets (both requests/responses)
0028 * - ``is_is``
0029 - ``trap``
0030 - Traps IS-IS packets
0031 * - ``ospf``
0032 - ``trap``
0033 - Traps OSPF packets
0034 * - ``ip_bc_mac``
0035 - ``trap``
0036 - Traps IPv4 packets with broadcast DA Mac address
0037 * - ``stp``
0038 - ``trap``
0039 - Traps STP BPDU
0040 * - ``lacp``
0041 - ``trap``
0042 - Traps LACP packets
0043 * - ``lldp``
0044 - ``trap``
0045 - Traps LLDP packets
0046 * - ``router_mc``
0047 - ``trap``
0048 - Traps multicast packets
0049 * - ``vrrp``
0050 - ``trap``
0051 - Traps VRRP packets
0052 * - ``dhcp``
0053 - ``trap``
0054 - Traps DHCP packets
0055 * - ``mtu_error``
0056 - ``trap``
0057 - Traps (exception) packets that exceeded port's MTU
0058 * - ``mac_to_me``
0059 - ``trap``
0060 - Traps packets with switch-port's DA Mac address
0061 * - ``ttl_error``
0062 - ``trap``
0063 - Traps (exception) IPv4 packets whose TTL exceeded
0064 * - ``ipv4_options``
0065 - ``trap``
0066 - Traps (exception) packets due to the malformed IPV4 header options
0067 * - ``ip_default_route``
0068 - ``trap``
0069 - Traps packets that have no specific IP interface (IP to me) and no forwarding prefix
0070 * - ``local_route``
0071 - ``trap``
0072 - Traps packets that have been send to one of switch IP interfaces addresses
0073 * - ``ipv4_icmp_redirect``
0074 - ``trap``
0075 - Traps (exception) IPV4 ICMP redirect packets
0076 * - ``arp_response``
0077 - ``trap``
0078 - Traps ARP replies packets that have switch-port's DA Mac address
0079 * - ``acl_code_0``
0080 - ``trap``
0081 - Traps packets that have ACL priority set to 0 (tc pref 0)
0082 * - ``acl_code_1``
0083 - ``trap``
0084 - Traps packets that have ACL priority set to 1 (tc pref 1)
0085 * - ``acl_code_2``
0086 - ``trap``
0087 - Traps packets that have ACL priority set to 2 (tc pref 2)
0088 * - ``acl_code_3``
0089 - ``trap``
0090 - Traps packets that have ACL priority set to 3 (tc pref 3)
0091 * - ``acl_code_4``
0092 - ``trap``
0093 - Traps packets that have ACL priority set to 4 (tc pref 4)
0094 * - ``acl_code_5``
0095 - ``trap``
0096 - Traps packets that have ACL priority set to 5 (tc pref 5)
0097 * - ``acl_code_6``
0098 - ``trap``
0099 - Traps packets that have ACL priority set to 6 (tc pref 6)
0100 * - ``acl_code_7``
0101 - ``trap``
0102 - Traps packets that have ACL priority set to 7 (tc pref 7)
0103 * - ``ipv4_bgp``
0104 - ``trap``
0105 - Traps IPv4 BGP packets
0106 * - ``ssh``
0107 - ``trap``
0108 - Traps SSH packets
0109 * - ``telnet``
0110 - ``trap``
0111 - Traps Telnet packets
0112 * - ``icmp``
0113 - ``trap``
0114 - Traps ICMP packets
0115 * - ``rxdma_drop``
0116 - ``drop``
0117 - Drops packets (RxDMA) due to the lack of ingress buffers etc.
0118 * - ``port_no_vlan``
0119 - ``drop``
0120 - Drops packets due to faulty-configured network or due to internal bug (config issue).
0121 * - ``local_port``
0122 - ``drop``
0123 - Drops packets whose decision (FDB entry) is to bridge packet back to the incoming port/trunk.
0124 * - ``invalid_sa``
0125 - ``drop``
0126 - Drops packets with multicast source MAC address.
0127 * - ``illegal_ip_addr``
0128 - ``drop``
0129 - Drops packets with illegal SIP/DIP multicast/unicast addresses.
0130 * - ``illegal_ipv4_hdr``
0131 - ``drop``
0132 - Drops packets with illegal IPV4 header.
0133 * - ``ip_uc_dip_da_mismatch``
0134 - ``drop``
0135 - Drops packets with destination MAC being unicast, but destination IP address being multicast.
0136 * - ``ip_sip_is_zero``
0137 - ``drop``
0138 - Drops packets with zero (0) IPV4 source address.
0139 * - ``met_red``
0140 - ``drop``
0141 - Drops non-conforming packets (dropped by Ingress policer, metering drop), e.g. packet rate exceeded configured bandwith.