if_link.h 592 B

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