1. 26 Oct, 2021 37 commits
  2. 25 Oct, 2021 3 commits
    • Parav Pandit's avatar
      net/mlx5: SF_DEV Add SF device trace points · d67ab0a8
      Parav Pandit authored
      Add SF device add and delete specific trace points.
      
      echo mlx5:mlx5_sf_dev_add >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_dev_del >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_vhca_event >> /sys/kernel/debug/tracing/set_event
      Signed-off-by: default avatarParav Pandit <parav@nvidia.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
      d67ab0a8
    • Parav Pandit's avatar
      net/mlx5: SF, Add SF trace points · b3ccada6
      Parav Pandit authored
      Add support for trace events for SFs to improve debugging.
      This covers
      (a) port add and free trace points
      (b) device level trace points
      (c) SF hardware context add, free trace points.
      (d) SF function activate/deacticate and state trace points
      
      SF events examples:
      echo mlx5:mlx5_sf_add >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_free >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_hwc_alloc >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_hwc_free >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_hwc_deferred_free >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_update_state >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_activate >> /sys/kernel/debug/tracing/set_event
      echo mlx5:mlx5_sf_deactivate >> /sys/kernel/debug/tracing/set_event
      Signed-off-by: default avatarParav Pandit <parav@nvidia.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
      b3ccada6
    • Shay Drory's avatar
      net/mlx5: Let user configure max_macs param · 55460406
      Shay Drory authored
      Currently, max_macs is taking 70Kbytes of memory per function. This
      size is not needed in all use cases, and is critical with large scale.
      Hence, allow user to configure the number of max_macs.
      
      For example, to reduce the number of max_macs to 1, execute::
      $ devlink dev param set pci/0000:00:0b.0 name max_macs value 1 \
                    cmode driverinit
      $ devlink dev reload pci/0000:00:0b.0
      Signed-off-by: default avatarShay Drory <shayd@nvidia.com>
      Reviewed-by: default avatarMoshe Shemesh <moshe@nvidia.com>
      Reviewed-by: default avatarParav Pandit <parav@nvidia.com>
      Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
      55460406