]> git.proxmox.com Git - ceph.git/blob - ceph/src/seastar/dpdk/drivers/net/enic/base/vnic_stats.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / seastar / dpdk / drivers / net / enic / base / vnic_stats.h
1 /*
2 * Copyright 2008-2010 Cisco Systems, Inc. All rights reserved.
3 * Copyright 2007 Nuova Systems, Inc. All rights reserved.
4 *
5 * Copyright (c) 2014, Cisco Systems, Inc.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 *
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 *
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in
17 * the documentation and/or other materials provided with the
18 * distribution.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 */
34
35 #ifndef _VNIC_STATS_H_
36 #define _VNIC_STATS_H_
37
38 /* Tx statistics */
39 struct vnic_tx_stats {
40 u64 tx_frames_ok;
41 u64 tx_unicast_frames_ok;
42 u64 tx_multicast_frames_ok;
43 u64 tx_broadcast_frames_ok;
44 u64 tx_bytes_ok;
45 u64 tx_unicast_bytes_ok;
46 u64 tx_multicast_bytes_ok;
47 u64 tx_broadcast_bytes_ok;
48 u64 tx_drops;
49 u64 tx_errors;
50 u64 tx_tso;
51 u64 rsvd[16];
52 };
53
54 /* Rx statistics */
55 struct vnic_rx_stats {
56 u64 rx_frames_ok;
57 u64 rx_frames_total;
58 u64 rx_unicast_frames_ok;
59 u64 rx_multicast_frames_ok;
60 u64 rx_broadcast_frames_ok;
61 u64 rx_bytes_ok;
62 u64 rx_unicast_bytes_ok;
63 u64 rx_multicast_bytes_ok;
64 u64 rx_broadcast_bytes_ok;
65 u64 rx_drop;
66 u64 rx_no_bufs;
67 u64 rx_errors;
68 u64 rx_rss;
69 u64 rx_crc_errors;
70 u64 rx_frames_64;
71 u64 rx_frames_127;
72 u64 rx_frames_255;
73 u64 rx_frames_511;
74 u64 rx_frames_1023;
75 u64 rx_frames_1518;
76 u64 rx_frames_to_max;
77 u64 rsvd[16];
78 };
79
80 struct vnic_stats {
81 struct vnic_tx_stats tx;
82 struct vnic_rx_stats rx;
83 };
84
85 #endif /* _VNIC_STATS_H_ */