]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/cma: Use rdma_read_gid_attr_ndev_rcu to access netdev
authorParav Pandit <parav@mellanox.com>
Thu, 2 May 2019 07:48:04 +0000 (10:48 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 3 May 2019 14:10:03 +0000 (11:10 -0300)
commitadb4a57a7a1d0bf4bebc96266f30f04330e741de
tree2ce512da297cec0e96fa4c4124adb0154a88212a
parenta70c07397fd80dfeeaead15751ab71449b548826
RDMA/cma: Use rdma_read_gid_attr_ndev_rcu to access netdev

To access the netdevice of the GID attribute, use an existing API
rdma_read_gid_attr_ndev_rcu().

This further reduces dependency on open access to netdevice of GID
attribute.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/addr.c
drivers/infiniband/core/cache.c
drivers/infiniband/core/cma.c
include/rdma/ib_cache.h