[ipoib] Added receive statistics for ipoib. (mlnx: 2945)
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 Aug 2008 14:07:28 +0000 (14:07 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 6 Aug 2008 14:07:28 +0000 (14:07 +0000)
signed by: Slava Strebkov [slavas@voltaire.com]

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1467 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/ipoib_port.c

index 93bb194..e438999 100644 (file)
@@ -2100,6 +2100,7 @@ __recv_mgr_filter(
                }\r
                else\r
                {\r
+                       ip_stat_sel_t               ip_stat;\r
                        p_desc->len =\r
                                len + sizeof(eth_hdr_t) - sizeof(ipoib_hdr_t);\r
                        if( p_dst->h_mcast)\r
@@ -2110,17 +2111,22 @@ __recv_mgr_filter(
                                        p_dst->dgid.multicast.raw_group_id[13] == 0xFF )\r
                                {\r
                                        p_desc->type = PKT_TYPE_BCAST;\r
+                                       ip_stat = IP_STAT_BCAST_BYTES;\r
                                }\r
                                else\r
                                {\r
                                        p_desc->type = PKT_TYPE_MCAST;\r
+                                       ip_stat = IP_STAT_MCAST_BYTES;\r
                                }\r
                        }\r
                        else\r
                        {\r
                                p_desc->type = PKT_TYPE_UCAST;\r
+                               ip_stat = IP_STAT_UCAST_BYTES;\r
+                               \r
                        }\r
                        cl_qlist_insert_tail( p_done_list, &p_desc->item.list_item );\r
+                       ipoib_inc_recv_stat( p_port->p_adapter,ip_stat , len );  \r
                }\r
        }\r
 \r