aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/if_link.h
diff options
context:
space:
mode:
authorEugenia Emantayev <eugenia@mellanox.com>2017-07-17 13:47:07 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2018-01-09 07:40:48 +0200
commitc5a9f6f0ab4054082dd5ce9bbdaa8e8ff05cf365 (patch)
treef3815ac136ebecb49b9ea73a20b290981c61c7ff /include/linux/if_link.h
parentnet/mlx5e: IPoIB, Fix spelling mistake "functionts" -> "functions" (diff)
downloadwireguard-linux-c5a9f6f0ab4054082dd5ce9bbdaa8e8ff05cf365.tar.xz
wireguard-linux-c5a9f6f0ab4054082dd5ce9bbdaa8e8ff05cf365.zip
net/core: Add drop counters to VF statistics
Modern hardware can decide to drop packets going to/from a VF. Add receive and transmit drop counters to be displayed at hypervisor layer in iproute2 per VF statistics. Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/if_link.h')
-rw-r--r--include/linux/if_link.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/if_link.h b/include/linux/if_link.h
index 4c54611e03e9..622658dfbf0a 100644
--- a/include/linux/if_link.h
+++ b/include/linux/if_link.h
@@ -13,6 +13,8 @@ struct ifla_vf_stats {
__u64 tx_bytes;
__u64 broadcast;
__u64 multicast;
+ __u64 rx_dropped;
+ __u64 tx_dropped;
};
struct ifla_vf_info {