vgen_stats.h revision 06db247c678f0e3956535e8a6dec31d6c2108827
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * CDDL HEADER START
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * The contents of this file are subject to the terms of the
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * Common Development and Distribution License (the "License").
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * You may not use this file except in compliance with the License.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * See the License for the specific language governing permissions
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * and limitations under the License.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * When distributing Covered Code, include this CDDL HEADER in each
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * If applicable, add the following below this CDDL HEADER, with the
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * fields enclosed by brackets "[]" replaced with your own identifying
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * information: Portions Copyright [yyyy] [name of copyright owner]
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * CDDL HEADER END
681d9761e8516a7dc5ab6589e2dfe717777e1123Eric Taylor * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * Use is subject to license terms.
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai#pragma ident "%Z%%M% %I% %E% SMI"
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaiextern "C" {
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaitypedef struct vgen_stats {
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai /* Link Input/Output stats */
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai /* MIB II variables */
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai /* Tx Statistics */
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai uint32_t tx_no_desc; /* # out of transmit descriptors */
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai /* Rx Statistics */
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai uint32_t rx_allocb_fail; /* # rx buf allocb() failures */
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai uint32_t rx_vio_allocb_fail; /* # vio_allocb() failures */
d62bc4badc1c1f1549c961cfb8b420e650e1272byz /* Callback statistics */
0a0e9771ca0211c15f3ac4466b661c145feeb9e4Darren Reed uint32_t dring_data_acks; /* # dring data acks recvd */
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai uint32_t dring_stopped_acks; /* # dring stopped acks recvd */
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe uint32_t dring_data_msgs; /* # dring data msgs sent */
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllaitypedef struct vgen_kstats {
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * Link Input/Output stats
facf4a8d7b59fde89a8662b4f4c73a758e6c402cllai * required by kstat for MIB II objects(RFC 1213)
#ifdef __cplusplus