Introduce devlink infrastructure
authorJiri Pirko <jiri@mellanox.com>
Fri, 26 Feb 2016 16:32:23 +0000 (17:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Mar 2016 21:07:29 +0000 (16:07 -0500)
commitbfcd3a46617209454cfc0947ab093e37fd1e84ef
tree95eeb37695a1b78d4b99f4c4c4a616deed26825a
parentbd070e212688c0d95c68dfe7d54a5aa2a60a8f11
Introduce devlink infrastructure

Introduce devlink infrastructure for drivers to register and expose to
userspace via generic Netlink interface.

There are two basic objects defined:
devlink - one instance for every "parent device", for example switch ASIC
devlink port - one instance for every physical port of the device.

This initial portion implements basic get/dump of objects to userspace.
Also, port splitter and port type setting is implemented.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
MAINTAINERS
include/net/devlink.h [new file with mode: 0644]
include/uapi/linux/devlink.h [new file with mode: 0644]
net/Kconfig
net/core/Makefile
net/core/devlink.c [new file with mode: 0644]