1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright 2008-2010 Cisco Systems, Inc. All rights reserved.
4 * Copyright 2007 Nuova Systems, Inc. All rights reserved.
5 */
6
7#ifndef _VNIC_STATS_H_
8#define _VNIC_STATS_H_
9
10/* Tx statistics */
11struct vnic_tx_stats {
12 u64 tx_frames_ok;
13 u64 tx_unicast_frames_ok;
14 u64 tx_multicast_frames_ok;
15 u64 tx_broadcast_frames_ok;
16 u64 tx_bytes_ok;
17 u64 tx_unicast_bytes_ok;
18 u64 tx_multicast_bytes_ok;
19 u64 tx_broadcast_bytes_ok;
20 u64 tx_drops;
21 u64 tx_errors;
22 u64 tx_tso;
23 u64 rsvd[16];
24};
25
26/* Rx statistics */
27struct vnic_rx_stats {
28 u64 rx_frames_ok;
29 u64 rx_frames_total;
30 u64 rx_unicast_frames_ok;
31 u64 rx_multicast_frames_ok;
32 u64 rx_broadcast_frames_ok;
33 u64 rx_bytes_ok;
34 u64 rx_unicast_bytes_ok;
35 u64 rx_multicast_bytes_ok;
36 u64 rx_broadcast_bytes_ok;
37 u64 rx_drop;
38 u64 rx_no_bufs;
39 u64 rx_errors;
40 u64 rx_rss;
41 u64 rx_crc_errors;
42 u64 rx_frames_64;
43 u64 rx_frames_127;
44 u64 rx_frames_255;
45 u64 rx_frames_511;
46 u64 rx_frames_1023;
47 u64 rx_frames_1518;
48 u64 rx_frames_to_max;
49 u64 rsvd[16];
50};
51
52/* Generic statistics */
53struct vnic_gen_stats {
54 u64 dma_map_error;
55};
56
57struct vnic_stats {
58 struct vnic_tx_stats tx;
59 struct vnic_rx_stats rx;
60};
61
62#endif /* _VNIC_STATS_H_ */
63

source code of linux/drivers/net/ethernet/cisco/enic/vnic_stats.h