xref: /openbmc/linux/drivers/net/ethernet/sfc/sriov.h (revision 7fa8d547)
17fa8d547SShradha Shah /****************************************************************************
27fa8d547SShradha Shah  * Driver for Solarflare network controllers and boards
37fa8d547SShradha Shah  * Copyright 2014-2015 Solarflare Communications Inc.
47fa8d547SShradha Shah  *
57fa8d547SShradha Shah  * This program is free software; you can redistribute it and/or modify it
67fa8d547SShradha Shah  * under the terms of the GNU General Public License version 2 as published
77fa8d547SShradha Shah  * by the Free Software Foundation, incorporated herein by reference.
87fa8d547SShradha Shah  */
97fa8d547SShradha Shah 
107fa8d547SShradha Shah #ifndef EFX_SRIOV_H
117fa8d547SShradha Shah #define EFX_SRIOV_H
127fa8d547SShradha Shah 
137fa8d547SShradha Shah #include "net_driver.h"
147fa8d547SShradha Shah 
157fa8d547SShradha Shah #ifdef CONFIG_SFC_SRIOV
167fa8d547SShradha Shah 
177fa8d547SShradha Shah int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
187fa8d547SShradha Shah int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
197fa8d547SShradha Shah 			  u8 qos);
207fa8d547SShradha Shah int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
217fa8d547SShradha Shah 			      bool spoofchk);
227fa8d547SShradha Shah int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
237fa8d547SShradha Shah 			    struct ifla_vf_info *ivi);
247fa8d547SShradha Shah 
257fa8d547SShradha Shah #endif /* CONFIG_SFC_SRIOV */
267fa8d547SShradha Shah 
277fa8d547SShradha Shah #endif /* EFX_SRIOV_H */
28