1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright 2014 Cisco Systems, Inc. All rights reserved. */ 3 4 #ifndef _VNIC_STATS_H_ 5 #define _VNIC_STATS_H_ 6 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]; 21 }; 22 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]; 47 }; 48 49 struct vnic_stats { 50 struct vnic_tx_stats tx; 51 struct vnic_rx_stats rx; 52 }; 53 54 #endif /* _VNIC_STATS_H_ */ 55