]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb447522505f10c21c222a5939324f9133a6fc171
tree4df5da71305573153fddd8e61dba55e3ab0a955f
parentc9d50b8d602b8c348a31f880f1fc9631f57ffabf
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