diff options
Diffstat (limited to 'drivers/infiniband/core/addr.c')
-rw-r--r-- | drivers/infiniband/core/addr.c | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c index 781ea5950373..09a2bec7fd32 100644 --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c | |||
@@ -4,28 +4,33 @@ | |||
4 | * Copyright (c) 1999-2005, Mellanox Technologies, Inc. All rights reserved. | 4 | * Copyright (c) 1999-2005, Mellanox Technologies, Inc. All rights reserved. |
5 | * Copyright (c) 2005 Intel Corporation. All rights reserved. | 5 | * Copyright (c) 2005 Intel Corporation. All rights reserved. |
6 | * | 6 | * |
7 | * This Software is licensed under one of the following licenses: | 7 | * This software is available to you under a choice of one of two |
8 | * licenses. You may choose to be licensed under the terms of the GNU | ||
9 | * General Public License (GPL) Version 2, available from the file | ||
10 | * COPYING in the main directory of this source tree, or the | ||
11 | * OpenIB.org BSD license below: | ||
8 | * | 12 | * |
9 | * 1) under the terms of the "Common Public License 1.0" a copy of which is | 13 | * Redistribution and use in source and binary forms, with or |
10 | * available from the Open Source Initiative, see | 14 | * without modification, are permitted provided that the following |
11 | * http://www.opensource.org/licenses/cpl.php. | 15 | * conditions are met: |
12 | * | 16 | * |
13 | * 2) under the terms of the "The BSD License" a copy of which is | 17 | * - Redistributions of source code must retain the above |
14 | * available from the Open Source Initiative, see | 18 | * copyright notice, this list of conditions and the following |
15 | * http://www.opensource.org/licenses/bsd-license.php. | 19 | * disclaimer. |
16 | * | 20 | * |
17 | * 3) under the terms of the "GNU General Public License (GPL) Version 2" a | 21 | * - Redistributions in binary form must reproduce the above |
18 | * copy of which is available from the Open Source Initiative, see | 22 | * copyright notice, this list of conditions and the following |
19 | * http://www.opensource.org/licenses/gpl-license.php. | 23 | * disclaimer in the documentation and/or other materials |
24 | * provided with the distribution. | ||
20 | * | 25 | * |
21 | * Licensee has the right to choose one of the above licenses. | 26 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
22 | * | 27 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
23 | * Redistributions of source code must retain the above copyright | 28 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
24 | * notice and one of the license notices. | 29 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
25 | * | 30 | * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
26 | * Redistributions in binary form must reproduce both the above copyright | 31 | * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
27 | * notice, one of the license notices in the documentation | 32 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
28 | * and/or other materials provided with the distribution. | 33 | * SOFTWARE. |
29 | */ | 34 | */ |
30 | 35 | ||
31 | #include <linux/mutex.h> | 36 | #include <linux/mutex.h> |
@@ -100,6 +105,7 @@ int rdma_copy_addr(struct rdma_dev_addr *dev_addr, struct net_device *dev, | |||
100 | memcpy(dev_addr->broadcast, dev->broadcast, MAX_ADDR_LEN); | 105 | memcpy(dev_addr->broadcast, dev->broadcast, MAX_ADDR_LEN); |
101 | if (dst_dev_addr) | 106 | if (dst_dev_addr) |
102 | memcpy(dev_addr->dst_dev_addr, dst_dev_addr, MAX_ADDR_LEN); | 107 | memcpy(dev_addr->dst_dev_addr, dst_dev_addr, MAX_ADDR_LEN); |
108 | dev_addr->src_dev = dev; | ||
103 | return 0; | 109 | return 0; |
104 | } | 110 | } |
105 | EXPORT_SYMBOL(rdma_copy_addr); | 111 | EXPORT_SYMBOL(rdma_copy_addr); |