diff options
author | Steve Wise <swise@opengridcomputing.com> | 2013-07-04 06:40:44 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-08-12 15:32:31 -0400 |
commit | 24d44a391f1b5d56e9c7a4fc1edd085687864ff9 (patch) | |
tree | 3076b01a1b85d6b21d08f615a44a4b7c2f5b5acb /include/rdma | |
parent | c095ba7224d8edc71dcef0d655911399a8bd4a3f (diff) |
RDMA/cma: Add IPv6 support for iWARP
Modify the type of local_addr and remote_addr fields in struct
iw_cm_id from struct sockaddr_in to struct sockaddr_storage to hold
IPv6 and IPv4 addresses uniformly.
Change the references of local_addr and remote_addr in cxgb4, cxgb3,
nes and amso drivers to match this. However to be able to actully run
traffic over IPv6, low-level drivers have to add code to support this.
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
[ Fix unused variable warnings when INFINIBAND_NES_DEBUG not set.
- Roland ]
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/iw_cm.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rdma/iw_cm.h b/include/rdma/iw_cm.h index 1a046b1595cc..1017e0bdf8ba 100644 --- a/include/rdma/iw_cm.h +++ b/include/rdma/iw_cm.h | |||
@@ -49,8 +49,8 @@ enum iw_cm_event_type { | |||
49 | struct iw_cm_event { | 49 | struct iw_cm_event { |
50 | enum iw_cm_event_type event; | 50 | enum iw_cm_event_type event; |
51 | int status; | 51 | int status; |
52 | struct sockaddr_in local_addr; | 52 | struct sockaddr_storage local_addr; |
53 | struct sockaddr_in remote_addr; | 53 | struct sockaddr_storage remote_addr; |
54 | void *private_data; | 54 | void *private_data; |
55 | void *provider_data; | 55 | void *provider_data; |
56 | u8 private_data_len; | 56 | u8 private_data_len; |
@@ -83,8 +83,8 @@ struct iw_cm_id { | |||
83 | iw_cm_handler cm_handler; /* client callback function */ | 83 | iw_cm_handler cm_handler; /* client callback function */ |
84 | void *context; /* client cb context */ | 84 | void *context; /* client cb context */ |
85 | struct ib_device *device; | 85 | struct ib_device *device; |
86 | struct sockaddr_in local_addr; | 86 | struct sockaddr_storage local_addr; |
87 | struct sockaddr_in remote_addr; | 87 | struct sockaddr_storage remote_addr; |
88 | void *provider_data; /* provider private data */ | 88 | void *provider_data; /* provider private data */ |
89 | iw_event_handler event_handler; /* cb for provider | 89 | iw_event_handler event_handler; /* cb for provider |
90 | events */ | 90 | events */ |