1. 15 Oct, 2020 1 commit
  2. 12 Oct, 2020 3 commits
  3. 06 Oct, 2020 2 commits
  4. 01 Oct, 2020 1 commit
  5. 28 Sep, 2020 2 commits
  6. 15 Sep, 2020 1 commit
  7. 31 Aug, 2020 1 commit
  8. 23 Aug, 2020 4 commits
  9. 16 Aug, 2020 3 commits
  10. 11 Aug, 2020 1 commit
  11. 06 Aug, 2020 4 commits
  12. 03 Aug, 2020 8 commits
  13. 30 Jul, 2020 1 commit
  14. 29 Jul, 2020 1 commit
  15. 27 Jul, 2020 2 commits
  16. 23 Jul, 2020 4 commits
    • David Ahern's avatar
      Merge branch 'devlink-port-health' into next · 1ca65af1
      David Ahern authored
      
      Moshe Shemesh  says:
      
      ====================
      
      Implement commands for interaction with per-port devlink health
      reporters. To do this, adapt devlink-health for usage of port handles
      with any existing devlink-health subcommands. Add devlink-port health
      subcommand as an alias for devlink-health.
      
      ====================
      Signed-off-by: default avatarDavid Ahern <dsahern@kernel.org>
      1ca65af1
    • Vladyslav Tarasiuk's avatar
      devlink: Update devlink-health and devlink-port manpages · 1fe8c44b
      Vladyslav Tarasiuk authored
      
      Describe support for per-port reporters in devlink-health and
      devlink-port commands.
      Signed-off-by: default avatarVladyslav Tarasiuk <vladyslavt@mellanox.com>
      Reviewed-by: default avatarMoshe Shemesh <moshe@mellanox.com>
      Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid Ahern <dsahern@kernel.org>
      1fe8c44b
    • Vladyslav Tarasiuk's avatar
      devlink: Add devlink port health command · 211c8d6c
      Vladyslav Tarasiuk authored
      
      Add devlink port health show subcommand which displays information about
      specified port reporter or all present port reporters as in the example.
      Device and port reporters can be distinguished by a handle being used.
      
      Make other devlink-health subcommands be aliased by devlink port health.
      Refactor devlink-health commands for usage of port handles in order to
      interact with port reporters.
      
      Change devlink health show output to dump information about both device
      and port reporters with correct handles.
      
      Example:
      $ devlink health show
      pci/0000:00:0b.0:
        reporter fw
          state healthy error 0 recover 0 auto_dump true
        reporter fw_fatal
          state healthy error 0 recover 0 grace_period 1200000 auto_recover true auto_dump true
      pci/0000:00:0b.0/1:
        reporter tx
          state healthy error 0 recover 0 grace_period 10000 auto_recover true auto_dump true
        reporter rx
          state healthy error 0 recover 0 grace_period 10000 auto_recover true auto_dump true
      
      $ devlink health show pci/0000:00:0b.0/1 reporter rx
      Which is equivalent to:
      $ devlink port health show pci/0000:00:0b.0/1 reporter rx
      pci/0000:00:0b.0/1:
        reporter rx
          state healthy error 0 recover 0 grace_period 10000 auto_recover true auto_dump true
      
      $ devlink port health show pci/0000:00:0b.0/1 reporter rx -j --pretty
      {
          "health": {
               "pci/0000:00:0b.0/1": [ {
                       "reporter": "rx",
                       "state": "healthy",
                       "error": 0,
                       "recover": 0,
                       "grace_period": 500,
                       "auto_recover": true,
                       "auto_dump": true
                    } ]
          }
      }
      
      $ devlink health set pci/0000:00:0b.0/1 reporter rx grace_period 5000
      Which is equivalent to:
      $ devlink port health set pci/0000:00:0b.0/1 reporter rx grace_period 5000
      
      $ devlink port health show pci/0000:00:0b.0/1 reporter rx
      pci/0000:00:0b.0/1:
        reporter rx
          state healthy error 0 recover 0 grace_period 5000 auto_recover true auto_dump true
      Signed-off-by: default avatarVladyslav Tarasiuk <vladyslavt@mellanox.com>
      Reviewed-by: default avatarMoshe Shemesh <moshe@mellanox.com>
      Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid Ahern <dsahern@kernel.org>
      211c8d6c
    • Vladyslav Tarasiuk's avatar
      devlink: Add a possibility to print arrays of devlink port handles · e533faa7
      Vladyslav Tarasiuk authored
      
      Add a capability of printing port handles for arrays in non-JSON format
      in devlink-health manner.
      Signed-off-by: default avatarVladyslav Tarasiuk <vladyslavt@mellanox.com>
      Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
      Signed-off-by: default avatarDavid Ahern <dsahern@kernel.org>
      e533faa7
  17. 21 Jul, 2020 1 commit