devlink: Add generic parameters internal_err_reset and max_macs
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 4 Jul 2018 11:30:33 +0000 (14:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 10:58:35 +0000 (19:58 +0900)
commit036467c3990c75ec8ce97e517a864b52e184a1aa
tree66b85b9a497f6a49aa7dec9a42554657ed8d8cd6
parentea601e17098856ee059f35c2a75659e57df81f25
devlink: Add generic parameters internal_err_reset and max_macs

Add 2 first generic parameters to devlink configuration parameters set:
internal_err_reset - When set enables reset device on internal errors.
max_macs - max number of MACs per ETH port.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/devlink.h
net/core/devlink.c