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