10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
24 */
25
26 /*
27 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
28 * Copyright (c) 2013 Saso Kiselkov. All rights reserved.
29 * Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved.
30 * Copyright (c) 2017, Joyent, Inc.
31 */
32
33 #ifndef _IXGBE_SW_H
34 #define _IXGBE_SW_H
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 #include <sys/types.h>
41 #include <sys/conf.h>
42 #include <sys/debug.h>
43 #include <sys/stropts.h>
44 #include <sys/stream.h>
45 #include <sys/strsun.h>
46 #include <sys/strlog.h>
47 #include <sys/kmem.h>
48 #include <sys/stat.h>
49 #include <sys/kstat.h>
50 #include <sys/modctl.h>
767 kstat_named_t link_speed; /* Link Speed */
768
769 kstat_named_t reset_count; /* Reset Count */
770
771 kstat_named_t rx_frame_error; /* Rx Error in Packet */
772 kstat_named_t rx_cksum_error; /* Rx Checksum Error */
773 kstat_named_t rx_exceed_pkt; /* Rx Exceed Max Pkt Count */
774
775 kstat_named_t tx_overload; /* Tx Desc Ring Overload */
776 kstat_named_t tx_fail_no_tcb; /* Tx Fail Freelist Empty */
777 kstat_named_t tx_fail_no_tbd; /* Tx Fail Desc Ring Empty */
778 kstat_named_t tx_fail_dma_bind; /* Tx Fail DMA bind */
779 kstat_named_t tx_reschedule; /* Tx Reschedule */
780 kstat_named_t tx_break_tbd_limit; /* Reached single xmit desc limit */
781 kstat_named_t tx_lso_header_fail; /* New mblk for last LSO hdr frag */
782
783 kstat_named_t gprc; /* Good Packets Received Count */
784 kstat_named_t gptc; /* Good Packets Xmitted Count */
785 kstat_named_t gor; /* Good Octets Received Count */
786 kstat_named_t got; /* Good Octets Xmitd Count */
787 kstat_named_t prc64; /* Packets Received - 64b */
788 kstat_named_t prc127; /* Packets Received - 65-127b */
789 kstat_named_t prc255; /* Packets Received - 127-255b */
790 kstat_named_t prc511; /* Packets Received - 256-511b */
791 kstat_named_t prc1023; /* Packets Received - 511-1023b */
792 kstat_named_t prc1522; /* Packets Received - 1024-1522b */
793 kstat_named_t ptc64; /* Packets Xmitted (64b) */
794 kstat_named_t ptc127; /* Packets Xmitted (64-127b) */
795 kstat_named_t ptc255; /* Packets Xmitted (128-255b) */
796 kstat_named_t ptc511; /* Packets Xmitted (255-511b) */
797 kstat_named_t ptc1023; /* Packets Xmitted (512-1023b) */
798 kstat_named_t ptc1522; /* Packets Xmitted (1024-1522b */
799 kstat_named_t qprc[16]; /* Queue Packets Received Count */
800 kstat_named_t qptc[16]; /* Queue Packets Transmitted Count */
801 kstat_named_t qbrc[16]; /* Queue Bytes Received Count */
802 kstat_named_t qbtc[16]; /* Queue Bytes Transmitted Count */
803
804 kstat_named_t crcerrs; /* CRC Error Count */
805 kstat_named_t illerrc; /* Illegal Byte Error Count */
806 kstat_named_t errbc; /* Error Byte Count */
807 kstat_named_t mspdc; /* MAC Short Packet Discard Count */
808 kstat_named_t mpc; /* Missed Packets Count */
809 kstat_named_t mlfc; /* MAC Local Fault Count */
810 kstat_named_t mrfc; /* MAC Remote Fault Count */
811 kstat_named_t rlec; /* Receive Length Error Count */
812 kstat_named_t lxontxc; /* Link XON Transmitted Count */
813 kstat_named_t lxonrxc; /* Link XON Received Count */
814 kstat_named_t lxofftxc; /* Link XOFF Transmitted Count */
815 kstat_named_t lxoffrxc; /* Link XOFF Received Count */
816 kstat_named_t bprc; /* Broadcasts Pkts Received Count */
817 kstat_named_t mprc; /* Multicast Pkts Received Count */
818 kstat_named_t rnbc; /* Receive No Buffers Count */
819 kstat_named_t ruc; /* Receive Undersize Count */
820 kstat_named_t rfc; /* Receive Frag Count */
821 kstat_named_t roc; /* Receive Oversize Count */
822 kstat_named_t rjc; /* Receive Jabber Count */
|
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22 /*
23 * Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
24 */
25
26 /*
27 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
28 * Copyright (c) 2013 Saso Kiselkov. All rights reserved.
29 * Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved.
30 * Copyright 2019 Joyent, Inc.
31 */
32
33 #ifndef _IXGBE_SW_H
34 #define _IXGBE_SW_H
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 #include <sys/types.h>
41 #include <sys/conf.h>
42 #include <sys/debug.h>
43 #include <sys/stropts.h>
44 #include <sys/stream.h>
45 #include <sys/strsun.h>
46 #include <sys/strlog.h>
47 #include <sys/kmem.h>
48 #include <sys/stat.h>
49 #include <sys/kstat.h>
50 #include <sys/modctl.h>
767 kstat_named_t link_speed; /* Link Speed */
768
769 kstat_named_t reset_count; /* Reset Count */
770
771 kstat_named_t rx_frame_error; /* Rx Error in Packet */
772 kstat_named_t rx_cksum_error; /* Rx Checksum Error */
773 kstat_named_t rx_exceed_pkt; /* Rx Exceed Max Pkt Count */
774
775 kstat_named_t tx_overload; /* Tx Desc Ring Overload */
776 kstat_named_t tx_fail_no_tcb; /* Tx Fail Freelist Empty */
777 kstat_named_t tx_fail_no_tbd; /* Tx Fail Desc Ring Empty */
778 kstat_named_t tx_fail_dma_bind; /* Tx Fail DMA bind */
779 kstat_named_t tx_reschedule; /* Tx Reschedule */
780 kstat_named_t tx_break_tbd_limit; /* Reached single xmit desc limit */
781 kstat_named_t tx_lso_header_fail; /* New mblk for last LSO hdr frag */
782
783 kstat_named_t gprc; /* Good Packets Received Count */
784 kstat_named_t gptc; /* Good Packets Xmitted Count */
785 kstat_named_t gor; /* Good Octets Received Count */
786 kstat_named_t got; /* Good Octets Xmitd Count */
787 kstat_named_t qor; /* Queue Octets Received */
788 kstat_named_t qot; /* Queue Octets Transmitted */
789 kstat_named_t qpr; /* Queue Packets Received */
790 kstat_named_t qpt; /* Queue Packets Transmitted */
791 kstat_named_t prc64; /* Packets Received - 64b */
792 kstat_named_t prc127; /* Packets Received - 65-127b */
793 kstat_named_t prc255; /* Packets Received - 127-255b */
794 kstat_named_t prc511; /* Packets Received - 256-511b */
795 kstat_named_t prc1023; /* Packets Received - 511-1023b */
796 kstat_named_t prc1522; /* Packets Received - 1024-1522b */
797 kstat_named_t ptc64; /* Packets Xmitted (64b) */
798 kstat_named_t ptc127; /* Packets Xmitted (64-127b) */
799 kstat_named_t ptc255; /* Packets Xmitted (128-255b) */
800 kstat_named_t ptc511; /* Packets Xmitted (255-511b) */
801 kstat_named_t ptc1023; /* Packets Xmitted (512-1023b) */
802 kstat_named_t ptc1522; /* Packets Xmitted (1024-1522b */
803
804 kstat_named_t crcerrs; /* CRC Error Count */
805 kstat_named_t illerrc; /* Illegal Byte Error Count */
806 kstat_named_t errbc; /* Error Byte Count */
807 kstat_named_t mspdc; /* MAC Short Packet Discard Count */
808 kstat_named_t mpc; /* Missed Packets Count */
809 kstat_named_t mlfc; /* MAC Local Fault Count */
810 kstat_named_t mrfc; /* MAC Remote Fault Count */
811 kstat_named_t rlec; /* Receive Length Error Count */
812 kstat_named_t lxontxc; /* Link XON Transmitted Count */
813 kstat_named_t lxonrxc; /* Link XON Received Count */
814 kstat_named_t lxofftxc; /* Link XOFF Transmitted Count */
815 kstat_named_t lxoffrxc; /* Link XOFF Received Count */
816 kstat_named_t bprc; /* Broadcasts Pkts Received Count */
817 kstat_named_t mprc; /* Multicast Pkts Received Count */
818 kstat_named_t rnbc; /* Receive No Buffers Count */
819 kstat_named_t ruc; /* Receive Undersize Count */
820 kstat_named_t rfc; /* Receive Frag Count */
821 kstat_named_t roc; /* Receive Oversize Count */
822 kstat_named_t rjc; /* Receive Jabber Count */
|