mlxsw.rst 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. .. SPDX-License-Identifier: GPL-2.0
  2. =====================
  3. mlxsw devlink support
  4. =====================
  5. This document describes the devlink features implemented by the ``mlxsw``
  6. device driver.
  7. Parameters
  8. ==========
  9. .. list-table:: Generic parameters implemented
  10. * - Name
  11. - Mode
  12. * - ``fw_load_policy``
  13. - driverinit
  14. The ``mlxsw`` driver also implements the following driver-specific
  15. parameters.
  16. .. list-table:: Driver-specific parameters implemented
  17. :widths: 5 5 5 85
  18. * - Name
  19. - Type
  20. - Mode
  21. - Description
  22. * - ``acl_region_rehash_interval``
  23. - u32
  24. - runtime
  25. - Sets an interval for periodic ACL region rehashes. The value is
  26. specified in milliseconds, with a minimum of ``3000``. The value of
  27. ``0`` disables periodic work entirely. The first rehash will be run
  28. immediately after the value is set.
  29. The ``mlxsw`` driver supports reloading via ``DEVLINK_CMD_RELOAD``
  30. Info versions
  31. =============
  32. The ``mlxsw`` driver reports the following versions
  33. .. list-table:: devlink info versions implemented
  34. :widths: 5 5 90
  35. * - Name
  36. - Type
  37. - Description
  38. * - ``hw.revision``
  39. - fixed
  40. - The hardware revision for this board
  41. * - ``fw.psid``
  42. - fixed
  43. - Firmware PSID
  44. * - ``fw.version``
  45. - running
  46. - Three digit firmware version
  47. Line card auxiliary device info versions
  48. ========================================
  49. The ``mlxsw`` driver reports the following versions for line card auxiliary device
  50. .. list-table:: devlink info versions implemented
  51. :widths: 5 5 90
  52. * - Name
  53. - Type
  54. - Description
  55. * - ``hw.revision``
  56. - fixed
  57. - The hardware revision for this line card
  58. * - ``ini.version``
  59. - running
  60. - Version of line card INI loaded
  61. * - ``fw.psid``
  62. - fixed
  63. - Line card device PSID
  64. * - ``fw.version``
  65. - running
  66. - Three digit firmware version of line card device
  67. Driver-specific Traps
  68. =====================
  69. .. list-table:: List of Driver-specific Traps Registered by ``mlxsw``
  70. :widths: 5 5 90
  71. * - Name
  72. - Type
  73. - Description
  74. * - ``irif_disabled``
  75. - ``drop``
  76. - Traps packets that the device decided to drop because they need to be
  77. routed from a disabled router interface (RIF). This can happen during
  78. RIF dismantle, when the RIF is first disabled before being removed
  79. completely
  80. * - ``erif_disabled``
  81. - ``drop``
  82. - Traps packets that the device decided to drop because they need to be
  83. routed through a disabled router interface (RIF). This can happen during
  84. RIF dismantle, when the RIF is first disabled before being removed
  85. completely