Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright 2008 Cisco Systems, Inc.  All rights reserved.
0004  * Copyright 2007 Nuova Systems, Inc.  All rights reserved.
0005  */
0006 #ifndef _VNIC_STATS_H_
0007 #define _VNIC_STATS_H_
0008 
0009 /* Tx statistics */
0010 struct vnic_tx_stats {
0011     u64 tx_frames_ok;
0012     u64 tx_unicast_frames_ok;
0013     u64 tx_multicast_frames_ok;
0014     u64 tx_broadcast_frames_ok;
0015     u64 tx_bytes_ok;
0016     u64 tx_unicast_bytes_ok;
0017     u64 tx_multicast_bytes_ok;
0018     u64 tx_broadcast_bytes_ok;
0019     u64 tx_drops;
0020     u64 tx_errors;
0021     u64 tx_tso;
0022     u64 rsvd[16];
0023 };
0024 
0025 /* Rx statistics */
0026 struct vnic_rx_stats {
0027     u64 rx_frames_ok;
0028     u64 rx_frames_total;
0029     u64 rx_unicast_frames_ok;
0030     u64 rx_multicast_frames_ok;
0031     u64 rx_broadcast_frames_ok;
0032     u64 rx_bytes_ok;
0033     u64 rx_unicast_bytes_ok;
0034     u64 rx_multicast_bytes_ok;
0035     u64 rx_broadcast_bytes_ok;
0036     u64 rx_drop;
0037     u64 rx_no_bufs;
0038     u64 rx_errors;
0039     u64 rx_rss;
0040     u64 rx_crc_errors;
0041     u64 rx_frames_64;
0042     u64 rx_frames_127;
0043     u64 rx_frames_255;
0044     u64 rx_frames_511;
0045     u64 rx_frames_1023;
0046     u64 rx_frames_1518;
0047     u64 rx_frames_to_max;
0048     u64 rsvd[16];
0049 };
0050 
0051 struct vnic_stats {
0052     struct vnic_tx_stats tx;
0053     struct vnic_rx_stats rx;
0054 };
0055 
0056 #endif /* _VNIC_STATS_H_ */