diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-09 16:40:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-09 16:40:22 -0400 |
commit | bd381934bf13ccb1af2813ae26c6fe00ec85d254 (patch) | |
tree | 5275ba0640014793b1b81d52312a581384c335d3 | |
parent | cc9b0b9bea9a0057840261204a6e01c7e19d444c (diff) | |
parent | 335f2d1b24a350ca8099aea6db5b7adc73666d2f (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
RDMA/addr: Fix resolution of local IPv6 addresses
RDMA/cxgb3: Handle NULL inetdev pointer in iwch_query_port()
mlx4_core: Add 40GigE device ID
RDMA/iwcm: Don't call provider reject func with irqs disabled
IB: Fix typo in udev rule documentation
-rw-r--r-- | Documentation/infiniband/user_mad.txt | 4 | ||||
-rw-r--r-- | Documentation/infiniband/user_verbs.txt | 2 | ||||
-rw-r--r-- | drivers/infiniband/core/addr.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/core/iwcm.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_provider.c | 11 | ||||
-rw-r--r-- | drivers/net/mlx4/main.c | 1 |
6 files changed, 14 insertions, 8 deletions
diff --git a/Documentation/infiniband/user_mad.txt b/Documentation/infiniband/user_mad.txt index 744687dd195b..8a366959f5cc 100644 --- a/Documentation/infiniband/user_mad.txt +++ b/Documentation/infiniband/user_mad.txt | |||
@@ -128,8 +128,8 @@ Setting IsSM Capability Bit | |||
128 | To create the appropriate character device files automatically with | 128 | To create the appropriate character device files automatically with |
129 | udev, a rule like | 129 | udev, a rule like |
130 | 130 | ||
131 | KERNEL="umad*", NAME="infiniband/%k" | 131 | KERNEL=="umad*", NAME="infiniband/%k" |
132 | KERNEL="issm*", NAME="infiniband/%k" | 132 | KERNEL=="issm*", NAME="infiniband/%k" |
133 | 133 | ||
134 | can be used. This will create device nodes named | 134 | can be used. This will create device nodes named |
135 | 135 | ||
diff --git a/Documentation/infiniband/user_verbs.txt b/Documentation/infiniband/user_verbs.txt index f847501e50b5..afe3f8da9018 100644 --- a/Documentation/infiniband/user_verbs.txt +++ b/Documentation/infiniband/user_verbs.txt | |||
@@ -58,7 +58,7 @@ Memory pinning | |||
58 | To create the appropriate character device files automatically with | 58 | To create the appropriate character device files automatically with |
59 | udev, a rule like | 59 | udev, a rule like |
60 | 60 | ||
61 | KERNEL="uverbs*", NAME="infiniband/%k" | 61 | KERNEL=="uverbs*", NAME="infiniband/%k" |
62 | 62 | ||
63 | can be used. This will create device nodes named | 63 | can be used. This will create device nodes named |
64 | 64 | ||
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c index 5be1bd4fc7ed..bd07803e9183 100644 --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c | |||
@@ -393,7 +393,7 @@ static int addr_resolve_local(struct sockaddr *src_in, | |||
393 | 393 | ||
394 | for_each_netdev(&init_net, dev) | 394 | for_each_netdev(&init_net, dev) |
395 | if (ipv6_chk_addr(&init_net, | 395 | if (ipv6_chk_addr(&init_net, |
396 | &((struct sockaddr_in6 *) addr)->sin6_addr, | 396 | &((struct sockaddr_in6 *) dst_in)->sin6_addr, |
397 | dev, 1)) | 397 | dev, 1)) |
398 | break; | 398 | break; |
399 | 399 | ||
diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c index 55d093a36ae4..625fec5a741c 100644 --- a/drivers/infiniband/core/iwcm.c +++ b/drivers/infiniband/core/iwcm.c | |||
@@ -362,7 +362,9 @@ static void destroy_cm_id(struct iw_cm_id *cm_id) | |||
362 | * In either case, must tell the provider to reject. | 362 | * In either case, must tell the provider to reject. |
363 | */ | 363 | */ |
364 | cm_id_priv->state = IW_CM_STATE_DESTROYING; | 364 | cm_id_priv->state = IW_CM_STATE_DESTROYING; |
365 | spin_unlock_irqrestore(&cm_id_priv->lock, flags); | ||
365 | cm_id->device->iwcm->reject(cm_id, NULL, 0); | 366 | cm_id->device->iwcm->reject(cm_id, NULL, 0); |
367 | spin_lock_irqsave(&cm_id_priv->lock, flags); | ||
366 | break; | 368 | break; |
367 | case IW_CM_STATE_CONN_SENT: | 369 | case IW_CM_STATE_CONN_SENT: |
368 | case IW_CM_STATE_DESTROYING: | 370 | case IW_CM_STATE_DESTROYING: |
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c b/drivers/infiniband/hw/cxgb3/iwch_provider.c index 6895523779d0..03cfaecc3bb7 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_provider.c +++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c | |||
@@ -1199,11 +1199,14 @@ static int iwch_query_port(struct ib_device *ibdev, | |||
1199 | props->state = IB_PORT_DOWN; | 1199 | props->state = IB_PORT_DOWN; |
1200 | else { | 1200 | else { |
1201 | inetdev = in_dev_get(netdev); | 1201 | inetdev = in_dev_get(netdev); |
1202 | if (inetdev->ifa_list) | 1202 | if (inetdev) { |
1203 | props->state = IB_PORT_ACTIVE; | 1203 | if (inetdev->ifa_list) |
1204 | else | 1204 | props->state = IB_PORT_ACTIVE; |
1205 | else | ||
1206 | props->state = IB_PORT_INIT; | ||
1207 | in_dev_put(inetdev); | ||
1208 | } else | ||
1205 | props->state = IB_PORT_INIT; | 1209 | props->state = IB_PORT_INIT; |
1206 | in_dev_put(inetdev); | ||
1207 | } | 1210 | } |
1208 | 1211 | ||
1209 | props->port_cap_flags = | 1212 | props->port_cap_flags = |
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index 3dd481e77f92..5dd7225b178e 100644 --- a/drivers/net/mlx4/main.c +++ b/drivers/net/mlx4/main.c | |||
@@ -1282,6 +1282,7 @@ static struct pci_device_id mlx4_pci_table[] = { | |||
1282 | { PCI_VDEVICE(MELLANOX, 0x6372) }, /* MT25458 ConnectX EN 10GBASE-T 10GigE */ | 1282 | { PCI_VDEVICE(MELLANOX, 0x6372) }, /* MT25458 ConnectX EN 10GBASE-T 10GigE */ |
1283 | { PCI_VDEVICE(MELLANOX, 0x675a) }, /* MT25458 ConnectX EN 10GBASE-T+Gen2 10GigE */ | 1283 | { PCI_VDEVICE(MELLANOX, 0x675a) }, /* MT25458 ConnectX EN 10GBASE-T+Gen2 10GigE */ |
1284 | { PCI_VDEVICE(MELLANOX, 0x6764) }, /* MT26468 ConnectX EN 10GigE PCIe gen2*/ | 1284 | { PCI_VDEVICE(MELLANOX, 0x6764) }, /* MT26468 ConnectX EN 10GigE PCIe gen2*/ |
1285 | { PCI_VDEVICE(MELLANOX, 0x676e) }, /* MT26478 ConnectX2 40GigE PCIe gen2 */ | ||
1285 | { 0, } | 1286 | { 0, } |
1286 | }; | 1287 | }; |
1287 | 1288 | ||