]>
Commit | Line | Data |
---|---|---|
d2912cb1 | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
7fa8d547 SS |
2 | /**************************************************************************** |
3 | * Driver for Solarflare network controllers and boards | |
4 | * Copyright 2014-2015 Solarflare Communications Inc. | |
7fa8d547 SS |
5 | */ |
6 | ||
7 | #ifndef EFX_SRIOV_H | |
8 | #define EFX_SRIOV_H | |
9 | ||
10 | #include "net_driver.h" | |
11 | ||
12 | #ifdef CONFIG_SFC_SRIOV | |
13 | ||
14 | int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac); | |
15 | int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan, | |
79aab093 | 16 | u8 qos, __be16 vlan_proto); |
7fa8d547 SS |
17 | int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i, |
18 | bool spoofchk); | |
19 | int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i, | |
20 | struct ifla_vf_info *ivi); | |
4392dc69 EC |
21 | int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i, |
22 | int link_state); | |
7fa8d547 SS |
23 | #endif /* CONFIG_SFC_SRIOV */ |
24 | ||
25 | #endif /* EFX_SRIOV_H */ |