[ofw][patch] ipoib receive statistics

Tzachi Dar tzachid at mellanox.co.il
Wed Aug 6 07:07:43 PDT 2008


applied in: 1467
 
Thanks
Tzachi


________________________________

	From: ofw-bounces at lists.openfabrics.org
[mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Slava Strebkov
	Sent: Tuesday, July 29, 2008 2:41 PM
	To: ofw at lists.openfabrics.org
	Subject: [ofw][patch] ipoib receive statistics
	
	

	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/20080806/baf2a61a/attachment.html>


More information about the ofw mailing list