]> git.dujemihanovic.xyz Git - linux.git/commitdiff
RDMA/netlink: Hide unimplemented NLDEV commands
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 30 Jan 2018 15:07:16 +0000 (17:07 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 31 Jan 2018 21:30:04 +0000 (16:30 -0500)
The nldev was implemented by following devlink implementation,
including SET/DEL/NEW commands. However these commands were not
implemented and hence don't need to be exposed.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/uapi/rdma/rdma_netlink.h

index 17e59bec169ec04238da7638f44bed069fc67e45..4c77e2a7b07e24147b2a1cbd15f9b675086397d7 100644 (file)
@@ -227,16 +227,14 @@ enum rdma_nldev_command {
        RDMA_NLDEV_CMD_UNSPEC,
 
        RDMA_NLDEV_CMD_GET, /* can dump */
-       RDMA_NLDEV_CMD_SET,
-       RDMA_NLDEV_CMD_NEW,
-       RDMA_NLDEV_CMD_DEL,
 
-       RDMA_NLDEV_CMD_PORT_GET, /* can dump */
-       RDMA_NLDEV_CMD_PORT_SET,
-       RDMA_NLDEV_CMD_PORT_NEW,
-       RDMA_NLDEV_CMD_PORT_DEL,
+       /* 2 - 4 are free to use */
 
-       RDMA_NLDEV_CMD_RES_GET, /* can dump */
+       RDMA_NLDEV_CMD_PORT_GET = 5, /* can dump */
+
+       /* 6 - 8 are free to use */
+
+       RDMA_NLDEV_CMD_RES_GET = 9, /* can dump */
 
        RDMA_NLDEV_CMD_RES_QP_GET, /* can dump */