18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright 2008 Cisco Systems, Inc.  All rights reserved.
38c2ecf20Sopenharmony_ci * Copyright 2007 Nuova Systems, Inc.  All rights reserved.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * This program is free software; you may redistribute it and/or modify
68c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by
78c2ecf20Sopenharmony_ci * the Free Software Foundation; version 2 of the License.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
108c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
118c2ecf20Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
128c2ecf20Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
138c2ecf20Sopenharmony_ci * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
148c2ecf20Sopenharmony_ci * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
158c2ecf20Sopenharmony_ci * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
168c2ecf20Sopenharmony_ci * SOFTWARE.
178c2ecf20Sopenharmony_ci */
188c2ecf20Sopenharmony_ci#ifndef _VNIC_STATS_H_
198c2ecf20Sopenharmony_ci#define _VNIC_STATS_H_
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ci/* Tx statistics */
228c2ecf20Sopenharmony_cistruct vnic_tx_stats {
238c2ecf20Sopenharmony_ci	u64 tx_frames_ok;
248c2ecf20Sopenharmony_ci	u64 tx_unicast_frames_ok;
258c2ecf20Sopenharmony_ci	u64 tx_multicast_frames_ok;
268c2ecf20Sopenharmony_ci	u64 tx_broadcast_frames_ok;
278c2ecf20Sopenharmony_ci	u64 tx_bytes_ok;
288c2ecf20Sopenharmony_ci	u64 tx_unicast_bytes_ok;
298c2ecf20Sopenharmony_ci	u64 tx_multicast_bytes_ok;
308c2ecf20Sopenharmony_ci	u64 tx_broadcast_bytes_ok;
318c2ecf20Sopenharmony_ci	u64 tx_drops;
328c2ecf20Sopenharmony_ci	u64 tx_errors;
338c2ecf20Sopenharmony_ci	u64 tx_tso;
348c2ecf20Sopenharmony_ci	u64 rsvd[16];
358c2ecf20Sopenharmony_ci};
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci/* Rx statistics */
388c2ecf20Sopenharmony_cistruct vnic_rx_stats {
398c2ecf20Sopenharmony_ci	u64 rx_frames_ok;
408c2ecf20Sopenharmony_ci	u64 rx_frames_total;
418c2ecf20Sopenharmony_ci	u64 rx_unicast_frames_ok;
428c2ecf20Sopenharmony_ci	u64 rx_multicast_frames_ok;
438c2ecf20Sopenharmony_ci	u64 rx_broadcast_frames_ok;
448c2ecf20Sopenharmony_ci	u64 rx_bytes_ok;
458c2ecf20Sopenharmony_ci	u64 rx_unicast_bytes_ok;
468c2ecf20Sopenharmony_ci	u64 rx_multicast_bytes_ok;
478c2ecf20Sopenharmony_ci	u64 rx_broadcast_bytes_ok;
488c2ecf20Sopenharmony_ci	u64 rx_drop;
498c2ecf20Sopenharmony_ci	u64 rx_no_bufs;
508c2ecf20Sopenharmony_ci	u64 rx_errors;
518c2ecf20Sopenharmony_ci	u64 rx_rss;
528c2ecf20Sopenharmony_ci	u64 rx_crc_errors;
538c2ecf20Sopenharmony_ci	u64 rx_frames_64;
548c2ecf20Sopenharmony_ci	u64 rx_frames_127;
558c2ecf20Sopenharmony_ci	u64 rx_frames_255;
568c2ecf20Sopenharmony_ci	u64 rx_frames_511;
578c2ecf20Sopenharmony_ci	u64 rx_frames_1023;
588c2ecf20Sopenharmony_ci	u64 rx_frames_1518;
598c2ecf20Sopenharmony_ci	u64 rx_frames_to_max;
608c2ecf20Sopenharmony_ci	u64 rsvd[16];
618c2ecf20Sopenharmony_ci};
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_cistruct vnic_stats {
648c2ecf20Sopenharmony_ci	struct vnic_tx_stats tx;
658c2ecf20Sopenharmony_ci	struct vnic_rx_stats rx;
668c2ecf20Sopenharmony_ci};
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci#endif /* _VNIC_STATS_H_ */
69