[ofw][patch] ipoib receive statistics
Slava Strebkov
slavas at voltaire.com
Tue Jul 29 04:41:12 PDT 2008
Hi,
Added receive statistics for ipoib.
Index: ulp/ipoib/kernel/ipoib_port.c
===================================================================
--- ulp/ipoib/kernel/ipoib_port.c (revision 1452)
+++ ulp/ipoib/kernel/ipoib_port.c (working copy)
@@ -2100,6 +2100,7 @@
}
else
{
+ ip_stat_sel_t
ip_stat;
p_desc->len =
len + sizeof(eth_hdr_t)
- sizeof(ipoib_hdr_t);
if( p_dst->h_mcast)
@@ -2110,17 +2111,22 @@
p_dst->dgid.multicast.raw_group_id[13] == 0xFF )
{
p_desc->type
= PKT_TYPE_BCAST;
+ ip_stat =
IP_STAT_BCAST_BYTES;
}
else
{
p_desc->type
= PKT_TYPE_MCAST;
+ ip_stat =
IP_STAT_MCAST_BYTES;
}
}
else
{
p_desc->type =
PKT_TYPE_UCAST;
+ ip_stat =
IP_STAT_UCAST_BYTES;
+
}
cl_qlist_insert_tail( p_done_list,
&p_desc->item.list_item );
+ ipoib_inc_recv_stat(
p_port->p_adapter,ip_stat , len );
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080729/7815ebb8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: receive_statistics.diff
Type: application/octet-stream
Size: 914 bytes
Desc: receive_statistics.diff
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080729/7815ebb8/attachment.obj>
More information about the ofw
mailing list