main.c (8c112a5f29a343f89072bed4b9fa176fea226798) main.c (daeee976904c0b7326eb4c033df7b28d4b726177)
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 58 unchanged lines hidden (view full) ---

67#include <rdma/uverbs_std_types.h>
68#include <rdma/mlx5_user_ioctl_verbs.h>
69#include <rdma/mlx5_user_ioctl_cmds.h>
70#include <rdma/ib_umem_odp.h>
71
72#define UVERBS_MODULE_NAME mlx5_ib
73#include <rdma/uverbs_named_ioctl.h>
74
1/*
2 * Copyright (c) 2013-2015, Mellanox Technologies. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

--- 58 unchanged lines hidden (view full) ---

67#include <rdma/uverbs_std_types.h>
68#include <rdma/mlx5_user_ioctl_verbs.h>
69#include <rdma/mlx5_user_ioctl_cmds.h>
70#include <rdma/ib_umem_odp.h>
71
72#define UVERBS_MODULE_NAME mlx5_ib
73#include <rdma/uverbs_named_ioctl.h>
74
75#define DRIVER_NAME "mlx5_ib"
76#define DRIVER_VERSION "5.0-0"
77
78MODULE_AUTHOR("Eli Cohen <eli@mellanox.com>");
75MODULE_AUTHOR("Eli Cohen <eli@mellanox.com>");
79MODULE_DESCRIPTION("Mellanox Connect-IB HCA IB driver");
76MODULE_DESCRIPTION("Mellanox 5th generation network adapters (ConnectX series) IB driver");
80MODULE_LICENSE("Dual BSD/GPL");
81
77MODULE_LICENSE("Dual BSD/GPL");
78
82static char mlx5_version[] =
83 DRIVER_NAME ": Mellanox Connect-IB Infiniband driver v"
84 DRIVER_VERSION "\n";
85
86struct mlx5_ib_event_work {
87 struct work_struct work;
88 union {
89 struct mlx5_ib_dev *dev;
90 struct mlx5_ib_multiport_info *mpi;
91 };
92 bool is_slave;
93 unsigned int event;

--- 7216 unchanged lines hidden (view full) ---

7310static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
7311{
7312 const struct mlx5_ib_profile *profile;
7313 enum rdma_link_layer ll;
7314 struct mlx5_ib_dev *dev;
7315 int port_type_cap;
7316 int num_ports;
7317
79struct mlx5_ib_event_work {
80 struct work_struct work;
81 union {
82 struct mlx5_ib_dev *dev;
83 struct mlx5_ib_multiport_info *mpi;
84 };
85 bool is_slave;
86 unsigned int event;

--- 7216 unchanged lines hidden (view full) ---

7303static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
7304{
7305 const struct mlx5_ib_profile *profile;
7306 enum rdma_link_layer ll;
7307 struct mlx5_ib_dev *dev;
7308 int port_type_cap;
7309 int num_ports;
7310
7318 printk_once(KERN_INFO "%s", mlx5_version);
7319
7320 if (MLX5_ESWITCH_MANAGER(mdev) &&
7321 mlx5_ib_eswitch_mode(mdev->priv.eswitch) == MLX5_ESWITCH_OFFLOADS) {
7322 if (!mlx5_core_mp_enabled(mdev))
7323 mlx5_ib_register_vport_reps(mdev);
7324 return mdev;
7325 }
7326
7327 port_type_cap = MLX5_CAP_GEN(mdev, port_type);

--- 103 unchanged lines hidden ---
7311 if (MLX5_ESWITCH_MANAGER(mdev) &&
7312 mlx5_ib_eswitch_mode(mdev->priv.eswitch) == MLX5_ESWITCH_OFFLOADS) {
7313 if (!mlx5_core_mp_enabled(mdev))
7314 mlx5_ib_register_vport_reps(mdev);
7315 return mdev;
7316 }
7317
7318 port_type_cap = MLX5_CAP_GEN(mdev, port_type);

--- 103 unchanged lines hidden ---