Print this page
NEX-1890 update oce from source provided by Emulex
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/uts/common/sys/fibre-channel/fca/oce/oce_stat.h
+++ new/usr/src/uts/common/sys/fibre-channel/fca/oce/oce_stat.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
|
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 -/* Copyright © 2003-2011 Emulex. All rights reserved. */
22 +/*
23 + * Copyright (c) 2009-2012 Emulex. All rights reserved.
24 + * Use is subject to license terms.
25 + */
23 26
27 +
28 +
24 29 /*
25 30 * Statistic specific data structures and function prototypes
26 31 */
27 32
28 33 #ifndef _OCE_STAT_H_
29 34 #define _OCE_STAT_H_
30 35
31 36 #ifdef __cplusplus
32 37 extern "C" {
33 38 #endif
34 39
35 40 #include <oce_hw_eth.h>
36 41 #include <oce_impl.h>
37 42
38 43 struct oce_stat {
39 44 kstat_named_t rx_bytes_hi;
40 45 kstat_named_t rx_bytes_lo;
41 46 kstat_named_t rx_frames;
42 47 kstat_named_t rx_errors;
43 48 kstat_named_t rx_drops;
44 49
45 50 kstat_named_t tx_bytes_hi;
46 51 kstat_named_t tx_bytes_lo;
47 52 kstat_named_t tx_frames;
48 53 kstat_named_t tx_errors;
49 54
50 55 kstat_named_t rx_unicast_frames;
51 56 kstat_named_t rx_multicast_frames;
52 57 kstat_named_t rx_broadcast_frames;
53 58 kstat_named_t rx_crc_errors;
54 59
55 60 kstat_named_t rx_alignment_symbol_errors;
56 61 kstat_named_t rx_in_range_errors;
57 62 kstat_named_t rx_out_range_errors;
58 63 kstat_named_t rx_frame_too_long;
59 64 kstat_named_t rx_address_match_errors;
60 65
61 66 kstat_named_t rx_pause_frames;
62 67 kstat_named_t rx_control_frames;
63 68 kstat_named_t rx_ip_checksum_errs;
64 69 kstat_named_t rx_tcp_checksum_errs;
|
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
65 70 kstat_named_t rx_udp_checksum_errs;
66 71 kstat_named_t rx_fifo_overflow;
67 72 kstat_named_t rx_input_fifo_overflow;
68 73
69 74 kstat_named_t tx_unicast_frames;
70 75 kstat_named_t tx_multicast_frames;
71 76 kstat_named_t tx_broadcast_frames;
72 77 kstat_named_t tx_pause_frames;
73 78 kstat_named_t tx_control_frames;
74 79
75 -
76 80 kstat_named_t rx_drops_no_pbuf;
77 81 kstat_named_t rx_drops_no_txpb;
78 82 kstat_named_t rx_drops_no_erx_descr;
79 83 kstat_named_t rx_drops_no_tpre_descr;
80 84 kstat_named_t rx_drops_too_many_frags;
81 85 kstat_named_t rx_drops_invalid_ring;
82 86 kstat_named_t rx_drops_mtu;
83 87
84 88 kstat_named_t rx_dropped_too_small;
85 89 kstat_named_t rx_dropped_too_short;
86 90 kstat_named_t rx_dropped_header_too_small;
87 91 kstat_named_t rx_dropped_tcp_length;
88 92 kstat_named_t rx_dropped_runt;
89 93
90 94 kstat_named_t rx_drops_no_fragments;
95 +
96 + kstat_named_t rx_priority_pause_frames;
97 + kstat_named_t pmem_fifo_overflow_drop;
98 + kstat_named_t jabber_events;
99 + kstat_named_t forwarded_packets;
91 100 };
92 101
93 102 int oce_stat_init(struct oce_dev *dev);
94 103 void oce_stat_fini(struct oce_dev *dev);
95 104
96 105 #ifdef __cplusplus
97 106 }
98 107 #endif
99 108
100 109 #endif /* _OCE_STAT_H_ */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX