]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: add support to create line card and expose to user
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:25 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:18 +0000 (11:00 +0100)
commit559d703e79e290d3dc4a0aaae0ad1438f824e513
tree51c444fb385ea25a22977d26a38aef4cce288be9
parent8499cb9df53acbec171a6c60aab85cd99a802be2
devlink: add support to create line card and expose to user

Extend the devlink API so the driver is going to be able to create and
destroy linecard instances. There can be multiple line cards per devlink
device. Expose this new type of object over devlink netlink API to the
userspace, with notifications.

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>
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c