Staging: bcm: Remove typedef for _S_MIBS_SERVICEFLOW_TABLE and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Mon, 26 Nov 2012 00:28:58 +0000 (19:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:07:57 +0000 (16:07 -0800)
This patch removes typedef for _S_MIBS_SERVICEFLOW_TABLE,
and changes the name of the struct to bcm_mibs_table.
In addition, any calls to typedef S_MIBS_SERVICEFLOW_TABLE
are changed to call the struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/CmHost.c
drivers/staging/bcm/HostMIBSInterface.h
drivers/staging/bcm/hostmibs.c

index 482e59592cd63721d2ec585d800e57a608f2c4c7..23ddc3d7c9ea9f134bd452f5f4673209fe835c59 100644 (file)
@@ -107,7 +107,7 @@ static VOID deleteSFBySfid(struct bcm_mini_adapter *Adapter, UINT uiSearchRuleIn
        DeleteAllClassifiersForSF(Adapter, uiSearchRuleIndex);
 
        /* Resetting only MIBS related entries in the SF */
-       memset((PVOID)&Adapter->PackInfo[uiSearchRuleIndex], 0, sizeof(S_MIBS_SERVICEFLOW_TABLE));
+       memset((PVOID)&Adapter->PackInfo[uiSearchRuleIndex], 0, sizeof(struct bcm_mibs_table));
 }
 
 static inline VOID
index e697b03e1510029b4c6813721fcce42331135199..0698ce04e8fb307b7b0ce8b27eded03379f150b4 100644 (file)
@@ -137,7 +137,7 @@ typedef struct _S_MIBS_EXTSERVICEFLOW_PARAMETERS {
        u32 wmanIfCmnCpsTargetSaid;
 } S_MIBS_EXTSERVICEFLOW_PARAMETERS;
 
-typedef struct _S_MIBS_SERVICEFLOW_TABLE {
+struct bcm_mibs_table {
        unsigned long   ulSFID;
        unsigned short  usVCID_Value;
        unsigned int    uiThreshold;
@@ -168,7 +168,7 @@ typedef struct _S_MIBS_SERVICEFLOW_TABLE {
        unsigned int    uiThisPeriodRxBytes;
        unsigned int    uiTotalRxBytes;
        unsigned int    uiTotalTxBytes;
-} S_MIBS_SERVICEFLOW_TABLE;
+};
 
 struct bcm_mibs_dropped_cntrl_msg {
        unsigned long cm_responses;
@@ -184,7 +184,7 @@ struct bcm_mibs_dropped_cntrl_msg {
 struct bcm_host_stats_mibs {
        S_MIBS_HOST_INFO        stHostInfo;
        S_MIBS_CLASSIFIER_RULE  astClassifierTable[MIBS_MAX_CLASSIFIERS];
-       S_MIBS_SERVICEFLOW_TABLE astSFtable[MIBS_MAX_SERVICEFLOWS];
+       struct bcm_mibs_table   astSFtable[MIBS_MAX_SERVICEFLOWS];
        S_MIBS_PHS_RULE         astPhsRulesTable[MIBS_MAX_PHSRULES];
        struct bcm_mibs_dropped_cntrl_msg stDroppedAppCntrlMsgs;
 };
index e7dc39ea7ae6505e2ae48d1f5de14e39d13d917f..2fbe29c5433105f4a94f739d2231ad7f5b8ae697 100644 (file)
@@ -39,7 +39,7 @@ INT ProcessGetHostMibs(struct bcm_mini_adapter *Adapter, struct bcm_host_stats_m
                if (Adapter->PackInfo[nSfIndex].bValid) {
                        memcpy((PVOID) & pstHostMibs->astSFtable[nSfIndex],
                               (PVOID) & Adapter->PackInfo[nSfIndex],
-                              sizeof(S_MIBS_SERVICEFLOW_TABLE));
+                               sizeof(struct bcm_mibs_table));
                } else {
                        /* If index in not valid,
                         * don't process this for the PHS table.