sriov.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /****************************************************************************
  2. * Driver for Solarflare network controllers and boards
  3. * Copyright 2014-2015 Solarflare Communications Inc.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License version 2 as published
  7. * by the Free Software Foundation, incorporated herein by reference.
  8. */
  9. #ifndef EFX_SRIOV_H
  10. #define EFX_SRIOV_H
  11. #include "net_driver.h"
  12. #ifdef CONFIG_SFC_SRIOV
  13. int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac);
  14. int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan,
  15. u8 qos, __be16 vlan_proto);
  16. int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i,
  17. bool spoofchk);
  18. int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i,
  19. struct ifla_vf_info *ivi);
  20. int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i,
  21. int link_state);
  22. int efx_sriov_get_phys_port_id(struct net_device *net_dev,
  23. struct netdev_phys_item_id *ppid);
  24. #endif /* CONFIG_SFC_SRIOV */
  25. #endif /* EFX_SRIOV_H */