hxge_kstats.c revision b83cd2c35abe58abb09c73f2ef35426f1384ad46
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * CDDL HEADER START
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * The contents of this file are subject to the terms of the
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * Common Development and Distribution License (the "License").
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * You may not use this file except in compliance with the License.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * or http://www.opensolaris.org/os/licensing.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * See the License for the specific language governing permissions
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * and limitations under the License.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * When distributing Covered Code, include this CDDL HEADER in each
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * If applicable, add the following below this CDDL HEADER, with the
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * fields enclosed by brackets "[]" replaced with your own identifying
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * information: Portions Copyright [yyyy] [name of copyright owner]
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * CDDL HEADER END
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * Use is subject to license terms.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis HXGE_DEBUG_MSG((hxgep, KST_CTL, "==> hxge_init_statsp"));
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis hxgep->statsp = KMEM_ZALLOC(stats_size, KM_SLEEP);
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis HXGE_DEBUG_MSG((hxgep, KST_CTL, " <== hxge_init_statsp"));
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtistypedef struct {
TDC_STAT_PACKETS = 0,
REORD_TBL_PAR_ERR = 0,
SPC_ACC_ERR = 0,
int channel;
int channel;
static uint64_t
return (addr64);
static kstat_t *
return (NULL);
return (ksp);
RDC_NAME_FORMAT1, i);
TDC_NAME_FORMAT1, i);
int channel;
int channel;
switch (stat) {
case MAC_STAT_IFSPEED:
case MAC_STAT_MULTIRCV:
val = 0;
case MAC_STAT_BRDCSTRCV:
val = 0;
case MAC_STAT_MULTIXMT:
val = 0;
case MAC_STAT_BRDCSTXMT:
val = 0;
case MAC_STAT_NORCVBUF:
val = 0;
case MAC_STAT_IERRORS:
case ETHER_STAT_MACRCV_ERRORS:
val = 0;
case MAC_STAT_NOXMTBUF:
val = 0;
case MAC_STAT_OERRORS:
case MAC_STAT_COLLISIONS:
val = 0;
case MAC_STAT_RBYTES:
case MAC_STAT_IPACKETS:
case MAC_STAT_OBYTES:
case MAC_STAT_OPACKETS:
case MAC_STAT_UNKNOWNS:
val = 0;
case MAC_STAT_UNDERFLOWS:
val = 0;
case MAC_STAT_OVERFLOWS:
val = 0;
case MAC_STAT_LINK_STATE:
case MAC_STAT_LINK_UP:
case MAC_STAT_PROMISC:
case ETHER_STAT_SQE_ERRORS:
val = 0;
case ETHER_STAT_ALIGN_ERRORS:
val = 0;
case ETHER_STAT_FCS_ERRORS:
val = 0;
val = 0;
val = 0;
val = 0;
case ETHER_STAT_EX_COLLISIONS:
val = 0;
case ETHER_STAT_DEFER_XMTS:
val = 0;
case ETHER_STAT_MACXMT_ERRORS:
case ETHER_STAT_XCVR_ADDR:
val = 0;
case ETHER_STAT_XCVR_ID:
val = 0;
case ETHER_STAT_XCVR_INUSE:
val = 0;
case ETHER_STAT_CAP_1000FDX:
val = 0;
case ETHER_STAT_CAP_1000HDX:
val = 0;
case ETHER_STAT_CAP_100FDX:
val = 0;
case ETHER_STAT_CAP_100HDX:
val = 0;
case ETHER_STAT_CAP_10FDX:
val = 0;
case ETHER_STAT_CAP_10HDX:
val = 0;
case ETHER_STAT_CAP_ASMPAUSE:
val = 0;
case ETHER_STAT_CAP_PAUSE:
val = 0;
case ETHER_STAT_CAP_AUTONEG:
val = 0;
val = 0;
val = 0;
val = 0;
val = 0;
case ETHER_STAT_ADV_CAP_10FDX:
val = 0;
case ETHER_STAT_ADV_CAP_10HDX:
val = 0;
val = 0;
case ETHER_STAT_ADV_CAP_PAUSE:
val = 0;
val = 0;
val = 0;
val = 0;
case ETHER_STAT_LP_CAP_100FDX:
val = 0;
case ETHER_STAT_LP_CAP_100HDX:
val = 0;
case ETHER_STAT_LP_CAP_10FDX:
val = 0;
case ETHER_STAT_LP_CAP_10HDX:
val = 0;
val = 0;
case ETHER_STAT_LP_CAP_PAUSE:
val = 0;
val = 0;
case ETHER_STAT_LINK_ASMPAUSE:
val = 0;
case ETHER_STAT_LINK_PAUSE:
val = 0;
case ETHER_STAT_LINK_AUTONEG:
val = 0;
case ETHER_STAT_LINK_DUPLEX:
val = 0;
case ETHER_STAT_CAP_REMFAULT:
val = 0;
case ETHER_STAT_ADV_REMFAULT:
val = 0;
case ETHER_STAT_LP_REMFAULT:
val = 0;
case ETHER_STAT_JABBER_ERRORS:
val = 0;
case ETHER_STAT_CAP_100T4:
val = 0;
case ETHER_STAT_ADV_CAP_100T4:
val = 0;
case ETHER_STAT_LP_CAP_100T4:
val = 0;
return (ENOTSUP);