2 * Copyright (c) 2005 SilverStorm Technologies. All rights reserved.
\r
4 * This software is available to you under the OpenIB.org BSD license
\r
7 * Redistribution and use in source and binary forms, with or
\r
8 * without modification, are permitted provided that the following
\r
9 * conditions are met:
\r
11 * - Redistributions of source code must retain the above
\r
12 * copyright notice, this list of conditions and the following
\r
15 * - Redistributions in binary form must reproduce the above
\r
16 * copyright notice, this list of conditions and the following
\r
17 * disclaimer in the documentation and/or other materials
\r
18 * provided with the distribution.
\r
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
\r
21 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
\r
22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
\r
23 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
\r
24 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
\r
25 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
26 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
\r
36 #ifndef _IP_STATS_H_
\r
37 #define _IP_STATS_H_
\r
40 #include <complib/cl_types.h>
\r
43 /****s* IB Network Drivers/ip_data_stats_t
\r
48 * Defines data transfer statistic information for an IP device.
\r
52 typedef struct _ip_data_stats
\r
61 * Total number of bytes transfered.
\r
64 * Total number of frames transfered.
\r
67 * IPoIB, INIC, ip_comp_stats_t, ip_stats_t
\r
71 /****s* IB Network Drivers/ip_comp_stats_t
\r
76 * Defines transfer completion statistic information for an IP device.
\r
80 typedef struct _ip_comp_stats
\r
90 * Total number of requests transfered successfully.
\r
93 * Total number of requests that failed being transfered.
\r
96 * Total number of requests that were dropped.
\r
99 * IPoIB, INIC, ip_data_stats_t, ip_stats_t
\r
103 /****s* IB Network Drivers/ip_stats_t
\r
108 * Defines statistic information for an IP device.
\r
112 typedef struct _ip_stats
\r
114 ip_comp_stats_t comp;
\r
115 ip_data_stats_t ucast;
\r
116 ip_data_stats_t bcast;
\r
117 ip_data_stats_t mcast;
\r
123 * Request completion statistics.
\r
126 * Data statistics for unicast packets
\r
129 * Data statistics for broadcast packets
\r
132 * Data statistics for multicast packets
\r
135 * IPoIB, INIC, ip_data_stats_t, ip_comp_stats_t
\r
139 typedef enum _ip_stat_sel
\r
144 IP_STAT_UCAST_BYTES,
\r
145 IP_STAT_UCAST_FRAMES,
\r
146 IP_STAT_BCAST_BYTES,
\r
147 IP_STAT_BCAST_FRAMES,
\r
148 IP_STAT_MCAST_BYTES,
\r
149 IP_STAT_MCAST_FRAMES
\r
153 #endif /* _IP_STATS_H_ */
\r