| 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 | __u64 rx_dropped; | 
|---|
| 17 | __u64 tx_dropped; | 
|---|
| 18 | }; | 
|---|
| 19 |  | 
|---|
| 20 | struct ifla_vf_info { | 
|---|
| 21 | __u32 vf; | 
|---|
| 22 | __u8 mac[32]; | 
|---|
| 23 | __u32 vlan; | 
|---|
| 24 | __u32 qos; | 
|---|
| 25 | __u32 spoofchk; | 
|---|
| 26 | __u32 linkstate; | 
|---|
| 27 | __u32 min_tx_rate; | 
|---|
| 28 | __u32 max_tx_rate; | 
|---|
| 29 | __u32 ; | 
|---|
| 30 | __u32 trusted; | 
|---|
| 31 | __be16 vlan_proto; | 
|---|
| 32 | }; | 
|---|
| 33 | #endif /* _LINUX_IF_LINK_H */ | 
|---|
| 34 |  | 
|---|