xref: /openbmc/linux/drivers/net/ethernet/sfc/sriov.h (revision d2912cb1)
1d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
27fa8d547SShradha Shah /****************************************************************************
37fa8d547SShradha Shah  * Driver for Solarflare network controllers and boards
47fa8d547SShradha Shah  * Copyright 2014-2015 Solarflare Communications Inc.
57fa8d547SShradha Shah  */
67fa8d547SShradha Shah 
77fa8d547SShradha Shah #ifndef EFX_SRIOV_H
87fa8d547SShradha Shah #define EFX_SRIOV_H
97fa8d547SShradha Shah 
107fa8d547SShradha Shah #include "net_driver.h"
117fa8d547SShradha Shah 
127fa8d547SShradha Shah #ifdef CONFIG_SFC_SRIOV
137fa8d547SShradha Shah 
147fa8d547SShradha Shah int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
157fa8d547SShradha Shah int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
1679aab093SMoshe Shemesh 			  u8 qos, __be16 vlan_proto);
177fa8d547SShradha Shah int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
187fa8d547SShradha Shah 			      bool spoofchk);
197fa8d547SShradha Shah int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
207fa8d547SShradha Shah 			    struct ifla_vf_info *ivi);
214392dc69SEdward Cree int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
224392dc69SEdward Cree 				int link_state);
237fa8d547SShradha Shah #endif /* CONFIG_SFC_SRIOV */
247fa8d547SShradha Shah 
257fa8d547SShradha Shah #endif /* EFX_SRIOV_H */
26