blob: 5f26d1bb8bea777d526eee12f68727ea7f859300 [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
Shradha Shah834e23d2015-05-06 00:55:58 +010020int efx_ef10_sriov_configure(struct efx_nic *efx, int num_vfs);
21
Shradha Shah7fa8d542015-05-06 00:55:13 +010022static inline int efx_ef10_sriov_init(struct efx_nic *efx)
23{
24 return -EOPNOTSUPP;
25}
26
27static inline void efx_ef10_sriov_mac_address_changed(struct efx_nic *efx) {}
28static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {}
29static inline void efx_ef10_sriov_fini(struct efx_nic *efx) {}
30static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {}
31
32static inline int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf,
33 u8 *mac)
34{
35 return -EOPNOTSUPP;
36}
37
38static inline int efx_ef10_sriov_set_vf_vlan(struct efx_nic *efx, int vf,
39 u16 vlan, u8 qos)
40{
41 return -EOPNOTSUPP;
42}
43
44static inline int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf,
45 bool spoofchk)
46{
47 return -EOPNOTSUPP;
48}
49
50static inline int efx_ef10_sriov_get_vf_config(struct efx_nic *efx, int vf,
51 struct ifla_vf_info *ivf)
52{
53 return -EOPNOTSUPP;
54}
55
56#endif /* EF10_SRIOV_H */