Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _LINUX_IF_LINK_H
0003 #define _LINUX_IF_LINK_H
0004 
0005 #include <uapi/linux/if_link.h>
0006 
0007 
0008 /* We don't want this structure exposed to user space */
0009 struct ifla_vf_stats {
0010     __u64 rx_packets;
0011     __u64 tx_packets;
0012     __u64 rx_bytes;
0013     __u64 tx_bytes;
0014     __u64 broadcast;
0015     __u64 multicast;
0016     __u64 rx_dropped;
0017     __u64 tx_dropped;
0018 };
0019 
0020 struct ifla_vf_info {
0021     __u32 vf;
0022     __u8 mac[32];
0023     __u32 vlan;
0024     __u32 qos;
0025     __u32 spoofchk;
0026     __u32 linkstate;
0027     __u32 min_tx_rate;
0028     __u32 max_tx_rate;
0029     __u32 rss_query_en;
0030     __u32 trusted;
0031     __be16 vlan_proto;
0032 };
0033 #endif /* _LINUX_IF_LINK_H */