18e6e287fSHans Petter Selasky /*-
28e6e287fSHans Petter Selasky * Copyright (c) 2016, Mellanox Technologies, Ltd. All rights reserved.
38e6e287fSHans Petter Selasky *
48e6e287fSHans Petter Selasky * Redistribution and use in source and binary forms, with or without
58e6e287fSHans Petter Selasky * modification, are permitted provided that the following conditions
68e6e287fSHans Petter Selasky * are met:
78e6e287fSHans Petter Selasky * 1. Redistributions of source code must retain the above copyright
88e6e287fSHans Petter Selasky * notice, this list of conditions and the following disclaimer.
98e6e287fSHans Petter Selasky * 2. Redistributions in binary form must reproduce the above copyright
108e6e287fSHans Petter Selasky * notice, this list of conditions and the following disclaimer in the
118e6e287fSHans Petter Selasky * documentation and/or other materials provided with the distribution.
128e6e287fSHans Petter Selasky *
138e6e287fSHans Petter Selasky * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS `AS IS' AND
148e6e287fSHans Petter Selasky * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
158e6e287fSHans Petter Selasky * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
168e6e287fSHans Petter Selasky * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
178e6e287fSHans Petter Selasky * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
188e6e287fSHans Petter Selasky * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
198e6e287fSHans Petter Selasky * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
208e6e287fSHans Petter Selasky * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
218e6e287fSHans Petter Selasky * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
228e6e287fSHans Petter Selasky * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
238e6e287fSHans Petter Selasky * SUCH DAMAGE.
248e6e287fSHans Petter Selasky */
258e6e287fSHans Petter Selasky
2670600979SKonstantin Belousov #include "opt_rss.h"
2770600979SKonstantin Belousov #include "opt_ratelimit.h"
2870600979SKonstantin Belousov
298e6e287fSHans Petter Selasky #include <linux/module.h>
308e6e287fSHans Petter Selasky #include <dev/mlx5/vport.h>
31*028130b8SKonstantin Belousov #include <dev/mlx5/mlx5_ib/mlx5_ib.h>
328e6e287fSHans Petter Selasky
mlx5_ib_get_vf_config(struct ib_device * device,int vf,u8 port,struct ifla_vf_info * info)338e6e287fSHans Petter Selasky int mlx5_ib_get_vf_config(struct ib_device *device, int vf, u8 port,
348e6e287fSHans Petter Selasky struct ifla_vf_info *info)
358e6e287fSHans Petter Selasky {
368e6e287fSHans Petter Selasky return -EOPNOTSUPP;
378e6e287fSHans Petter Selasky }
388e6e287fSHans Petter Selasky
mlx5_ib_set_vf_link_state(struct ib_device * device,int vf,u8 port,int state)398e6e287fSHans Petter Selasky int mlx5_ib_set_vf_link_state(struct ib_device *device, int vf,
408e6e287fSHans Petter Selasky u8 port, int state)
418e6e287fSHans Petter Selasky {
428e6e287fSHans Petter Selasky return -EOPNOTSUPP;
438e6e287fSHans Petter Selasky }
448e6e287fSHans Petter Selasky
mlx5_ib_get_vf_stats(struct ib_device * device,int vf,u8 port,struct ifla_vf_stats * stats)458e6e287fSHans Petter Selasky int mlx5_ib_get_vf_stats(struct ib_device *device, int vf,
468e6e287fSHans Petter Selasky u8 port, struct ifla_vf_stats *stats)
478e6e287fSHans Petter Selasky {
488e6e287fSHans Petter Selasky return -EOPNOTSUPP;
498e6e287fSHans Petter Selasky }
508e6e287fSHans Petter Selasky
mlx5_ib_set_vf_guid(struct ib_device * device,int vf,u8 port,u64 guid,int type)518e6e287fSHans Petter Selasky int mlx5_ib_set_vf_guid(struct ib_device *device, int vf, u8 port,
528e6e287fSHans Petter Selasky u64 guid, int type)
538e6e287fSHans Petter Selasky {
548e6e287fSHans Petter Selasky return -EOPNOTSUPP;
558e6e287fSHans Petter Selasky }
56