summaryrefslogtreecommitdiff
path: root/include/uapi/rdma/rdma_netlink.h
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2018-05-03 18:40:49 +0300
committerDoug Ledford <dledford@redhat.com>2018-05-03 22:51:27 +0300
commit25a0ad85156a7b697d4340560fff0d25a3b19243 (patch)
tree61f328527830210d9e8291fea03305bba14c84c2 /include/uapi/rdma/rdma_netlink.h
parentffab8c89ba59c4e01f9c277f1baaad12bd5a3c0c (diff)
downloadlinux-25a0ad85156a7b697d4340560fff0d25a3b19243.tar.xz
RDMA/nldev: Add explicit pad attribute
Add a specific RDMA_NLDEV_ATTR_PAD attribute to be used for 64b attribute padding. To preserve the ABI, make this attribute equal to RDMA_NLDEV_ATTR_UNSPEC, which has a value of 0, because that has been used up until now as the pad attribute. Change all the previous use of 0 as the pad with this new enum. Signed-off-by: Steve Wise <swise@opengridcomputing.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/uapi/rdma/rdma_netlink.h')
-rw-r--r--include/uapi/rdma/rdma_netlink.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/rdma/rdma_netlink.h b/include/uapi/rdma/rdma_netlink.h
index 0ce0943fc808..fbf99aa8a03c 100644
--- a/include/uapi/rdma/rdma_netlink.h
+++ b/include/uapi/rdma/rdma_netlink.h
@@ -253,6 +253,9 @@ enum rdma_nldev_attr {
/* don't change the order or add anything between, this is ABI! */
RDMA_NLDEV_ATTR_UNSPEC,
+ /* Pad attribute for 64b alignment */
+ RDMA_NLDEV_ATTR_PAD = RDMA_NLDEV_ATTR_UNSPEC,
+
/* Identifier for ib_device */
RDMA_NLDEV_ATTR_DEV_INDEX, /* u32 */