IB/core: Move rdma_addr_find_l2_eth_by_grh to core_priv.h
authorParav Pandit <parav@mellanox.com>
Tue, 13 Mar 2018 14:06:23 +0000 (16:06 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:33:39 +0000 (15:33 -0600)
Before commit [1], rdma_addr_find_l2_eth_by_grh() was an exported function
and therefore declaration in include/rdma/ib_addr.h was fine.

But now that its scope is limited to ib_core module, its better to have it
in core_priv.h.

[1] commit 1060f8653414 ("IB/{core/cm}: Fix generating a return AH for
RoCEE")

Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/core_priv.h
include/rdma/ib_addr.h

index 52b2b401e1f4f931f102d5eaf0c9e3e967e7c90e..54163a6e4067f3c2ae97657a31f39c945e0e319a 100644 (file)
@@ -339,4 +339,9 @@ int rdma_resolve_ip_route(struct sockaddr *src_addr,
                          const struct sockaddr *dst_addr,
                          struct rdma_dev_addr *addr);
 
+int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid,
+                                const union ib_gid *dgid,
+                                u8 *dmac, const struct net_device *ndev,
+                                int *hoplimit);
+
 #endif /* _CORE_PRIV_H */
index 494eacdf5260cbcbda97e91bfd19f1cede1ffd71..e8860a46754a4ea042f1d2446aaaed844ea98c0a 100644 (file)
@@ -127,11 +127,6 @@ void rdma_copy_addr(struct rdma_dev_addr *dev_addr,
 
 int rdma_addr_size(struct sockaddr *addr);
 
-int rdma_addr_find_l2_eth_by_grh(const union ib_gid *sgid,
-                                const union ib_gid *dgid,
-                                u8 *dmac, const struct net_device *ndev,
-                                int *hoplimit);
-
 static inline u16 ib_addr_get_pkey(struct rdma_dev_addr *dev_addr)
 {
        return ((u16)dev_addr->broadcast[8] << 8) | (u16)dev_addr->broadcast[9];