mbox series

[net-next,v2,0/3] Devlink health auto attributes refactor

Message ID 1585479955-29828-1-git-send-email-eranbe@mellanox.com
Headers show
Series Devlink health auto attributes refactor | expand

Message

Eran Ben Elisha March 29, 2020, 11:05 a.m. UTC
This patchset refactors the auto-recover health reporter flag to be
explicitly set by the devlink core.
In addition, add another flag to control auto-dump attribute, also
to be explicitly set by the devlink core.

For that, patch 0001 changes the auto-recover default value of 
netdevsim dummy reporter.

After reporter registration, both flags can be altered be administrator
only.

Changes since v1:
- Change default behaviour of netdevsim dummy reporter
- Move initialization of DEVLINK_ATTR_HEALTH_REPORTER_AUTO_DUMP 

Eran Ben Elisha (3):
  netdevsim: Change dummy reporter auto recover default
  devlink: Implicitly set auto recover flag when registering health
    reporter
  devlink: Add auto dump flag to health reporter

 .../net/ethernet/broadcom/bnxt/bnxt_devlink.c |  6 ++--
 .../mellanox/mlx5/core/en/reporter_rx.c       |  2 +-
 .../mellanox/mlx5/core/en/reporter_tx.c       |  2 +-
 .../net/ethernet/mellanox/mlx5/core/health.c  |  4 +--
 drivers/net/netdevsim/health.c                |  4 +--
 include/net/devlink.h                         |  3 +-
 include/uapi/linux/devlink.h                  |  2 ++
 net/core/devlink.c                            | 35 +++++++++++++------
 .../drivers/net/netdevsim/devlink.sh          |  5 +++
 9 files changed, 42 insertions(+), 21 deletions(-)