aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xeno/vif.h
diff options
context:
space:
mode:
Diffstat (limited to 'xen/include/xeno/vif.h')
-rw-r--r--xen/include/xeno/vif.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/xeno/vif.h b/xen/include/xeno/vif.h
index 8e4fcab444..3c38668bd6 100644
--- a/xen/include/xeno/vif.h
+++ b/xen/include/xeno/vif.h
@@ -66,6 +66,12 @@ typedef struct net_vif_st {
unsigned int tx_req_cons;
unsigned int tx_resp_prod; /* private version of shared variable */
+ /* Usage accounting */
+ long long total_bytes_sent;
+ long long total_bytes_received;
+ long long total_packets_sent;
+ long long total_packets_received;
+
/* Miscellaneous private stuff. */
struct task_struct *domain;
unsigned int idx; /* index within domain */