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>
Showing
- drivers/infiniband/core/addr.c 1 addition, 0 deletionsdrivers/infiniband/core/addr.c
- drivers/infiniband/core/cache.c 1 addition, 0 deletionsdrivers/infiniband/core/cache.c
- drivers/infiniband/core/cma.c 10 additions, 2 deletionsdrivers/infiniband/core/cma.c
- include/rdma/ib_cache.h 1 addition, 0 deletionsinclude/rdma/ib_cache.h
Please register or sign in to comment