diff options
| author | Parav Pandit <[email protected]> | 2019-05-02 07:48:04 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-05-03 14:10:03 +0000 |
| commit | adb4a57a7a1d0bf4bebc96266f30f04330e741de (patch) | |
| tree | 2ce512da297cec0e96fa4c4124adb0154a88212a /drivers/infiniband/core/cache.c | |
| parent | RDMA: Introduce and use GID attr helper to read RoCE L2 fields (diff) | |
| download | kernel-adb4a57a7a1d0bf4bebc96266f30f04330e741de.tar.gz kernel-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 <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/infiniband/core/cache.c')
| -rw-r--r-- | drivers/infiniband/core/cache.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cache.c b/drivers/infiniband/core/cache.c index c164e377e563..a53c7713d77a 100644 --- a/drivers/infiniband/core/cache.c +++ b/drivers/infiniband/core/cache.c @@ -1249,6 +1249,7 @@ struct net_device *rdma_read_gid_attr_ndev_rcu(const struct ib_gid_attr *attr) read_unlock_irqrestore(&table->rwlock, flags); return ndev; } +EXPORT_SYMBOL(rdma_read_gid_attr_ndev_rcu); static int get_lower_dev_vlan(struct net_device *lower_dev, void *data) { |
