diff options
author | Sean Hefty <sean.hefty@intel.com> | 2013-05-29 13:09:10 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-06-20 16:08:02 -0400 |
commit | ef560861c01c301cde3da154eb9c1c2619924c3a (patch) | |
tree | 67c9b7ec2cc29f65a958c4d55afd8130eeeb8f62 /include/rdma | |
parent | 2e2d190c5eb05d5a2615f4092e5fe821710404f9 (diff) |
IB/addr: Add AF_IB support to ip_addr_size
Add support for AF_IB to ip_addr_size, and rename the function to
account for the change. Give the compiler more control over whether
the call should be inline or not by moving the definition into the .c
file, removing the static inline, and exporting it.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_addr.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h index 99965395c5f3..f3ac0f2c4c66 100644 --- a/include/rdma/ib_addr.h +++ b/include/rdma/ib_addr.h | |||
@@ -102,11 +102,7 @@ void rdma_addr_cancel(struct rdma_dev_addr *addr); | |||
102 | int rdma_copy_addr(struct rdma_dev_addr *dev_addr, struct net_device *dev, | 102 | int rdma_copy_addr(struct rdma_dev_addr *dev_addr, struct net_device *dev, |
103 | const unsigned char *dst_dev_addr); | 103 | const unsigned char *dst_dev_addr); |
104 | 104 | ||
105 | static inline int ip_addr_size(struct sockaddr *addr) | 105 | int rdma_addr_size(struct sockaddr *addr); |
106 | { | ||
107 | return addr->sa_family == AF_INET6 ? | ||
108 | sizeof(struct sockaddr_in6) : sizeof(struct sockaddr_in); | ||
109 | } | ||
110 | 106 | ||
111 | static inline u16 ib_addr_get_pkey(struct rdma_dev_addr *dev_addr) | 107 | static inline u16 ib_addr_get_pkey(struct rdma_dev_addr *dev_addr) |
112 | { | 108 | { |