drm/tests: hdmi: Fix memory leaks in drm_display_mode_from_cea_vic()
[drm/drm-misc.git] / drivers / scsi / snic / vnic_stats.h
blob38155aae7a529f8b57c7169eb23245e2ab67cd4d
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright 2014 Cisco Systems, Inc. All rights reserved. */
4 #ifndef _VNIC_STATS_H_
5 #define _VNIC_STATS_H_
7 /* Tx statistics */
8 struct vnic_tx_stats {
9 u64 tx_frames_ok;
10 u64 tx_unicast_frames_ok;
11 u64 tx_multicast_frames_ok;
12 u64 tx_broadcast_frames_ok;
13 u64 tx_bytes_ok;
14 u64 tx_unicast_bytes_ok;
15 u64 tx_multicast_bytes_ok;
16 u64 tx_broadcast_bytes_ok;
17 u64 tx_drops;
18 u64 tx_errors;
19 u64 tx_tso;
20 u64 rsvd[16];
23 /* Rx statistics */
24 struct vnic_rx_stats {
25 u64 rx_frames_ok;
26 u64 rx_frames_total;
27 u64 rx_unicast_frames_ok;
28 u64 rx_multicast_frames_ok;
29 u64 rx_broadcast_frames_ok;
30 u64 rx_bytes_ok;
31 u64 rx_unicast_bytes_ok;
32 u64 rx_multicast_bytes_ok;
33 u64 rx_broadcast_bytes_ok;
34 u64 rx_drop;
35 u64 rx_no_bufs;
36 u64 rx_errors;
37 u64 rx_rss;
38 u64 rx_crc_errors;
39 u64 rx_frames_64;
40 u64 rx_frames_127;
41 u64 rx_frames_255;
42 u64 rx_frames_511;
43 u64 rx_frames_1023;
44 u64 rx_frames_1518;
45 u64 rx_frames_to_max;
46 u64 rsvd[16];
49 struct vnic_stats {
50 struct vnic_tx_stats tx;
51 struct vnic_rx_stats rx;
54 #endif /* _VNIC_STATS_H_ */