Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
vnic_stats.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Cisco Systems, Inc. All rights reserved.
3  * Copyright 2007 Nuova Systems, Inc. All rights reserved.
4  *
5  * This program is free software; you may redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; version 2 of the License.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
10  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
11  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
12  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
13  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
14  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
15  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16  * SOFTWARE.
17  */
18 #ifndef _VNIC_STATS_H_
19 #define _VNIC_STATS_H_
20 
21 /* Tx statistics */
22 struct vnic_tx_stats {
31  u64 tx_drops;
32  u64 tx_errors;
33  u64 tx_tso;
34  u64 rsvd[16];
35 };
36 
37 /* Rx statistics */
38 struct vnic_rx_stats {
48  u64 rx_drop;
50  u64 rx_errors;
51  u64 rx_rss;
60  u64 rsvd[16];
61 };
62 
63 struct vnic_stats {
64  struct vnic_tx_stats tx;
65  struct vnic_rx_stats rx;
66 };
67 
68 #endif /* _VNIC_STATS_H_ */