2 * Copyright 2008 Cisco Systems, Inc. All rights reserved.
3 * Copyright 2007 Nuova Systems, Inc. All rights reserved.
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.
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
20 #ifndef _VNIC_STATS_H_
21 #define _VNIC_STATS_H_
24 struct vnic_tx_stats
{
26 u64 tx_unicast_frames_ok
;
27 u64 tx_multicast_frames_ok
;
28 u64 tx_broadcast_frames_ok
;
30 u64 tx_unicast_bytes_ok
;
31 u64 tx_multicast_bytes_ok
;
32 u64 tx_broadcast_bytes_ok
;
40 struct vnic_rx_stats
{
43 u64 rx_unicast_frames_ok
;
44 u64 rx_multicast_frames_ok
;
45 u64 rx_broadcast_frames_ok
;
47 u64 rx_unicast_bytes_ok
;
48 u64 rx_multicast_bytes_ok
;
49 u64 rx_broadcast_bytes_ok
;
66 struct vnic_tx_stats tx
;
67 struct vnic_rx_stats rx
;
70 #endif /* _VNIC_STATS_H_ */