forked from Minki/linux
7fa8d54704
By putting all the efx_{siena,ef10}_sriov_* declarations in {siena,ef10}_sriov.h, ensure they cannot be called from nic-generic code. Also fixes up an instance of this, where mcdi.c was calling efx_siena_sriov_flr. The single instance of netdev_ops should call general high level functions that can then call something adapter specific in efx_nic_type. We should only do adapter specialisation via efx_nic_type. Removal of sriov functionality from the Falcon code means that tests are needed for the presence of some callbacks. Signed-off-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
28 lines
919 B
C
28 lines
919 B
C
/****************************************************************************
|
|
* Driver for Solarflare network controllers and boards
|
|
* Copyright 2014-2015 Solarflare Communications Inc.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License version 2 as published
|
|
* by the Free Software Foundation, incorporated herein by reference.
|
|
*/
|
|
|
|
#ifndef EFX_SRIOV_H
|
|
#define EFX_SRIOV_H
|
|
|
|
#include "net_driver.h"
|
|
|
|
#ifdef CONFIG_SFC_SRIOV
|
|
|
|
int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
|
|
int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
|
|
u8 qos);
|
|
int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
|
|
bool spoofchk);
|
|
int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
|
|
struct ifla_vf_info *ivi);
|
|
|
|
#endif /* CONFIG_SFC_SRIOV */
|
|
|
|
#endif /* EFX_SRIOV_H */
|