prestera.rst 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ========================
  3. prestera devlink support
  4. ========================
  5. This document describes the devlink features implemented by the ``prestera``
  6. device driver.
  7. Driver-specific Traps
  8. =====================
  9. .. list-table:: List of Driver-specific Traps Registered by ``prestera``
  10. :widths: 5 5 90
  11. * - Name
  12. - Type
  13. - Description
  14. .. list-table:: List of Driver-specific Traps Registered by ``prestera``
  15. :widths: 5 5 90
  16. * - Name
  17. - Type
  18. - Description
  19. * - ``arp_bc``
  20. - ``trap``
  21. - Traps ARP broadcast packets (both requests/responses)
  22. * - ``is_is``
  23. - ``trap``
  24. - Traps IS-IS packets
  25. * - ``ospf``
  26. - ``trap``
  27. - Traps OSPF packets
  28. * - ``ip_bc_mac``
  29. - ``trap``
  30. - Traps IPv4 packets with broadcast DA Mac address
  31. * - ``stp``
  32. - ``trap``
  33. - Traps STP BPDU
  34. * - ``lacp``
  35. - ``trap``
  36. - Traps LACP packets
  37. * - ``lldp``
  38. - ``trap``
  39. - Traps LLDP packets
  40. * - ``router_mc``
  41. - ``trap``
  42. - Traps multicast packets
  43. * - ``vrrp``
  44. - ``trap``
  45. - Traps VRRP packets
  46. * - ``dhcp``
  47. - ``trap``
  48. - Traps DHCP packets
  49. * - ``mtu_error``
  50. - ``trap``
  51. - Traps (exception) packets that exceeded port's MTU
  52. * - ``mac_to_me``
  53. - ``trap``
  54. - Traps packets with switch-port's DA Mac address
  55. * - ``ttl_error``
  56. - ``trap``
  57. - Traps (exception) IPv4 packets whose TTL exceeded
  58. * - ``ipv4_options``
  59. - ``trap``
  60. - Traps (exception) packets due to the malformed IPV4 header options
  61. * - ``ip_default_route``
  62. - ``trap``
  63. - Traps packets that have no specific IP interface (IP to me) and no forwarding prefix
  64. * - ``local_route``
  65. - ``trap``
  66. - Traps packets that have been send to one of switch IP interfaces addresses
  67. * - ``ipv4_icmp_redirect``
  68. - ``trap``
  69. - Traps (exception) IPV4 ICMP redirect packets
  70. * - ``arp_response``
  71. - ``trap``
  72. - Traps ARP replies packets that have switch-port's DA Mac address
  73. * - ``acl_code_0``
  74. - ``trap``
  75. - Traps packets that have ACL priority set to 0 (tc pref 0)
  76. * - ``acl_code_1``
  77. - ``trap``
  78. - Traps packets that have ACL priority set to 1 (tc pref 1)
  79. * - ``acl_code_2``
  80. - ``trap``
  81. - Traps packets that have ACL priority set to 2 (tc pref 2)
  82. * - ``acl_code_3``
  83. - ``trap``
  84. - Traps packets that have ACL priority set to 3 (tc pref 3)
  85. * - ``acl_code_4``
  86. - ``trap``
  87. - Traps packets that have ACL priority set to 4 (tc pref 4)
  88. * - ``acl_code_5``
  89. - ``trap``
  90. - Traps packets that have ACL priority set to 5 (tc pref 5)
  91. * - ``acl_code_6``
  92. - ``trap``
  93. - Traps packets that have ACL priority set to 6 (tc pref 6)
  94. * - ``acl_code_7``
  95. - ``trap``
  96. - Traps packets that have ACL priority set to 7 (tc pref 7)
  97. * - ``ipv4_bgp``
  98. - ``trap``
  99. - Traps IPv4 BGP packets
  100. * - ``ssh``
  101. - ``trap``
  102. - Traps SSH packets
  103. * - ``telnet``
  104. - ``trap``
  105. - Traps Telnet packets
  106. * - ``icmp``
  107. - ``trap``
  108. - Traps ICMP packets
  109. * - ``rxdma_drop``
  110. - ``drop``
  111. - Drops packets (RxDMA) due to the lack of ingress buffers etc.
  112. * - ``port_no_vlan``
  113. - ``drop``
  114. - Drops packets due to faulty-configured network or due to internal bug (config issue).
  115. * - ``local_port``
  116. - ``drop``
  117. - Drops packets whose decision (FDB entry) is to bridge packet back to the incoming port/trunk.
  118. * - ``invalid_sa``
  119. - ``drop``
  120. - Drops packets with multicast source MAC address.
  121. * - ``illegal_ip_addr``
  122. - ``drop``
  123. - Drops packets with illegal SIP/DIP multicast/unicast addresses.
  124. * - ``illegal_ipv4_hdr``
  125. - ``drop``
  126. - Drops packets with illegal IPV4 header.
  127. * - ``ip_uc_dip_da_mismatch``
  128. - ``drop``
  129. - Drops packets with destination MAC being unicast, but destination IP address being multicast.
  130. * - ``ip_sip_is_zero``
  131. - ``drop``
  132. - Drops packets with zero (0) IPV4 source address.
  133. * - ``met_red``
  134. - ``drop``
  135. - Drops non-conforming packets (dropped by Ingress policer, metering drop), e.g. packet rate exceeded configured bandwidth.