devlink: implement line card active state
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:27 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:18 +0000 (11:00 +0100)
commitfc9f50d5b366cd9f35bdee22fe3f8d77833cb1d8
tree4df5da71305573153fddd8e61dba55e3ab0a955f
parentfcdc8ce23a309c26a67fc613a741d9b21a248311
devlink: implement line card active state

Allow driver to mark a line card as active. Expose this state to the
userspace over devlink netlink interface with proper notifications.
'active' state means that line card was plugged in after
being provisioned.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/devlink/devlink-linecard.rst
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c