2 * Copyright 2014 Cisco Systems, Inc. All rights reserved.
4 * This program is free software; you may redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
9 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
10 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
11 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
12 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
13 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
14 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18 #ifndef _VNIC_STATS_H_
19 #define _VNIC_STATS_H_
22 struct vnic_tx_stats
{
24 u64 tx_unicast_frames_ok
;
25 u64 tx_multicast_frames_ok
;
26 u64 tx_broadcast_frames_ok
;
28 u64 tx_unicast_bytes_ok
;
29 u64 tx_multicast_bytes_ok
;
30 u64 tx_broadcast_bytes_ok
;
38 struct vnic_rx_stats
{
41 u64 rx_unicast_frames_ok
;
42 u64 rx_multicast_frames_ok
;
43 u64 rx_broadcast_frames_ok
;
45 u64 rx_unicast_bytes_ok
;
46 u64 rx_multicast_bytes_ok
;
47 u64 rx_broadcast_bytes_ok
;
64 struct vnic_tx_stats tx
;
65 struct vnic_rx_stats rx
;
68 #endif /* _VNIC_STATS_H_ */