sriov.h 848 B

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