]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/NLDEV: remove mr iova attribute
authorSteve Wise <swise@opengridcomputing.com>
Tue, 15 May 2018 18:19:30 +0000 (11:19 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 15 May 2018 22:17:38 +0000 (16:17 -0600)
Remove mr iova attribute because we don't want to pass up kernel pointers.

Fixes: fccec5b89ac6 ("RDMA/nldev: provide detailed MR information")
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/nldev.c

index 8674ca2d8f9184442cd7ea0260d85a771c881ad3..340c7bea45ab28d7c1e3678603d2621a2cc6045f 100644 (file)
@@ -535,9 +535,6 @@ static int fill_res_mr_entry(struct sk_buff *msg, struct netlink_callback *cb,
                        goto err;
                if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LKEY, mr->lkey))
                        goto err;
-               if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_RES_IOVA,
-                                     mr->iova, RDMA_NLDEV_ATTR_PAD))
-                       goto err;
        }
 
        if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_RES_MRLEN, mr->length,