blob: 4c54611e03e967afe6a9eaa4fd35a6113db91632 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
YOSHIFUJI Hideakicbde1662006-09-27 22:40:19 -07002#ifndef _LINUX_IF_LINK_H
3#define _LINUX_IF_LINK_H
4
David Howells607ca462012-10-13 10:46:48 +01005#include <uapi/linux/if_link.h>
YOSHIFUJI Hideakicbde1662006-09-27 22:40:19 -07006
Greg Rose5f8444a2011-10-08 03:05:24 +00007
8/* We don't want this structure exposed to user space */
Eran Ben Elisha3b766cd2015-06-15 17:59:07 +03009struct 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
Williams, Mitch Ab280da82010-02-10 01:43:24 +000018struct ifla_vf_info {
19 __u32 vf;
20 __u8 mac[32];
21 __u32 vlan;
22 __u32 qos;
Greg Rose5f8444a2011-10-08 03:05:24 +000023 __u32 spoofchk;
Rony Efraim1d8faf42013-06-13 13:19:10 +030024 __u32 linkstate;
Sucheta Chakrabortyed616682014-05-22 09:59:05 -040025 __u32 min_tx_rate;
26 __u32 max_tx_rate;
Vlad Zolotarov01a3d792015-03-30 21:35:23 +030027 __u32 rss_query_en;
Hiroshi Shimamotodd461d62015-08-28 06:57:55 +000028 __u32 trusted;
Moshe Shemesh79aab092016-09-22 12:11:15 +030029 __be16 vlan_proto;
Williams, Mitch Ab280da82010-02-10 01:43:24 +000030};
YOSHIFUJI Hideakicbde1662006-09-27 22:40:19 -070031#endif /* _LINUX_IF_LINK_H */