Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281039
b: refs/heads/master
c: ed8e9bb
h: refs/heads/master
i:
  281037: 3092064
  281035: 4fa4fdc
  281031: 1b6c852
  281023: 33fb845
v: v3
  • Loading branch information
Diego F. Marfil authored and Greg Kroah-Hartman committed Nov 27, 2011
1 parent 6d77b45 commit 3df6b0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27b7923035f737a7e6384d0084e34706ea068040
refs/heads/master: ed8e9bb7e082bea54aef18db497cb4297c2cf0fb
15 changes: 9 additions & 6 deletions trunk/drivers/staging/bcm/hostmibs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
* File Name: hostmibs.c
*
Expand All @@ -8,6 +7,7 @@
* the driver to the Host MIBS structure and giving the same to Application.
*
*/

#include "headers.h"

INT ProcessGetHostMibs(PMINI_ADAPTER Adapter, S_MIBS_HOST_STATS_MIBS *pstHostMibs)
Expand All @@ -26,7 +26,7 @@ INT ProcessGetHostMibs(PMINI_ADAPTER Adapter, S_MIBS_HOST_STATS_MIBS *pstHostMi
return STATUS_FAILURE;
}

//Copy the classifier Table
/* Copy the classifier Table */
for(nClassifierIndex=0; nClassifierIndex < MAX_CLASSIFIERS;
nClassifierIndex++)
{
Expand All @@ -36,7 +36,7 @@ INT ProcessGetHostMibs(PMINI_ADAPTER Adapter, S_MIBS_HOST_STATS_MIBS *pstHostMi
sizeof(S_MIBS_CLASSIFIER_RULE));
}

//Copy the SF Table
/* Copy the SF Table */
for(nSfIndex=0; nSfIndex < NO_OF_QUEUES ; nSfIndex++)
{
if(Adapter->PackInfo[nSfIndex].bValid)
Expand All @@ -45,11 +45,14 @@ INT ProcessGetHostMibs(PMINI_ADAPTER Adapter, S_MIBS_HOST_STATS_MIBS *pstHostMi
}
else
{
//if index in not valid, don't process this for the PHS table. Go For the next entry.
/* If index in not valid,
* don't process this for the PHS table.
* Go For the next entry.
*/
continue ;
}

//Retrieve the SFID Entry Index for requested Service Flow
/* Retrieve the SFID Entry Index for requested Service Flow */
if(PHS_INVALID_TABLE_INDEX == GetServiceFlowEntry(pDeviceExtension->pstServiceFlowPhsRulesTable,
Adapter->PackInfo[nSfIndex].usVCID_Value ,&pstServiceFlowEntry))
{
Expand Down Expand Up @@ -82,7 +85,7 @@ INT ProcessGetHostMibs(PMINI_ADAPTER Adapter, S_MIBS_HOST_STATS_MIBS *pstHostMi
}


//copy other Host Statistics parameters
/* Copy other Host Statistics parameters */
pstHostMibs->stHostInfo.GoodTransmits = Adapter->dev->stats.tx_packets;
pstHostMibs->stHostInfo.GoodReceives = Adapter->dev->stats.rx_packets;
pstHostMibs->stHostInfo.CurrNumFreeDesc =
Expand Down

0 comments on commit 3df6b0f

Please sign in to comment.