RDMA/nldev: Add explicit pad attribute
authorSteve Wise <swise@opengridcomputing.com>
Thu, 3 May 2018 15:40:49 +0000 (08:40 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 May 2018 19:51:27 +0000 (15:51 -0400)
commit25a0ad85156a7b697d4340560fff0d25a3b19243
tree61f328527830210d9e8291fea03305bba14c84c2
parentffab8c89ba59c4e01f9c277f1baaad12bd5a3c0c
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>
drivers/infiniband/core/nldev.c
include/uapi/rdma/rdma_netlink.h