mlx5_qp.c (306233) | mlx5_qp.c (331580) |
---|---|
1/*- 2 * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/*- 2 * Copyright (c) 2013-2015, Mellanox Technologies, Ltd. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_qp.c 306233 2016-09-23 08:17:51Z hselasky $ | 25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_qp.c 331580 2018-03-26 20:33:31Z hselasky $ |
26 */ 27 28 29#include <linux/gfp.h> 30#include <dev/mlx5/qp.h> 31#include <dev/mlx5/driver.h> 32 33#include "mlx5_core.h" --- 174 unchanged lines hidden (view full) --- 208 return mlx5_cmd_status_to_err(&out.hdr); 209} 210EXPORT_SYMBOL_GPL(mlx5_core_qp_modify); 211 212void mlx5_init_qp_table(struct mlx5_core_dev *dev) 213{ 214 struct mlx5_qp_table *table = &dev->priv.qp_table; 215 | 26 */ 27 28 29#include <linux/gfp.h> 30#include <dev/mlx5/qp.h> 31#include <dev/mlx5/driver.h> 32 33#include "mlx5_core.h" --- 174 unchanged lines hidden (view full) --- 208 return mlx5_cmd_status_to_err(&out.hdr); 209} 210EXPORT_SYMBOL_GPL(mlx5_core_qp_modify); 211 212void mlx5_init_qp_table(struct mlx5_core_dev *dev) 213{ 214 struct mlx5_qp_table *table = &dev->priv.qp_table; 215 |
216 memset(table, 0, sizeof(*table)); |
|
216 spin_lock_init(&table->lock); 217 INIT_RADIX_TREE(&table->tree, GFP_ATOMIC); 218} 219 220void mlx5_cleanup_qp_table(struct mlx5_core_dev *dev) 221{ 222} 223 --- 262 unchanged lines hidden --- | 217 spin_lock_init(&table->lock); 218 INIT_RADIX_TREE(&table->tree, GFP_ATOMIC); 219} 220 221void mlx5_cleanup_qp_table(struct mlx5_core_dev *dev) 222{ 223} 224 --- 262 unchanged lines hidden --- |