]> 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)
commit5430edc0efecb0ad603d78cfc4ed10ef04929d56
tree51c444fb385ea25a22977d26a38aef4cce288be9
parent54ab3ecea2a977364d63ead47ca6df0f9cf35ae1
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