main.c (a02633e9b13dcb9b1a656b08f81bc8ba2d4d2294) main.c (fc385b7ac48089ed1c6866cdc0dceb4ae1fa54de)
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:

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

52#include <linux/mlx5/vport.h>
53#include <linux/mlx5/fs.h>
54#include <linux/list.h>
55#include <rdma/ib_smi.h>
56#include <rdma/ib_umem.h>
57#include <linux/in.h>
58#include <linux/etherdevice.h>
59#include "mlx5_ib.h"
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:

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

52#include <linux/mlx5/vport.h>
53#include <linux/mlx5/fs.h>
54#include <linux/list.h>
55#include <rdma/ib_smi.h>
56#include <rdma/ib_umem.h>
57#include <linux/in.h>
58#include <linux/etherdevice.h>
59#include "mlx5_ib.h"
60#include "ib_rep.h"
60#include "cmd.h"
61
62#define DRIVER_NAME "mlx5_ib"
63#define DRIVER_VERSION "5.0-0"
64
65MODULE_AUTHOR("Eli Cohen <eli@mellanox.com>");
66MODULE_DESCRIPTION("Mellanox Connect-IB HCA IB driver");
67MODULE_LICENSE("Dual BSD/GPL");

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

4900 mlx5_class_attributes[i]);
4901 if (err)
4902 return err;
4903 }
4904
4905 return 0;
4906}
4907
61#include "cmd.h"
62
63#define DRIVER_NAME "mlx5_ib"
64#define DRIVER_VERSION "5.0-0"
65
66MODULE_AUTHOR("Eli Cohen <eli@mellanox.com>");
67MODULE_DESCRIPTION("Mellanox Connect-IB HCA IB driver");
68MODULE_LICENSE("Dual BSD/GPL");

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

4901 mlx5_class_attributes[i]);
4902 if (err)
4903 return err;
4904 }
4905
4906 return 0;
4907}
4908
4909static int mlx5_ib_stage_rep_reg_init(struct mlx5_ib_dev *dev)
4910{
4911 mlx5_ib_register_vport_reps(dev);
4912
4913 return 0;
4914}
4915
4916static void mlx5_ib_stage_rep_reg_cleanup(struct mlx5_ib_dev *dev)
4917{
4918 mlx5_ib_unregister_vport_reps(dev);
4919}
4920
4908static void __mlx5_ib_remove(struct mlx5_ib_dev *dev,
4909 const struct mlx5_ib_profile *profile,
4910 int stage)
4911{
4912 /* Number of stages to cleanup */
4913 while (stage) {
4914 stage--;
4915 if (profile->stage[stage].cleanup)

--- 197 unchanged lines hidden ---
4921static void __mlx5_ib_remove(struct mlx5_ib_dev *dev,
4922 const struct mlx5_ib_profile *profile,
4923 int stage)
4924{
4925 /* Number of stages to cleanup */
4926 while (stage) {
4927 stage--;
4928 if (profile->stage[stage].cleanup)

--- 197 unchanged lines hidden ---