blob: 1ba9ecc6d78fa9bc2bf28b755d402cc2fb87b424 [file] [log] [blame]
Shradha Shah7fa8d542015-05-06 00:55:13 +01001/****************************************************************************
2 * Driver for Solarflare network controllers and boards
3 * Copyright 2015 Solarflare Communications Inc.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published
7 * by the Free Software Foundation, incorporated herein by reference.
8 */
9
10#ifndef EF10_SRIOV_H
11#define EF10_SRIOV_H
12
13#include "net_driver.h"
14
15static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx)
16{
17 return false;
18}
19
20static inline int efx_ef10_sriov_init(struct efx_nic *efx)
21{
22 return -EOPNOTSUPP;
23}
24
25static inline void efx_ef10_sriov_mac_address_changed(struct efx_nic *efx) {}
26static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {}
27static inline void efx_ef10_sriov_fini(struct efx_nic *efx) {}
28static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {}
29
30static inline int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf,
31 u8 *mac)
32{
33 return -EOPNOTSUPP;
34}
35
36static inline int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf,
37 u16 vlan, u8 qos)
38{
39 return -EOPNOTSUPP;
40}
41
42static inline int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
43 bool spoofchk)
44{
45 return -EOPNOTSUPP;
46}
47
48static inline int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf,
49 struct ifla_vf_info *ivf)
50{
51 return -EOPNOTSUPP;
52}
53
54#endif /* EF10_SRIOV_H */