]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Introduce rdma_read_gid_attr_ndev_rcu() to check GID attribute
authorParav Pandit <parav@mellanox.com>
Wed, 5 Sep 2018 09:54:25 +0000 (12:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 12 Sep 2018 22:32:17 +0000 (16:32 -0600)
commitb7895182d02ad5f07956686bfde532c944e9b6fe
tree9b82b62906e476c9383f61e1c7cb929acb305dba
parentdd077f648f57c5400082571ee472452a277803f5
RDMA/core: Introduce rdma_read_gid_attr_ndev_rcu() to check GID attribute

Introduce an API rdma_read_gid_attr_ndev_rcu() to return GID attribute
netdevice which is in UP state for accessing netdevice's fields such as
net namespace and ifindex.

This is useful for users who intent to access netdevice fields under rcu
lock.

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/cache.c
drivers/infiniband/core/core_priv.h