mlxsw.rst 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. Driver-specific Traps
  48. =====================
  49. .. list-table:: List of Driver-specific Traps Registered by ``mlxsw``
  50. :widths: 5 5 90
  51. * - Name
  52. - Type
  53. - Description
  54. * - ``irif_disabled``
  55. - ``drop``
  56. - Traps packets that the device decided to drop because they need to be
  57. routed from a disabled router interface (RIF). This can happen during
  58. RIF dismantle, when the RIF is first disabled before being removed
  59. completely
  60. * - ``erif_disabled``
  61. - ``drop``
  62. - Traps packets that the device decided to drop because they need to be
  63. routed through a disabled router interface (RIF). This can happen during
  64. RIF dismantle, when the RIF is first disabled before being removed
  65. completely