OSDN Git Service

devlink: Add support for region get command
authorAlex Vesker <valex@mellanox.com>
Thu, 12 Jul 2018 12:13:11 +0000 (15:13 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Jul 2018 00:37:13 +0000 (17:37 -0700)
commitd8db7ea55f2ff5890ad31137233a3808d80c7f62
treeac7ae8828e7704a5e9cacf4a0d4f0b36b614c051
parentd7e5272282d93bedbbeb6174b8af8425d7dcfd6f
devlink: Add support for region get command

Add support for DEVLINK_CMD_REGION_GET command which is used for
querying for the supported DEV/REGION values of devlink devices.
The support is both for doit and dumpit.

Reply includes:
  BUS_NAME, DEVICE_NAME, REGION_NAME, REGION_SIZE

Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/devlink.h
net/core/devlink.c