Merge branch 'sfc-next'
[deliverable/linux.git] / drivers / net / ethernet / sfc / ef10_sriov.h
1 /****************************************************************************
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
15 static inline bool efx_ef10_sriov_wanted(struct efx_nic *efx)
16 {
17 return false;
18 }
19
20 int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
21
22 static inline int efx_ef10_sriov_init(struct efx_nic *efx)
23 {
24 return -EOPNOTSUPP;
25 }
26
27 static inline void efx_ef10_sriov_mac_address_changed(struct efx_nic *efx) {}
28 static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {}
29 static inline void efx_ef10_sriov_fini(struct efx_nic *efx) {}
30 static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {}
31
32 #ifdef CONFIG_SFC_SRIOV
33 static inline int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf,
34 u8 *mac)
35 {
36 return -EOPNOTSUPP;
37 }
38
39 static inline int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf,
40 u16 vlan, u8 qos)
41 {
42 return -EOPNOTSUPP;
43 }
44
45 static inline int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
46 bool spoofchk)
47 {
48 return -EOPNOTSUPP;
49 }
50
51 static inline int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf,
52 struct ifla_vf_info *ivf)
53 {
54 return -EOPNOTSUPP;
55 }
56 #endif /* CONFIG_SFC_SRIOV */
57
58 #endif /* EF10_SRIOV_H */
This page took 0.486629 seconds and 6 git commands to generate.