if_link.h 592 Bytes
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0 */
2 3 4
#ifndef _LINUX_IF_LINK_H
#define _LINUX_IF_LINK_H

5
#include <uapi/linux/if_link.h>
6

7 8

/* We don't want this structure exposed to user space */
9 10 11 12 13 14 15
struct ifla_vf_stats {
	__u64 rx_packets;
	__u64 tx_packets;
	__u64 rx_bytes;
	__u64 tx_bytes;
	__u64 broadcast;
	__u64 multicast;
16 17
	__u64 rx_dropped;
	__u64 tx_dropped;
18 19
};

20 21 22 23 24
struct ifla_vf_info {
	__u32 vf;
	__u8 mac[32];
	__u32 vlan;
	__u32 qos;
25
	__u32 spoofchk;
26
	__u32 linkstate;
27 28
	__u32 min_tx_rate;
	__u32 max_tx_rate;
29
	__u32 rss_query_en;
30
	__u32 trusted;
31
	__be16 vlan_proto;
32
};
33
#endif /* _LINUX_IF_LINK_H */