diff options
author | Parav Pandit <parav@mellanox.com> | 2019-05-02 09:48:04 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-05-03 16:10:03 +0200 |
commit | adb4a57a7a1d0bf4bebc96266f30f04330e741de (patch) | |
tree | 2ce512da297cec0e96fa4c4124adb0154a88212a /include/rdma/ib_cache.h | |
parent | RDMA: Introduce and use GID attr helper to read RoCE L2 fields (diff) | |
download | linux-adb4a57a7a1d0bf4bebc96266f30f04330e741de.tar.xz linux-adb4a57a7a1d0bf4bebc96266f30f04330e741de.zip |
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>
Diffstat (limited to 'include/rdma/ib_cache.h')
-rw-r--r-- | include/rdma/ib_cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_cache.h b/include/rdma/ib_cache.h index 730a65ad8c74..870b5e6c06db 100644 --- a/include/rdma/ib_cache.h +++ b/include/rdma/ib_cache.h @@ -56,6 +56,7 @@ const struct ib_gid_attr *rdma_find_gid_by_filter( int rdma_read_gid_l2_fields(const struct ib_gid_attr *attr, u16 *vlan_id, u8 *smac); +struct net_device *rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr); /** * ib_get_cached_pkey - Returns a cached PKey table entry |