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)
commitc246f9b5fd617fe487f8b6f18851703f468501d6
tree51c444fb385ea25a22977d26a38aef4cce288be9
parent843f77407eebee07c2a3300df0c4b33f64322e29
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