Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /****************************************************************************
0003  * Driver for Solarflare network controllers and boards
0004  * Copyright 2014-2015 Solarflare Communications Inc.
0005  */
0006 
0007 #ifndef EFX_SRIOV_H
0008 #define EFX_SRIOV_H
0009 
0010 #include "net_driver.h"
0011 
0012 #ifdef CONFIG_SFC_SRIOV
0013 
0014 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
0015 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
0016               u8 qos, __be16 vlan_proto);
0017 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
0018                   bool spoofchk);
0019 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
0020                 struct ifla_vf_info *ivi);
0021 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
0022                 int link_state);
0023 #endif /* CONFIG_SFC_SRIOV */
0024 
0025 #endif /* EFX_SRIOV_H */