mlx5_srq.c (306233) | mlx5_srq.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_srq.c 306233 2016-09-23 08:17:51Z hselasky $ | 25 * $FreeBSD: stable/11/sys/dev/mlx5/mlx5_core/mlx5_srq.c 331580 2018-03-26 20:33:31Z hselasky $ |
26 */ 27 28#include <linux/kernel.h> 29#include <linux/module.h> 30#include <dev/mlx5/driver.h> 31#include <dev/mlx5/srq.h> 32#include <rdma/ib_verbs.h> 33#include "mlx5_core.h" --- 406 unchanged lines hidden (view full) --- 440 return arm_rmp_cmd(dev, srq, lwm); 441} 442EXPORT_SYMBOL(mlx5_core_arm_srq); 443 444void mlx5_init_srq_table(struct mlx5_core_dev *dev) 445{ 446 struct mlx5_srq_table *table = &dev->priv.srq_table; 447 | 26 */ 27 28#include <linux/kernel.h> 29#include <linux/module.h> 30#include <dev/mlx5/driver.h> 31#include <dev/mlx5/srq.h> 32#include <rdma/ib_verbs.h> 33#include "mlx5_core.h" --- 406 unchanged lines hidden (view full) --- 440 return arm_rmp_cmd(dev, srq, lwm); 441} 442EXPORT_SYMBOL(mlx5_core_arm_srq); 443 444void mlx5_init_srq_table(struct mlx5_core_dev *dev) 445{ 446 struct mlx5_srq_table *table = &dev->priv.srq_table; 447 |
448 memset(table, 0, sizeof(*table)); |
|
448 spin_lock_init(&table->lock); 449 INIT_RADIX_TREE(&table->tree, GFP_ATOMIC); 450} 451 452void mlx5_cleanup_srq_table(struct mlx5_core_dev *dev) 453{ 454 /* nothing */ 455} | 449 spin_lock_init(&table->lock); 450 INIT_RADIX_TREE(&table->tree, GFP_ATOMIC); 451} 452 453void mlx5_cleanup_srq_table(struct mlx5_core_dev *dev) 454{ 455 /* nothing */ 456} |