summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_cache.h
diff options
context:
space:
mode:
authorParav Pandit <parav@mellanox.com>2018-05-22 19:33:45 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-05-24 17:39:25 +0200
commit25e62655c79395c596601a35805c3c7376d097b6 (patch)
tree6862f5ec7948886e016466757c41c06b02758874 /include/rdma/ib_cache.h
parentIB/mlx5: Fetch soft WQE's on fatal error state (diff)
downloadlinux-25e62655c79395c596601a35805c3c7376d097b6.tar.xz
linux-25e62655c79395c596601a35805c3c7376d097b6.zip
IB/core: Reduce the places that use zgid
Instead of open coding memcmp() to check whether a given GID is zero or not, use a helper function to do so, and replace instances of memcpy(z,&zgid) with memset. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_cache.h b/include/rdma/ib_cache.h
index eb49cc8d1f95..a5f249828115 100644
--- a/include/rdma/ib_cache.h
+++ b/include/rdma/ib_cache.h
@@ -149,4 +149,5 @@ int ib_get_cached_port_state(struct ib_device *device,
u8 port_num,
enum ib_port_state *port_active);
+bool rdma_is_zero_gid(const union ib_gid *gid);
#endif /* _IB_CACHE_H */