if_link.h 515 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _LINUX_IF_LINK_H
  2. #define _LINUX_IF_LINK_H
  3. #include <uapi/linux/if_link.h>
  4. /* We don't want this structure exposed to user space */
  5. struct ifla_vf_stats {
  6. __u64 rx_packets;
  7. __u64 tx_packets;
  8. __u64 rx_bytes;
  9. __u64 tx_bytes;
  10. __u64 broadcast;
  11. __u64 multicast;
  12. };
  13. struct ifla_vf_info {
  14. __u32 vf;
  15. __u8 mac[32];
  16. __u32 vlan;
  17. __u32 qos;
  18. __u32 spoofchk;
  19. __u32 linkstate;
  20. __u32 min_tx_rate;
  21. __u32 max_tx_rate;
  22. __u32 rss_query_en;
  23. __u32 trusted;
  24. __be16 vlan_proto;
  25. };
  26. #endif /* _LINUX_IF_LINK_H */