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