mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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>
This commit is contained in:
parent
ffab8c89ba
commit
25a0ad8515
2 changed files with 18 additions and 11 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue