Shradha Shah | 7fa8d54 | 2015-05-06 00:55:13 +0100 | [diff] [blame^] | 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 | static inline int efx_ef10_sriov_init(struct efx_nic *efx) |
| 21 | { |
| 22 | return -EOPNOTSUPP; |
| 23 | } |
| 24 | |
| 25 | static inline void efx_ef10_sriov_mac_address_changed(struct efx_nic *efx) {} |
| 26 | static inline void efx_ef10_sriov_reset(struct efx_nic *efx) {} |
| 27 | static inline void efx_ef10_sriov_fini(struct efx_nic *efx) {} |
| 28 | static inline void efx_ef10_sriov_flr(struct efx_nic *efx, unsigned vf_i) {} |
| 29 | |
| 30 | static inline int efx_ef10_sriov_set_vf_mac(struct efx_nic *efx, int vf, |
| 31 | u8 *mac) |
| 32 | { |
| 33 | return -EOPNOTSUPP; |
| 34 | } |
| 35 | |
| 36 | static 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 | |
| 42 | static inline int efx_ef10_sriov_set_vf_spoofchk(struct efx_nic *efx, int vf, |
| 43 | bool spoofchk) |
| 44 | { |
| 45 | return -EOPNOTSUPP; |
| 46 | } |
| 47 | |
| 48 | static 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 */ |