I checked with chechpatch.pl the archive in drivers/staging/bcm/CmHost.c , and cleanup the Errors and warnings, I didn't change any function, only code style.
PATCH 1/1 I checked with chechpatch.pl the archive in drivers/staging/bcm/CmHost.c , and cleanup the Errors and warnings, I didn't change any function, only code style.
From: Tresca Agustin <atresca@atresca-system.(none)>
--- drivers/staging/bcm/CmHost.c | 3794 ++++++++++++++++++++++++----------------- 1 files changed, 2221 insertions(+), 1573 deletions(-)
drivers/staging/bcm/CmHost.c +2221 -1573
@@ -4,18 +4,17 @@* Management. ************************************************************/ -//#define CONN_MSG +/*#define CONN_MSG*/ #include "headers.h" -typedef enum _E_CLASSIFIER_ACTION -{ - eInvalidClassifierAction, - eAddClassifier, - eReplaceClassifier, - eDeleteClassifier -}E_CLASSIFIER_ACTION ; +enum _E_CLASSIFIER_ACTION { + eInvalidClsfrAction, + eAddClsfr, + eRplcClsfr, + eDelClsfr +};/*_E_CLASSIFIER_ACTION*/ -static ULONG GetNextTargetBufferLocation (PMINI_ADAPTER Adapter,B_UINT16 tid); +static ULONG GetNextTargetBufferLocation (PMINI_ADAPTER Adapter,B_UINT16 tid);/************************************************************ * Function - SearchSfid
@@ -24,18 +23,18 @@ static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter,B_UINT16 tid);* specified SFID as input parameter. * * Parameters - Adapter: Pointer to the Adapter structure -* uiSfid : Given SFID for matching +* uiSfid : Given SFID for matching * * Returns - Queue index for this SFID(If matched) Else Invalid Queue Index(If Not matched) ************************************************************/ -INT SearchSfid (PMINI_ADAPTER Adapter,UINT uiSfid) +INT SearchSfid (PMINI_ADAPTER Adapter,UINT uiSfid) { -INT iIndex=0 ; -for (iIndex=(NO_OF_QUEUES -1 ); iIndex>=0 ; iIndex--) -if (Adapter->PackInfo[iIndex].ulSFID==uiSfid) +INT iIndex =0 ; +for (iIndex = (NO_OF_QUEUES -1 ); iIndex >=0 ; iIndex--) +if (Adapter->PackInfo[iIndex].ulSFID == uiSfid)return iIndex; -return NO_OF_QUEUES +1 ; +return NO_OF_QUEUES +1 ; }/***************************************************************
@@ -50,209 +49,236 @@ INT SearchSfid(PMINI_ADAPTER Adapter,UINT uiSfid)****************************************************************/ static INT SearchFreeSfid (PMINI_ADAPTER Adapter) { -UINT uiIndex=0 ; +UINT uiIndex =0 ; -for (uiIndex=0 ; uiIndex < (NO_OF_QUEUES -1 ); uiIndex++) -if (Adapter->PackInfo[uiIndex].ulSFID==0 ) +for (uiIndex =0 ; uiIndex < (NO_OF_QUEUES -1 ); uiIndex++) +if (Adapter->PackInfo[uiIndex].ulSFID ==0 )return uiIndex; -return NO_OF_QUEUES +1 ; +return NO_OF_QUEUES +1 ; }/* -Function: SearchClsid -Description: This routinue would search Classifier having specified ClassifierID as input parameter -Input parameters: PMINI_ADAPTER Adapter - Adapter Context -unsigned int uiSfid - The SF in which the classifier is to searched -B_UINT16 uiClassifierID - The classifier ID to be searched -Return: int :Classifier table index of matching entry +Function: SearchClsid +Description: This routinue would search Classifier +having specified ClassifierID as input parameter +Input parameters: PMINI_ADAPTER Adapter - Adapter Context +unsigned int uiSfid - The SF in which the classifier is to searched +B_UINT16 uiClsfrID - The classifier ID to be searched +Return: int :Classifier table index of matching entry */ -static int SearchClsid (PMINI_ADAPTER Adapter,ULONG ulSFID,B_UINT16 uiClassifierID) +static int SearchClsid (PMINI_ADAPTER Adapter,ULONG ulSFID, +B_UINT16 uiClsfrID) { -unsigned int uiClassifierIndex =0 ; -for (uiClassifierIndex=0 ;uiClassifierIndex<MAX_CLASSIFIERS ;uiClassifierIndex++) - { -if ((Adapter->astClassifierTable[uiClassifierIndex].bUsed) && - (Adapter->astClassifierTable[uiClassifierIndex].uiClassifierRuleIndex == uiClassifierID)&& - (Adapter->astClassifierTable[uiClassifierIndex].ulSFID == ulSFID)) -return uiClassifierIndex; +unsigned int index =0 ; +for (index =0 ; index <MAX_CLASSIFIERS ; index++) { +if ((Adapter->astClassifierTable[index].bUsed) && + (Adapter->astClassifierTable[index] + .uiClassifierRuleIndex == uiClsfrID) && + (Adapter->astClassifierTable[index].ulSFID == ulSFID)) +return index; } -return MAX_CLASSIFIERS +1 ; +return MAX_CLASSIFIERS +1 ; } -/** +/* @ingroup ctrl_pkt_functions This routinue would search Free available Classifier entry in classifier table. @return free Classifier Entry index in classifier table for specified SF */ -static int SearchFreeClsid (PMINI_ADAPTER Adapter/**Adapter Context*/ - ) +static int SearchFreeClsid (PMINI_ADAPTER Adapter/**Adapter Context*/ ) { -unsigned int uiClassifierIndex =0 ; -for (uiClassifierIndex=0 ;uiClassifierIndex<MAX_CLASSIFIERS ;uiClassifierIndex++) - { -if (!Adapter->astClassifierTable[uiClassifierIndex].bUsed) -return uiClassifierIndex; +unsigned int index =0 ; +for (index =0 ; index <MAX_CLASSIFIERS ; index++) { +if (!Adapter->astClassifierTable[index].bUsed) +return index; } -return MAX_CLASSIFIERS +1 ; +return MAX_CLASSIFIERS +1 ; }static VOID deleteSFBySfid (PMINI_ADAPTER Adapter,UINT uiSearchRuleIndex) { -//deleting all the packet held in the SF -flush_queue (Adapter,uiSearchRuleIndex); +/*deleting all the packet held in the SF*/ +flush_queue (Adapter, uiSearchRuleIndex); -//Deleting the all classifiers for this SF -DeleteAllClassifiersForSF (Adapter,uiSearchRuleIndex); +/*Deleting the all classifiers for this SF*/ +DeleteAllClassifiersForSF (Adapter, uiSearchRuleIndex); -//Resetting only MIBS related entries in the SF -memset ((PVOID )&Adapter->PackInfo[uiSearchRuleIndex],0 ,sizeof (S_MIBS_SERVICEFLOW_TABLE )); +/*Resetting only MIBS related entries in the SF*/ +memset ((PVOID ) & Adapter->PackInfo[uiSearchRuleIndex],0 , +sizeof (S_MIBS_SERVICEFLOW_TABLE )); }static inline VOID -CopyIpAddrToClassifier (S_CLASSIFIER_RULE *pstClassifierEntry , -B_UINT8 u8IpAddressLen ,B_UINT8 *pu8IpAddressMaskSrc , -BOOLEAN bIpVersion6 ,E_IPADDR_CONTEXT eIpAddrContext) +CopyIpAddrToClassifier (S_CLASSIFIER_RULE *ClsfrIn, +B_UINT8 u8IpAdrssLen,B_UINT8 *pu8IAdrsMask, +BOOLEAN bIpVersion6,E_IPADDR_CONTEXT eIpAddrCtxt) { -UINT ucLoopIndex=0 ; -UINT nSizeOfIPAddressInBytes =IP_LENGTH_OF_ADDRESS ; -UCHAR *ptrClassifierIpAddress =NULL ; -UCHAR *ptrClassifierIpMask =NULL ; -PMINI_ADAPTER Adapter =GET_BCM_ADAPTER (gblpnetdev); - -if (bIpVersion6) - { - nSizeOfIPAddressInBytes =IPV6_ADDRESS_SIZEINBYTES ; - } -//Destination Ip Address -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Ip Address Range Length:0x%X " , - u8IpAddressLen); -if ((bIpVersion6?(IPV6_ADDRESS_SIZEINBYTES *MAX_IP_RANGE_LENGTH *2 ): - (TOTAL_MASKED_ADDRESS_IN_BYTES )) >= u8IpAddressLen) - { -/* -//checking both the mask and address togethor in Classification. -//So length will be : TotalLengthInBytes/nSizeOfIPAddressInBytes * 2 -//(nSizeOfIPAddressInBytes for address and nSizeOfIPAddressInBytes for mask) -*/ -if (eIpAddrContext == eDestIpAddress) - { - pstClassifierEntry->ucIPDestinationAddressLength = - u8IpAddressLen/(nSizeOfIPAddressInBytes *2 ); -if (bIpVersion6) - { - ptrClassifierIpAddress = - pstClassifierEntry->stDestIpAddress.ucIpv6Address; - ptrClassifierIpMask = - pstClassifierEntry->stDestIpAddress.ucIpv6Mask; - } -else - { - ptrClassifierIpAddress = - pstClassifierEntry->stDestIpAddress.ucIpv4Address; - ptrClassifierIpMask = - pstClassifierEntry->stDestIpAddress.ucIpv4Mask; - } - } -else if (eIpAddrContext == eSrcIpAddress) - { - pstClassifierEntry->ucIPSourceAddressLength = - u8IpAddressLen/(nSizeOfIPAddressInBytes *2 ); -if (bIpVersion6) - { - ptrClassifierIpAddress = - pstClassifierEntry->stSrcIpAddress.ucIpv6Address; - ptrClassifierIpMask = - pstClassifierEntry->stSrcIpAddress.ucIpv6Mask; +UINT ucIndex =0 ; +UINT sizeofIpad =IP_LENGTH_OF_ADDRESS ; +UCHAR *ClsfrIpAdrss =NULL ; +UCHAR *ClsfrIpMask =NULL ; +PMINI_ADAPTER Adapter =GET_BCM_ADAPTER (gblpnetdev); + +if (bIpVersion6) + sizeofIpad =IPV6_ADDRESS_SIZEINBYTES ; + +/*Destination Ip Address*/ +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Ip Address Range Length:0x%X " , u8IpAdrssLen); +/* +checking both the mask and address togethor in Classification. +So length will be : TotalLengthInBytes/sizeofIpad * 2 +(sizeofIpad for address and sizeofIpad for mask) +*/ +if ((bIpVersion6 ? (IPV6_ADDRESS_SIZEINBYTES *MAX_IP_RANGE_LENGTH *2 ) + :TOTAL_MASKED_ADDRESS_IN_BYTES ) >= u8IpAdrssLen) { +if (eIpAddrCtxt == eDestIpAddress) { + ClsfrIn->ucIPDestinationAddressLength = + u8IpAdrssLen/(sizeofIpad *2 ); +if (bIpVersion6) { + ClsfrIpAdrss = + ClsfrIn->stDestIpAddress. + ucIpv6Address; + ClsfrIpMask = + ClsfrIn->stDestIpAddress. + ucIpv6Mask; + }else { + ClsfrIpAdrss = + ClsfrIn->stDestIpAddress. + ucIpv4Address; + ClsfrIpMask = + ClsfrIn->stDestIpAddress. + ucIpv4Mask; } -else - { - ptrClassifierIpAddress = - pstClassifierEntry->stSrcIpAddress.ucIpv4Address; - ptrClassifierIpMask = - pstClassifierEntry->stSrcIpAddress.ucIpv4Mask; + }else if (eIpAddrCtxt == eSrcIpAddress) { + ClsfrIn->ucIPSourceAddressLength = + u8IpAdrssLen/ + (sizeofIpad *2 ); +if (bIpVersion6) { + ClsfrIpAdrss = + ClsfrIn->stSrcIpAddress. + ucIpv6Address; + ClsfrIpMask = + ClsfrIn->stSrcIpAddress. + ucIpv6Mask; + }else { + ClsfrIpAdrss = + ClsfrIn->stSrcIpAddress.ucIpv4Address; + ClsfrIpMask = ClsfrIn->stSrcIpAddress + .ucIpv4Mask; } } -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Address Length:0x%X \n" , - pstClassifierEntry->ucIPDestinationAddressLength); -while ((u8IpAddressLen>= nSizeOfIPAddressInBytes) && - (ucLoopIndex <MAX_IP_RANGE_LENGTH )) - { -memcpy (ptrClassifierIpAddress + - (ucLoopIndex * nSizeOfIPAddressInBytes), - (pu8IpAddressMaskSrc+(ucLoopIndex*nSizeOfIPAddressInBytes*2 )), - nSizeOfIPAddressInBytes); -if (!bIpVersion6) - { -if (eIpAddrContext == eSrcIpAddress) - { - pstClassifierEntry->stSrcIpAddress.ulIpv4Addr[ucLoopIndex]= -ntohl (pstClassifierEntry->stSrcIpAddress. - ulIpv4Addr[ucLoopIndex]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Src Ip Address:0x%luX " ,pstClassifierEntry->stSrcIpAddress.ulIpv4Addr[ucLoopIndex]); - } -else if (eIpAddrContext == eDestIpAddress) - { - pstClassifierEntry->stDestIpAddress.ulIpv4Addr[ucLoopIndex]=ntohl (pstClassifierEntry->stDestIpAddress. - ulIpv4Addr[ucLoopIndex]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Dest Ip Address:0x%luX " ,pstClassifierEntry->stDestIpAddress.ulIpv4Addr[ucLoopIndex]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG , +DBG_LVL_ALL ,"Address Length:0x%X\n" , + ClsfrIn-> + ucIPDestinationAddressLength); +while ((u8IpAdrssLen >= sizeofIpad) && + (ucIndex <MAX_IP_RANGE_LENGTH )) { +memcpy (ClsfrIpAdrss + + (ucIndex * sizeofIpad), + (pu8IAdrsMask + (ucIndex * + sizeofIpad *2 )), + sizeofIpad); +if (!bIpVersion6) { +if (eIpAddrCtxt == eSrcIpAddress) { + ClsfrIn->stSrcIpAddress. + ulIpv4Addr[ucIndex] = +ntohl (ClsfrIn + ->stSrcIpAddress. + ulIpv4Addr + [ucIndex]); +BCM_DEBUG_PRINT (Adapter, +DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Src Ip Address:0x%luX " , + ClsfrIn->stSrcIpAddress. + ulIpv4Addr[ucIndex]); + }else if (eIpAddrCtxt == eDestIpAddress) { + ClsfrIn->stDestIpAddress. + ulIpv4Addr[ucIndex] = +ntohl (ClsfrIn-> + stDestIpAddress. + ulIpv4Addr[ucIndex]); +BCM_DEBUG_PRINT (Adapter, +DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Dest Ip Address:0x%luX " , + ClsfrIn->stDestIpAddress + .ulIpv4Addr[ucIndex]); } } - u8IpAddressLen-=nSizeOfIPAddressInBytes; -if (u8IpAddressLen >= nSizeOfIPAddressInBytes) - { -memcpy (ptrClassifierIpMask + - (ucLoopIndex * nSizeOfIPAddressInBytes), - (pu8IpAddressMaskSrc+nSizeOfIPAddressInBytes + - (ucLoopIndex*nSizeOfIPAddressInBytes*2 )), - nSizeOfIPAddressInBytes); -if (!bIpVersion6) - { -if (eIpAddrContext == eSrcIpAddress) - { - pstClassifierEntry->stSrcIpAddress. - ulIpv4Mask[ucLoopIndex]= -ntohl (pstClassifierEntry->stSrcIpAddress. - ulIpv4Mask[ucLoopIndex]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Src Ip Mask Address:0x%luX " ,pstClassifierEntry->stSrcIpAddress.ulIpv4Mask[ucLoopIndex]); - } -else if (eIpAddrContext == eDestIpAddress) - { - pstClassifierEntry->stDestIpAddress. - ulIpv4Mask[ucLoopIndex] = -ntohl (pstClassifierEntry->stDestIpAddress. - ulIpv4Mask[ucLoopIndex]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Dest Ip Mask Address:0x%luX " ,pstClassifierEntry->stDestIpAddress.ulIpv4Mask[ucLoopIndex]); + u8IpAdrssLen -= sizeofIpad; +if (u8IpAdrssLen >= sizeofIpad) { +memcpy (ClsfrIpMask + + (ucIndex * sizeofIpad), + (pu8IAdrsMask + sizeofIpad + + (ucIndex * sizeofIpad *2 )), + sizeofIpad); +if (!bIpVersion6) { +if (eIpAddrCtxt == eSrcIpAddress) { + ClsfrIn->stSrcIpAddress. + ulIpv4Mask[ucIndex] = +ntohl (ClsfrIn + ->stSrcIpAddress + .ulIpv4Mask + [ucIndex]); + +BCM_DEBUG_PRINT (Adapter, +DBG_TYPE_OTHERS , +CONN_MSG , +DBG_LVL_ALL , +"Src Ip Mask Address:0x%luX " , + ClsfrIn->stSrcIpAddress + .ulIpv4Mask[ucIndex]); + }else if (eIpAddrCtxt + == eDestIpAddress) { + ClsfrIn->stDestIpAddress. + ulIpv4Mask[ucIndex] = +ntohl + (ClsfrIn-> + stDestIpAddress. + ulIpv4Mask + [ucIndex]); + +BCM_DEBUG_PRINT (Adapter, +DBG_TYPE_OTHERS ,CONN_MSG , +DBG_LVL_ALL , +"Dest Ip Mask Address:0x%luX " , + ClsfrIn->stDestIpAddress + .ulIpv4Mask[ucIndex]); } } - u8IpAddressLen-=nSizeOfIPAddressInBytes; - } -if (0 ==u8IpAddressLen) - { - pstClassifierEntry->bDestIpValid=TRUE; + u8IpAdrssLen -= sizeofIpad; } - ucLoopIndex++; +if (0 == u8IpAdrssLen) + ClsfrIn->bDestIpValid = TRUE; + ucIndex++; } -if (bIpVersion6) - { -//Restore EndianNess of Struct -for (ucLoopIndex =0 ; ucLoopIndex <MAX_IP_RANGE_LENGTH *4 ; - ucLoopIndex++) - { -if (eIpAddrContext == eSrcIpAddress) - { - pstClassifierEntry->stSrcIpAddress.ulIpv6Addr[ucLoopIndex]= -ntohl (pstClassifierEntry->stSrcIpAddress. - ulIpv6Addr[ucLoopIndex]); - pstClassifierEntry->stSrcIpAddress.ulIpv6Mask[ucLoopIndex]=ntohl (pstClassifierEntry->stSrcIpAddress. - ulIpv6Mask[ucLoopIndex]); - } -else if (eIpAddrContext == eDestIpAddress) - { - pstClassifierEntry->stDestIpAddress.ulIpv6Addr[ucLoopIndex]=ntohl (pstClassifierEntry->stDestIpAddress. - ulIpv6Addr[ucLoopIndex]); - pstClassifierEntry->stDestIpAddress.ulIpv6Mask[ucLoopIndex]=ntohl (pstClassifierEntry->stDestIpAddress. - ulIpv6Mask[ucLoopIndex]); +if (bIpVersion6) { +/*Restore EndianNess of Struct*/ +for (ucIndex =0 ; + ucIndex <MAX_IP_RANGE_LENGTH *4 ; ucIndex++) { +if (eIpAddrCtxt == eSrcIpAddress) { + ClsfrIn->stSrcIpAddress.ulIpv6Addr + [ucIndex] = +ntohl (ClsfrIn + ->stSrcIpAddress. + ulIpv6Addr[ucIndex]); + ClsfrIn->stSrcIpAddress + .ulIpv6Mask[ucIndex] = +ntohl (ClsfrIn->stSrcIpAddress. + ulIpv6Mask[ucIndex]); + }else if (eIpAddrCtxt == eDestIpAddress) { + ClsfrIn->stDestIpAddress + .ulIpv6Addr[ucIndex] = +ntohl (ClsfrIn->stDestIpAddress. + ulIpv6Addr[ucIndex]); + ClsfrIn-> + stDestIpAddress + .ulIpv6Mask + [ucIndex] = +ntohl (ClsfrIn-> + stDestIpAddress. + ulIpv6Mask[ucIndex]); } } }
@@ -260,20 +286,23 @@ CopyIpAddrToClassifier(S_CLASSIFIER_RULE *pstClassifierEntry , } -void ClearTargetDSXBuffer (PMINI_ADAPTER Adapter,B_UINT16 TID ,BOOLEAN bFreeAll) +void ClearTargetDSXBuffer (PMINI_ADAPTER Adapter,B_UINT16 TID ,BOOLEAN bFreeAll) { -ULONG ulIndex; -for (ulIndex=0 ; ulIndex < Adapter->ulTotalTargetBuffersAvailable; ulIndex++) - { -if (Adapter->astTargetDsxBuffer[ulIndex].valid) +ULONG Index; +for (Index =0 ; + Index < Adapter->ulTotalTargetBuffersAvailable; Index++) { +if (Adapter->astTargetDsxBuffer[Index].valid)continue ; -if ((bFreeAll) || (Adapter->astTargetDsxBuffer[ulIndex].tid ==TID )){ -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_PRINTK ,0 ,0 ,"ClearTargetDSXBuffer: found tid %d buffer cleared %lx\n" , -TID , Adapter->astTargetDsxBuffer[ulIndex].ulTargetDsxBuffer); - Adapter->astTargetDsxBuffer[ulIndex].valid=1 ; - Adapter->astTargetDsxBuffer[ulIndex].tid=0 ; +if ((bFreeAll) || (Adapter + ->astTargetDsxBuffer[Index].tid ==TID )) { +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_PRINTK ,0 ,0 , +"ClearTargetDSXBuffer:found tid %d buffer cleared%lx\n" , +TID , Adapter->astTargetDsxBuffer[Index] + .ulTargetDsxBuffer); + Adapter->astTargetDsxBuffer[Index].valid =1 ; + Adapter->astTargetDsxBuffer[Index].tid =0 ; Adapter->ulFreeTargetBufferCnt++; - } + } } }
@@ -281,156 +310,211 @@ void ClearTargetDSXBuffer(PMINI_ADAPTER Adapter,B_UINT16 TID,BOOLEAN bFreeAll)@ingroup ctrl_pkt_functions copy classifier rule into the specified SF index */ -static inline VOID CopyClassifierRuleToSF (PMINI_ADAPTER Adapter,stConvergenceSLTypes *psfCSType,UINT uiSearchRuleIndex,UINT nClassifierIndex) +static inline VOID CopyClassifierRuleToSF (PMINI_ADAPTER Adapter, +stConvergenceSLTypes *psfCSType,UINT uiSearchRuleIndex, +UINT nClassifierIndex) { -S_CLASSIFIER_RULE *pstClassifierEntry =NULL ; -//VOID *pvPhsContext = NULL; -UINT ucLoopIndex=0 ; -//UCHAR ucProtocolLength=0; -//ULONG ulPhsStatus; - - -if (Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value ==0 || - nClassifierIndex > (MAX_CLASSIFIERS -1 )) +S_CLASSIFIER_RULE *ClsfrIn =NULL ; +/*VOID *pvPhsContext = NULL;*/ +UINT ucIndex =0 ; +/*UCHAR ucProtocolLength=0;*/ +/*ULONG ulPhsStatus;*/ + +if (Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value ==0 + || nClassifierIndex > (MAX_CLASSIFIERS -1 ))return ; -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Storing Classifier Rule Index : %X" ,ntohs (psfCSType->cCPacketClassificationRule.u16PacketClassificationRuleIndex)); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Storing Classifier Rule Index : %X" , +ntohs (psfCSType->cCPacketClassificationRule + .u16PacketClassificationRuleIndex)); -if (nClassifierIndex >MAX_CLASSIFIERS -1 ) +if (nClassifierIndex >MAX_CLASSIFIERS -1 )return ; - pstClassifierEntry = &Adapter->astClassifierTable[nClassifierIndex]; -if (pstClassifierEntry) - { -//Store if Ipv6 - pstClassifierEntry->bIpv6Protocol = - (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion ==IPV6 )?TRUE:FALSE; - -//Destinaiton Port - pstClassifierEntry->ucDestPortRangeLength=psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRangeLength/4 ; -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Destination Port Range Length:0x%X " ,pstClassifierEntry->ucDestPortRangeLength); -if (MAX_PORT_RANGE >= psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRangeLength) - { -for (ucLoopIndex=0 ;ucLoopIndex<(pstClassifierEntry->ucDestPortRangeLength);ucLoopIndex++) - { - pstClassifierEntry->usDestPortRangeLo[ucLoopIndex] = - *((PUSHORT )(psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange+ucLoopIndex)); - pstClassifierEntry->usDestPortRangeHi[ucLoopIndex] = - *((PUSHORT )(psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange+2 +ucLoopIndex)); - pstClassifierEntry->usDestPortRangeLo[ucLoopIndex]=ntohs (pstClassifierEntry->usDestPortRangeLo[ucLoopIndex]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Destination Port Range Lo:0x%X " ,pstClassifierEntry->usDestPortRangeLo[ucLoopIndex]); - pstClassifierEntry->usDestPortRangeHi[ucLoopIndex]=ntohs (pstClassifierEntry->usDestPortRangeHi[ucLoopIndex]); + ClsfrIn = &Adapter->astClassifierTable[nClassifierIndex]; +if (ClsfrIn) { +/*Store if Ipv6*/ + ClsfrIn->bIpv6Protocol = + (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion + ==IPV6 ) ? TRUE : FALSE; + +/*Destinaiton Port*/ + ClsfrIn->ucDestPortRangeLength = psfCSType + ->cCPacketClassificationRule.u8ProtocolDestPortRangeLength/4 ; + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Destination Port Range Length:0x%X " , + ClsfrIn->ucDestPortRangeLength); + +if (MAX_PORT_RANGE >= psfCSType + ->cCPacketClassificationRule.u8ProtocolDestPortRangeLength) { +for (ucIndex =0 ; ucIndex < (ClsfrIn + ->ucDestPortRangeLength); ucIndex++) { + ClsfrIn->usDestPortRangeLo[ucIndex] = + *((PUSHORT )(psfCSType + ->cCPacketClassificationRule + .u8ProtocolDestPortRange + + ucIndex)); + + ClsfrIn->usDestPortRangeHi[ucIndex] = + *((PUSHORT )(psfCSType + ->cCPacketClassificationRule + .u8ProtocolDestPortRange + +2 + ucIndex)); + ClsfrIn->usDestPortRangeLo[ucIndex] = +ntohs (ClsfrIn + ->usDestPortRangeLo[ucIndex]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +CONN_MSG ,DBG_LVL_ALL , +"Destination Port Range Lo:0x%X " , + ClsfrIn->usDestPortRangeLo[ucIndex]); + ClsfrIn->usDestPortRangeHi[ucIndex] = +ntohs (ClsfrIn + ->usDestPortRangeHi[ucIndex]); } - } -else - { - pstClassifierEntry->ucDestPortRangeLength=0 ; - } -//Source Port -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Source Port Range Length:0x%X " ,psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRangeLength); -if (MAX_PORT_RANGE >= - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRangeLength) - { - pstClassifierEntry->ucSrcPortRangeLength = + }else + ClsfrIn->ucDestPortRangeLength =0 ; +/*Source Port*/ +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Source Port Range Length:0x%X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRangeLength); +if (MAX_PORT_RANGE >= psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRangeLength) { + ClsfrIn->ucSrcPortRangeLength = psfCSType->cCPacketClassificationRule. - u8ProtocolSourcePortRangeLength/4 ; -for (ucLoopIndex =0 ; ucLoopIndex < - (pstClassifierEntry->ucSrcPortRangeLength); ucLoopIndex++) - { - pstClassifierEntry->usSrcPortRangeLo[ucLoopIndex] = - *((PUSHORT )(psfCSType->cCPacketClassificationRule. - u8ProtocolSourcePortRange+ucLoopIndex)); - pstClassifierEntry->usSrcPortRangeHi[ucLoopIndex] = - *((PUSHORT )(psfCSType->cCPacketClassificationRule. - u8ProtocolSourcePortRange+2 +ucLoopIndex)); - pstClassifierEntry->usSrcPortRangeLo[ucLoopIndex] = -ntohs (pstClassifierEntry->usSrcPortRangeLo[ucLoopIndex]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Source Port Range Lo:0x%X " ,pstClassifierEntry->usSrcPortRangeLo[ucLoopIndex]); - pstClassifierEntry->usSrcPortRangeHi[ucLoopIndex]=ntohs (pstClassifierEntry->usSrcPortRangeHi[ucLoopIndex]); + u8ProtocolSourcePortRangeLength/4 ; +for (ucIndex =0 ; ucIndex < (ClsfrIn->ucSrcPortRangeLength); + ucIndex++) { + ClsfrIn->usSrcPortRangeLo[ucIndex] = *((PUSHORT ) + (psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange+ucIndex)); + ClsfrIn->usSrcPortRangeHi[ucIndex] = + *((PUSHORT )(psfCSType-> + cCPacketClassificationRule. + u8ProtocolSourcePortRange +2 + + ucIndex)); + ClsfrIn->usSrcPortRangeLo[ucIndex] = +ntohs (ClsfrIn-> + usSrcPortRangeLo[ucIndex]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +CONN_MSG ,DBG_LVL_ALL , +"Source Port Range Lo:0x%X " , + ClsfrIn->usSrcPortRangeLo[ucIndex]); + ClsfrIn->usSrcPortRangeHi[ucIndex] = +ntohs (ClsfrIn->usSrcPortRangeHi + [ucIndex]); } } -//Destination Ip Address and Mask -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Ip Destination Parameters : " ); +/*Destination Ip Address and Mask*/ +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Ip Destination Parameters : " ); -CopyIpAddrToClassifier (pstClassifierEntry, - psfCSType->cCPacketClassificationRule.u8IPDestinationAddressLength, +CopyIpAddrToClassifier (ClsfrIn, + psfCSType->cCPacketClassificationRule. + u8IPDestinationAddressLength, psfCSType->cCPacketClassificationRule.u8IPDestinationAddress, - (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion ==IPV6 )? - TRUE:FALSE, eDestIpAddress); + (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion ==IPV6 ) ? + TRUE : FALSE, eDestIpAddress); -//Source Ip Address and Mask -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Ip Source Parameters : " ); +/*Source Ip Address and Mask*/ +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Ip Source Parameters : " ); -CopyIpAddrToClassifier (pstClassifierEntry, - psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddressLength, +CopyIpAddrToClassifier (ClsfrIn, + psfCSType->cCPacketClassificationRule. + u8IPMaskedSourceAddressLength, psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddress, - (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion ==IPV6 )?TRUE:FALSE, - eSrcIpAddress); - -//TOS -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"TOS Length:0x%X " ,psfCSType->cCPacketClassificationRule.u8IPTypeOfServiceLength); -if (3 == psfCSType->cCPacketClassificationRule.u8IPTypeOfServiceLength) - { - pstClassifierEntry->ucIPTypeOfServiceLength = - psfCSType->cCPacketClassificationRule.u8IPTypeOfServiceLength; - pstClassifierEntry->ucTosLow = - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[0 ]; - pstClassifierEntry->ucTosHigh = - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[1 ]; - pstClassifierEntry->ucTosMask = - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[2 ]; - pstClassifierEntry->bTOSValid = TRUE; - } -if (psfCSType->cCPacketClassificationRule.u8Protocol ==0 ) - { -//we didn't get protocol field filled in by the BS - pstClassifierEntry->ucProtocolLength=0 ; + (Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion ==IPV6 ) ? + TRUE : FALSE, eSrcIpAddress); + +/*TOS*/ +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"TOS Length:0x%X " , + psfCSType->cCPacketClassificationRule.u8IPTypeOfServiceLength); +if (3 == psfCSType->cCPacketClassificationRule. + u8IPTypeOfServiceLength) { + ClsfrIn->ucIPTypeOfServiceLength = + psfCSType->cCPacketClassificationRule. + u8IPTypeOfServiceLength; + ClsfrIn->ucTosLow = + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[0 ]; + ClsfrIn->ucTosHigh = + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[1 ]; + ClsfrIn->ucTosMask = + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[2 ]; + ClsfrIn->bTOSValid = TRUE; } +if (psfCSType->cCPacketClassificationRule.u8Protocol ==0 ) +/*we didn't get protocol field filled in by the BS*/ + ClsfrIn->ucProtocolLength =0 ;else - { - pstClassifierEntry->ucProtocolLength=1 ;// 1 valid protocol - } + ClsfrIn->ucProtocolLength =1 ;/* 1 valid protocol*/ - pstClassifierEntry->ucProtocol[0 ] = + ClsfrIn->ucProtocol[0 ] = psfCSType->cCPacketClassificationRule.u8Protocol; - pstClassifierEntry->u8ClassifierRulePriority = - psfCSType->cCPacketClassificationRule.u8ClassifierRulePriority; + ClsfrIn->u8ClassifierRulePriority = + psfCSType->cCPacketClassificationRule. + u8ClassifierRulePriority; -//store the classifier rule ID and set this classifier entry as valid - pstClassifierEntry->ucDirection = +/*store the classifier rule ID and set this classifier entry as valid*/ + ClsfrIn->ucDirection = Adapter->PackInfo[uiSearchRuleIndex].ucDirection; - pstClassifierEntry->uiClassifierRuleIndex =ntohs (psfCSType-> - cCPacketClassificationRule.u16PacketClassificationRuleIndex); - pstClassifierEntry->usVCID_Value = + ClsfrIn->uiClassifierRuleIndex =ntohs (psfCSType-> + cCPacketClassificationRule. + u16PacketClassificationRuleIndex); + ClsfrIn->usVCID_Value = Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value; - pstClassifierEntry->ulSFID = + ClsfrIn->ulSFID = Adapter->PackInfo[uiSearchRuleIndex].ulSFID; -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Search Index %d Dir: %d, Index: %d, Vcid: %d\n" , - uiSearchRuleIndex, pstClassifierEntry->ucDirection, - pstClassifierEntry->uiClassifierRuleIndex, - pstClassifierEntry->usVCID_Value); - -if (psfCSType->cCPacketClassificationRule.u8AssociatedPHSI) - { - pstClassifierEntry->u8AssociatedPHSI = psfCSType->cCPacketClassificationRule.u8AssociatedPHSI; - } - -//Copy ETH CS Parameters - pstClassifierEntry->ucEthCSSrcMACLen = (psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddressLength); -memcpy (pstClassifierEntry->au8EThCSSrcMAC,psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress,MAC_ADDRESS_SIZE ); -memcpy (pstClassifierEntry->au8EThCSSrcMACMask,psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress+MAC_ADDRESS_SIZE ,MAC_ADDRESS_SIZE ); - pstClassifierEntry->ucEthCSDestMACLen = (psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddressLength); -memcpy (pstClassifierEntry->au8EThCSDestMAC,psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress,MAC_ADDRESS_SIZE ); -memcpy (pstClassifierEntry->au8EThCSDestMACMask,psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress+MAC_ADDRESS_SIZE ,MAC_ADDRESS_SIZE ); - pstClassifierEntry->ucEtherTypeLen = (psfCSType->cCPacketClassificationRule.u8EthertypeLength); -memcpy (pstClassifierEntry->au8EthCSEtherType,psfCSType->cCPacketClassificationRule.u8Ethertype,NUM_ETHERTYPE_BYTES ); -memcpy (pstClassifierEntry->usUserPriority, &psfCSType->cCPacketClassificationRule.u16UserPriority,2 ); - pstClassifierEntry->usVLANID =ntohs (psfCSType->cCPacketClassificationRule.u16VLANID); - pstClassifierEntry->usValidityBitMap =ntohs (psfCSType->cCPacketClassificationRule.u16ValidityBitMap); - - pstClassifierEntry->bUsed = TRUE; +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Search Index %d Dir: %d, Index: %d, Vcid: %d\n" , + uiSearchRuleIndex, ClsfrIn->ucDirection, + ClsfrIn->uiClassifierRuleIndex, + ClsfrIn->usVCID_Value); + +if (psfCSType->cCPacketClassificationRule.u8AssociatedPHSI) + ClsfrIn->u8AssociatedPHSI = psfCSType-> + cCPacketClassificationRule.u8AssociatedPHSI; + +/*Copy ETH CS Parameters*/ + ClsfrIn->ucEthCSSrcMACLen = (psfCSType-> + cCPacketClassificationRule. + u8EthernetSourceMACAddressLength); +memcpy (ClsfrIn->au8EThCSSrcMAC, psfCSType-> + cCPacketClassificationRule.u8EthernetSourceMACAddress, +MAC_ADDRESS_SIZE ); +memcpy (ClsfrIn->au8EThCSSrcMACMask, psfCSType-> + cCPacketClassificationRule.u8EthernetSourceMACAddress + +MAC_ADDRESS_SIZE ,MAC_ADDRESS_SIZE ); + ClsfrIn->ucEthCSDestMACLen = (psfCSType-> + cCPacketClassificationRule. + u8EthernetDestMacAddressLength); +memcpy (ClsfrIn->au8EThCSDestMAC, psfCSType-> + cCPacketClassificationRule.u8EthernetDestMacAddress, +MAC_ADDRESS_SIZE ); +memcpy (ClsfrIn->au8EThCSDestMACMask, psfCSType-> + cCPacketClassificationRule.u8EthernetDestMacAddress + +MAC_ADDRESS_SIZE ,MAC_ADDRESS_SIZE ); + ClsfrIn->ucEtherTypeLen = (psfCSType-> + cCPacketClassificationRule.u8EthertypeLength); +memcpy (ClsfrIn->au8EthCSEtherType, psfCSType-> + cCPacketClassificationRule.u8Ethertype, +NUM_ETHERTYPE_BYTES ); +memcpy (ClsfrIn->usUserPriority, &psfCSType-> + cCPacketClassificationRule.u16UserPriority,2 ); + ClsfrIn->usVLANID =ntohs (psfCSType->cCPacketClassificationRule. + u16VLANID); + ClsfrIn->usValidityBitMap =ntohs (psfCSType-> + cCPacketClassificationRule.u16ValidityBitMap); + + ClsfrIn->bUsed = TRUE; } }
@@ -438,74 +522,67 @@ static inline VOID CopyClassifierRuleToSF(PMINI_ADAPTER Adapter,stConvergenceSLT/** @ingroup ctrl_pkt_functions */ -static inline VOID DeleteClassifierRuleFromSF (PMINI_ADAPTER Adapter,UINT uiSearchRuleIndex,UINT nClassifierIndex) +static inline VOID DeleteClassifierRuleFromSF (PMINI_ADAPTER Adapter, +UINT uiSearchRuleIndex,UINT nClassifierIndex) { -S_CLASSIFIER_RULE *pstClassifierEntry =NULL ; -B_UINT16 u16PacketClassificationRuleIndex; -USHORT usVCID; -//VOID *pvPhsContext = NULL; -//ULONG ulPhsStatus; +S_CLASSIFIER_RULE *ClsfrIn =NULL ; +B_UINT16 u16PacketClassificationRuleIndex; +USHORT usVCID; +/*VOID *pvPhsContext = NULL;*/ +/*ULONG ulPhsStatus;*/ usVCID = Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value; -if (nClassifierIndex >MAX_CLASSIFIERS -1 ) +if (nClassifierIndex >MAX_CLASSIFIERS -1 || (usVCID ==0 ))return ; -if (usVCID ==0 ) -return ; + u16PacketClassificationRuleIndex = Adapter-> + astClassifierTable[nClassifierIndex].uiClassifierRuleIndex; - u16PacketClassificationRuleIndex = Adapter->astClassifierTable[nClassifierIndex].uiClassifierRuleIndex; + ClsfrIn = &Adapter->astClassifierTable[nClassifierIndex]; +if (ClsfrIn) { + ClsfrIn->bUsed = FALSE; + ClsfrIn->uiClassifierRuleIndex =0 ; +memset (ClsfrIn,0 ,sizeof (S_CLASSIFIER_RULE )); - pstClassifierEntry = &Adapter->astClassifierTable[nClassifierIndex]; -if (pstClassifierEntry) - { - pstClassifierEntry->bUsed = FALSE; - pstClassifierEntry->uiClassifierRuleIndex =0 ; -memset (pstClassifierEntry,0 ,sizeof (S_CLASSIFIER_RULE )); - -//Delete the PHS Rule for this classifier -PhsDeleteClassifierRule ( - &Adapter->stBCMPhsContext, - usVCID, - u16PacketClassificationRuleIndex); +/*Delete the PHS Rule for this classifier*/ +PhsDeleteClassifierRule (&Adapter->stBCMPhsContext, usVCID, + u16PacketClassificationRuleIndex); } } -/** -@ingroup ctrl_pkt_functions -*/ -VOID DeleteAllClassifiersForSF (PMINI_ADAPTER Adapter,UINT uiSearchRuleIndex) +/* @ingroup ctrl_pkt_functions */ + +VOID DeleteAllClassifiersForSF (PMINI_ADAPTER Adapter,UINT uiSearchRuleIndex) { -S_CLASSIFIER_RULE *pstClassifierEntry =NULL ; +S_CLASSIFIER_RULE *ClsfrIn =NULL ;UINT nClassifierIndex; -//B_UINT16 u16PacketClassificationRuleIndex; -USHORT ulVCID; -//VOID *pvPhsContext = NULL; -//ULONG ulPhsStatus; +/*B_UINT16 u16PacketClassificationRuleIndex;*/ +USHORT ulVCID; +/*VOID *pvPhsContext = NULL;*/ +/*ULONG ulPhsStatus;*/ ulVCID = Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value; -if (ulVCID ==0 ) +if (ulVCID ==0 )return ; -for (nClassifierIndex =0 ; nClassifierIndex <MAX_CLASSIFIERS ; nClassifierIndex++) - { -if (Adapter->astClassifierTable[nClassifierIndex].usVCID_Value == ulVCID) - { - pstClassifierEntry = &Adapter->astClassifierTable[nClassifierIndex]; -if (pstClassifierEntry->bUsed) - { -DeleteClassifierRuleFromSF (Adapter,uiSearchRuleIndex,nClassifierIndex); - } +for (nClassifierIndex =0 ; nClassifierIndex <MAX_CLASSIFIERS ; + nClassifierIndex++) { +if (Adapter->astClassifierTable[nClassifierIndex].usVCID_Value + == ulVCID) { + ClsfrIn = &Adapter-> + astClassifierTable[nClassifierIndex]; +if (ClsfrIn->bUsed) +DeleteClassifierRuleFromSF (Adapter, + uiSearchRuleIndex, nClassifierIndex); } } -//Delete All Phs Rules Associated with this SF -PhsDeleteSFRules ( - &Adapter->stBCMPhsContext, - ulVCID); +/*Delete All Phs Rules Associated with this SF */ +PhsDeleteSFRules (&Adapter->stBCMPhsContext, ulVCID); }
@@ -516,105 +593,106 @@ related data into the Adapter structure.@ingroup ctrl_pkt_functions */ -static VOID CopyToAdapter ( registerPMINI_ADAPTER Adapter,/**<Pointer to the Adapter structure*/ - registerpstServiceFlowParamSI psfLocalSet,/**<Pointer to the ServiceFlowParamSI structure*/ - registerUINT uiSearchRuleIndex,/**<Index of Queue, to which this data belongs*/ - registerUCHAR ucDsxType, -stLocalSFAddIndicationAlt *pstAddIndication) +static VOID CopyToAdapter (registerPMINI_ADAPTER Adapter, +/**<Pointer to the Adapter structure*/ + registerpstServiceFlowParamSI psfLocalSet, +/**<Pointer to the ServiceFlowParamSI structure*/ + registerUINT uiSearchRuleIndex, +/**<Index of Queue, to which this data belongs*/ + registerUCHAR ucDsxType, +stLocalSFAddIndicationAlt *pstAddIndication) { -//UCHAR ucProtocolLength=0; -ULONG ulSFID; -UINT nClassifierIndex =0 ; -E_CLASSIFIER_ACTION eClassifierAction = eInvalidClassifierAction; -B_UINT16 u16PacketClassificationRuleIndex=0 ; -UINT nIndex=0 ; +/*UCHAR ucProtocolLength=0;*/ +ULONG ulSFID; +UINT nClassifierIndex =0 ; +enum _E_CLASSIFIER_ACTION eClassifierAction = eInvalidClsfrAction; +B_UINT16 u16PacketClassificationRuleIndex =0 ; +UINT nIndex =0 ;stConvergenceSLTypes *psfCSType =NULL ;S_PHS_RULE sPhsRule;USHORT uVCID = Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value;UINT UGIValue =0 ; - - Adapter->PackInfo[uiSearchRuleIndex].bValid=TRUE; -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Search Rule Index = %d\n" , uiSearchRuleIndex); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"%s: SFID= %x " ,__FUNCTION__,ntohl (psfLocalSet->u32SFID)); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Updating Queue %d" ,uiSearchRuleIndex); + Adapter->PackInfo[uiSearchRuleIndex].bValid = TRUE; +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Search Rule Index = %d\n" , uiSearchRuleIndex); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"%s: SFID= %x " , __func__,ntohl (psfLocalSet->u32SFID)); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Updating Queue %d" , uiSearchRuleIndex); ulSFID =ntohl (psfLocalSet->u32SFID); -//Store IP Version used -//Get The Version Of IP used (IPv6 or IPv4) from CSSpecification field of SF +/*Store IP Version used*/ +/*Get The Version Of IP used (v6/v4) from CSSpecification field of SF*/ Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =0 ; Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport =0 ;/*Enable IP/ETh CS Support As Required*/ -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"CopyToAdapter : u8CSSpecification : %X\n" ,psfLocalSet->u8CSSpecification); -switch (psfLocalSet->u8CSSpecification) - { -case eCSPacketIPV4: - { - Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV4_CS ; -break ; - } -case eCSPacketIPV6: - { - Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV6_CS ; -break ; - } - -case eCS802_3PacketEthernet: -case eCS802_1QPacketVLAN: - { - Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport =ETH_CS_802_3 ; -break ; - } +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"CopyToAdapter : u8CSSpecification : %X\n" , psfLocalSet-> + u8CSSpecification); +switch (psfLocalSet->u8CSSpecification) { +case eCSPacketIPV4: { + Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV4_CS ; +break ; + } +case eCSPacketIPV6: { + Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV6_CS ; +break ; + } -case eCSPacketIPV4Over802_1QVLAN: -case eCSPacketIPV4Over802_3Ethernet: - { - Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV4_CS ; - Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport =ETH_CS_802_3 ; -break ; - } +case eCS802_3PacketEthernet: +case eCS802_1QPacketVLAN: { + Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport = +ETH_CS_802_3 ; +break ; + } -case eCSPacketIPV6Over802_1QVLAN: -case eCSPacketIPV6Over802_3Ethernet: - { - Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV6_CS ; - Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport =ETH_CS_802_3 ; -break ; - } +case eCSPacketIPV4Over802_1QVLAN: +case eCSPacketIPV4Over802_3Ethernet: { + Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV4_CS ; + Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport = +ETH_CS_802_3 ; +break ; + } -default : - { -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Error in value of CS Classification.. setting default to IP CS\n" ); - Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV4_CS ; -break ; - } +case eCSPacketIPV6Over802_1QVLAN: +case eCSPacketIPV6Over802_3Ethernet: { + Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV6_CS ; + Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport = +ETH_CS_802_3 ; +break ; } -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"CopyToAdapter : Queue No : %X ETH CS Support : %X , IP CS Support : %X \n" , +default : { +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Error in value of CS Classification.. setting default to IP CS\n" ); + Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport =IPV4_CS ; +break ; + } + } +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"CopyToAdapter : Queue No : %X ETH CS Support : %X , IP CS Support : %X\n" , uiSearchRuleIndex, Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport, Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport); -//Store IP Version used -//Get The Version Of IP used (IPv6 or IPv4) from CSSpecification field of SF -if (Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport ==IPV6_CS ) - { +/*Store IP Version used*/ +/*Get The Version Of IP used (v6/v4) from CSSpecification field of SF*/ +if (Adapter->PackInfo[uiSearchRuleIndex].bIPCSSupport ==IPV6_CS ) Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion =IPV6 ; - } +else - { Adapter->PackInfo[uiSearchRuleIndex].ucIpVersion =IPV4 ; - } -/* To ensure that the ETH CS code doesn't gets executed if the BS doesn't supports ETH CS */ -if (!Adapter->bETHCSEnabled) +/* To ensure that the ETH CS code doesn't gets executed if the BS +doesn't supports ETH CS */ +if (!Adapter->bETHCSEnabled) Adapter->PackInfo[uiSearchRuleIndex].bEthCSSupport =0 ; -if (psfLocalSet->u8ServiceClassNameLength >0 && - psfLocalSet->u8ServiceClassNameLength <32 ) - { +if (psfLocalSet->u8ServiceClassNameLength >0 && + psfLocalSet->u8ServiceClassNameLength <32 ) {memcpy (Adapter->PackInfo[uiSearchRuleIndex].ucServiceClassName, psfLocalSet->u8ServiceClassName, psfLocalSet->u8ServiceClassNameLength);
@@ -622,153 +700,159 @@ static VOID CopyToAdapter( register PMINI_ADAPTER Adapter, /**<Pointer to the A Adapter->PackInfo[uiSearchRuleIndex].u8QueueType = psfLocalSet->u8ServiceFlowSchedulingType; -if (Adapter->PackInfo[uiSearchRuleIndex].u8QueueType==BE && +if (Adapter->PackInfo[uiSearchRuleIndex].u8QueueType ==BE && Adapter->PackInfo[uiSearchRuleIndex].ucDirection) - { - Adapter->usBestEffortQueueIndex=uiSearchRuleIndex; - } - - Adapter->PackInfo[uiSearchRuleIndex].ulSFID =ntohl (psfLocalSet->u32SFID); - - Adapter->PackInfo[uiSearchRuleIndex].u8TrafficPriority = psfLocalSet->u8TrafficPriority; + Adapter->usBestEffortQueueIndex = uiSearchRuleIndex; -//copy all the classifier in the Service Flow param structure -for (nIndex=0 ; nIndex<psfLocalSet->u8TotalClassifiers; nIndex++) - { -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Classifier index =%d" ,nIndex); - psfCSType = &psfLocalSet->cConvergenceSLTypes[nIndex]; -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Classifier index =%d" ,nIndex); -if (psfCSType->cCPacketClassificationRule.u8ClassifierRulePriority) - { - Adapter->PackInfo[uiSearchRuleIndex].bClassifierPriority=TRUE; - } + Adapter->PackInfo[uiSearchRuleIndex].ulSFID =ntohl (psfLocalSet-> + u32SFID); -if (psfCSType->cCPacketClassificationRule.u8ClassifierRulePriority) - { - Adapter->PackInfo[uiSearchRuleIndex].bClassifierPriority=TRUE; - } + Adapter->PackInfo[uiSearchRuleIndex].u8TrafficPriority = psfLocalSet-> + u8TrafficPriority; +/*copy all the classifier in the Service Flow param structure*/ +for (nIndex =0 ; nIndex < psfLocalSet->u8TotalClassifiers; nIndex++) { +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Classifier index =%d" , nIndex); + psfCSType = &psfLocalSet->cConvergenceSLTypes[nIndex]; +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Classifier index =%d" , nIndex); + +if (psfCSType->cCPacketClassificationRule. + u8ClassifierRulePriority) + Adapter->PackInfo[uiSearchRuleIndex].bClassifierPriority + = TRUE; + +if (psfCSType->cCPacketClassificationRule. + u8ClassifierRulePriority) + Adapter->PackInfo[uiSearchRuleIndex].bClassifierPriority + = TRUE; + +if (ucDsxType ==DSA_ACK ) + eClassifierAction = eAddClsfr; + +else if (ucDsxType ==DSC_ACK ) { +switch (psfCSType->u8ClassfierDSCAction) { +case 0 :/*DSC Add Classifier*/ { + eClassifierAction = eAddClsfr; + } +break ; +case 1 :/*DSC Replace Classifier*/ { + eClassifierAction = eRplcClsfr; + } +break ; +case 2 :/*DSC Delete Classifier*/ { + eClassifierAction = eDelClsfr; -if (ucDsxType==DSA_ACK ) - { - eClassifierAction = eAddClassifier; - } -else if (ucDsxType ==DSC_ACK ) - { -switch (psfCSType->u8ClassfierDSCAction) - { -case 0 ://DSC Add Classifier - { - eClassifierAction = eAddClassifier; - } -break ; -case 1 ://DSC Replace Classifier - { - eClassifierAction = eReplaceClassifier; - } -break ; -case 2 ://DSC Delete Classifier - { - eClassifierAction = eDeleteClassifier; - - } -break ; -default : - { - eClassifierAction = eInvalidClassifierAction; - } + } +break ; +default : { + eClassifierAction = eInvalidClsfrAction; + } } } - u16PacketClassificationRuleIndex =ntohs (psfCSType->cCPacketClassificationRule.u16PacketClassificationRuleIndex); + u16PacketClassificationRuleIndex =ntohs (psfCSType-> + cCPacketClassificationRule. + u16PacketClassificationRuleIndex); -switch (eClassifierAction) - { -case eAddClassifier: - { -//Get a Free Classifier Index From Classifier table for this SF to add the Classifier -//Contained in this message - nClassifierIndex =SearchClsid (Adapter,ulSFID,u16PacketClassificationRuleIndex); +switch (eClassifierAction) { +case eAddClsfr: { +/*Get a Free Classifier Index From Classifier table for +this SF to add the Classifier*/ +/*Contained in this message*/ + nClassifierIndex =SearchClsid (Adapter, ulSFID, + u16PacketClassificationRuleIndex); -if (nClassifierIndex >MAX_CLASSIFIERS ) - { +if (nClassifierIndex >MAX_CLASSIFIERS ) { nClassifierIndex =SearchFreeClsid (Adapter); -if (nClassifierIndex >MAX_CLASSIFIERS ) - { -//Failed To get a free Entry -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Error Failed To get a free Classifier Entry" ); +if (nClassifierIndex >MAX_CLASSIFIERS ) { +/*Failed To get a free Entry*/ +BCM_DEBUG_PRINT (Adapter, +DBG_TYPE_OTHERS , +CONN_MSG ,DBG_LVL_ALL , +"Error Failed To get a free Classifier Entry" );break ; } -//Copy the Classifier Rule for this service flow into our Classifier table maintained per SF. -CopyClassifierRuleToSF (Adapter,psfCSType,uiSearchRuleIndex,nClassifierIndex); - } +/*Copy the Classifier Rule for this service flow +into our Classifier table maintained per SF.*/ +CopyClassifierRuleToSF (Adapter, psfCSType, + uiSearchRuleIndex, nClassifierIndex); + }else +/*This Classifier Already Exists and it is +invalid to Add Classifier with existing PCRI*/ +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +CONN_MSG ,DBG_LVL_ALL , +"CopyToAdapter: Error The Specified Classifier Already Exists and " +"attempted To Add Classifier with Same PCRI : 0x%x\n" , + u16PacketClassificationRuleIndex); -else - { -//This Classifier Already Exists and it is invalid to Add Classifier with existing PCRI -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"CopyToAdapter : Error The Specified Classifier Already Exists \ -and attempted To Add Classifier with Same PCRI : 0x%x\n" , u16PacketClassificationRuleIndex); - } }break ; -case eReplaceClassifier: +case eRplcClsfr: { -//Get the Classifier Index From Classifier table for this SF and replace existing Classifier -//with the new classifier Contained in this message - nClassifierIndex =SearchClsid (Adapter,ulSFID,u16PacketClassificationRuleIndex); -if (nClassifierIndex >MAX_CLASSIFIERS ) - { -//Failed To search the classifier -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Error Search for Classifier To be replaced failed" ); +/*Get the Classifier Index From Classifier table +for this SF and replace existing Classifier*/ +/*with the new classifier Contained in this message*/ + nClassifierIndex =SearchClsid (Adapter, ulSFID, + u16PacketClassificationRuleIndex); +if (nClassifierIndex >MAX_CLASSIFIERS ) { +/*Failed To search the classifier*/ +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +CONN_MSG ,DBG_LVL_ALL , +"Error Search for Classifier To be replaced failed" );break ; } -//Copy the Classifier Rule for this service flow into our Classifier table maintained per SF. -CopyClassifierRuleToSF (Adapter,psfCSType,uiSearchRuleIndex,nClassifierIndex); +/*Copy the Classifier Rule for this service flow into +our Classifier table maintained per SF.*/ +CopyClassifierRuleToSF (Adapter, psfCSType, + uiSearchRuleIndex, nClassifierIndex); }break ; -case eDeleteClassifier: - { -//Get the Classifier Index From Classifier table for this SF and replace existing Classifier -//with the new classifier Contained in this message - nClassifierIndex =SearchClsid (Adapter,ulSFID,u16PacketClassificationRuleIndex); -if (nClassifierIndex >MAX_CLASSIFIERS ) - { -//Failed To search the classifier -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Error Search for Classifier To be deleted failed" ); +case eDelClsfr: { +/*Get the Classifier Index From Classifier table +for this SF and replace existing Classifier*/ +/*with the new classifier Contained in this message*/ + nClassifierIndex =SearchClsid (Adapter, ulSFID, + u16PacketClassificationRuleIndex); +if (nClassifierIndex >MAX_CLASSIFIERS ) { +/*Failed To search the classifier*/ +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +CONN_MSG ,DBG_LVL_ALL , +"Error Search for Classifier To be deleted failed" );break ; } -//Delete This classifier -DeleteClassifierRuleFromSF (Adapter,uiSearchRuleIndex,nClassifierIndex); +/*Delete This classifier*/ +DeleteClassifierRuleFromSF (Adapter, uiSearchRuleIndex, + nClassifierIndex); }break ; -default : - { -//Invalid Action for classifier +default : { +/*Invalid Action for classifier */ break ; } } } -//Repeat parsing Classification Entries to process PHS Rules -for (nIndex=0 ; nIndex < psfLocalSet->u8TotalClassifiers; nIndex++) - { +/*Repeat parsing Classification Entries to process PHS Rules */ +for (nIndex =0 ; nIndex < psfLocalSet->u8TotalClassifiers; nIndex++) { psfCSType = &psfLocalSet->cConvergenceSLTypes[nIndex]; -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"psfCSType->u8PhsDSCAction : 0x%x\n" , - psfCSType->u8PhsDSCAction ); - -switch (psfCSType->u8PhsDSCAction) - { -case eDeleteAllPHSRules: - { -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Deleting All PHS Rules For VCID: 0x%X\n" ,uVCID); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"psfCSType->u8PhsDSCAction : 0x%x\n" , + psfCSType->u8PhsDSCAction); -//Delete All the PHS rules for this Service flow +switch (psfCSType->u8PhsDSCAction) { +case eDeleteAllPHSRules: { +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG , +DBG_LVL_ALL , +"Deleting All PHS Rules For VCID: 0x%X\n" , uVCID); +/*Delete All the PHS rules for this Service flow*/ PhsDeleteSFRules( &Adapter->stBCMPhsContext,
@@ -776,117 +860,138 @@ static VOID CopyToAdapter( register PMINI_ADAPTER Adapter, /**<Pointer to the Abreak ; } -case eDeletePHSRule: - { -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"PHS DSC Action = Delete PHS Rule \n" ); - -if (psfCSType->cPhsRule.u8PHSI) - { -PhsDeletePHSRule ( - &Adapter->stBCMPhsContext, - uVCID, - psfCSType->cCPacketClassificationRule.u8AssociatedPHSI); - } -else - { -//BCM_DEBUG_PRINT(CONN_MSG,("Error CPHSRule.PHSI is ZERO \n")); +case eDeletePHSRule: { +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG , +DBG_LVL_ALL ,"PHS DSC Action = Delete PHS Rule\n" ); +if (psfCSType->cPhsRule.u8PHSI) { +PhsDeletePHSRule (&Adapter->stBCMPhsContext, + uVCID, psfCSType->cCPacketClassificationRule. + u8AssociatedPHSI); }break ; } -default : - { -if (ucDsxType ==DSC_ACK ) - { -//BCM_DEBUG_PRINT(CONN_MSG,("Invalid PHS DSC Action For DSC \n",psfCSType->cPhsRule.u8PHSI)); -break ;//FOr DSC ACK Case PHS DSC Action must be in valid set - } +default : { +if (ucDsxType ==DSC_ACK ) +break ; +/*BCM_DEBUG_PRINT(CONN_MSG, ("Invalid PHS DSC Action For +DSC\n", psfCSType->cPhsRule.u8PHSI));*/ +/*FOr DSC ACK Case PHS DSC Action must be invalid set*/ + } -//Proceed To Add PHS rule for DSA_ACK case even if PHS DSC action is unspecified -//No Break Here . Intentionally! +/*Proceed To Add PHS rule for DSA_ACK case even if PHS DSC +action is unspecified*/ +/*No Break Here . Intentionally!*/ case eAddPHSRule: -case eSetPHSRule: - { -if (psfCSType->cPhsRule.u8PHSI) - { -//Apply This PHS Rule to all classifiers whose Associated PHSI Match -unsigned int uiClassifierIndex =0 ; -if (pstAddIndication->u8Direction ==UPLINK_DIR ) - { -for (uiClassifierIndex=0 ;uiClassifierIndex<MAX_CLASSIFIERS ;uiClassifierIndex++) - { -if ((Adapter->astClassifierTable[uiClassifierIndex].bUsed) && - (Adapter->astClassifierTable[uiClassifierIndex].ulSFID == Adapter->PackInfo[uiSearchRuleIndex].ulSFID) && - (Adapter->astClassifierTable[uiClassifierIndex].u8AssociatedPHSI == psfCSType->cPhsRule.u8PHSI)) - { -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"Adding PHS Rule For Classifier : 0x%x cPhsRule.u8PHSI : 0x%x\n" , - Adapter->astClassifierTable[uiClassifierIndex].uiClassifierRuleIndex, - psfCSType->cPhsRule.u8PHSI); -//Update The PHS Rule for this classifier as Associated PHSI id defined - -//Copy the PHS Rule - sPhsRule.u8PHSI = psfCSType->cPhsRule.u8PHSI; - sPhsRule.u8PHSFLength = psfCSType->cPhsRule.u8PHSFLength; - sPhsRule.u8PHSMLength = psfCSType->cPhsRule.u8PHSMLength; - sPhsRule.u8PHSS = psfCSType->cPhsRule.u8PHSS; - sPhsRule.u8PHSV = psfCSType->cPhsRule.u8PHSV; -memcpy (sPhsRule.u8PHSF,psfCSType->cPhsRule.u8PHSF,MAX_PHS_LENGTHS ); -memcpy (sPhsRule.u8PHSM,psfCSType->cPhsRule.u8PHSM,MAX_PHS_LENGTHS ); +case eSetPHSRule: { +if (psfCSType->cPhsRule.u8PHSI) { +/*Apply This PHS Rule to all classifiers whose +Associated PHSI Match*/ +unsigned int index =0 ; +if (pstAddIndication->u8Direction == +UPLINK_DIR ) { +for (index =0 ; index <MAX_CLASSIFIERS ; + index++) { +if ((Adapter-> +astClassifierTable[index].bUsed) && (Adapter->astClassifierTable[index].ulSFID + == Adapter->PackInfo[uiSearchRuleIndex].ulSFID) && + (Adapter->astClassifierTable[index].u8AssociatedPHSI + == psfCSType->cPhsRule.u8PHSI)) { +BCM_DEBUG_PRINT (Adapter, +DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"Adding PHS Rule For Classifier : 0x%x cPhsRule.u8PHSI : 0x%x\n" , + Adapter-> + astClassifierTable[index].uiClassifierRuleIndex, + psfCSType-> + cPhsRule.u8PHSI); +/*Update The PHS Rule for this classifier as Associated PHSI id defined*/ + +/*Copy the PHS Rule*/ + sPhsRule.u8PHSI = + psfCSType->cPhsRule.u8PHSI; + sPhsRule.u8PHSFLength = + psfCSType->cPhsRule.u8PHSFLength; + sPhsRule.u8PHSMLength = + psfCSType->cPhsRule.u8PHSMLength; + sPhsRule.u8PHSS = + psfCSType->cPhsRule.u8PHSS; + sPhsRule.u8PHSV = + psfCSType->cPhsRule.u8PHSV; +memcpy (sPhsRule.u8PHSF, + psfCSType->cPhsRule.u8PHSF,MAX_PHS_LENGTHS ); +memcpy (sPhsRule.u8PHSM, + psfCSType->cPhsRule.u8PHSM,MAX_PHS_LENGTHS ); sPhsRule.u8RefCnt =0 ; - sPhsRule.bUnclassifiedPHSRule = FALSE; - sPhsRule.PHSModifiedBytes =0 ; - sPhsRule.PHSModifiedNumPackets =0 ; - sPhsRule.PHSErrorNumPackets =0 ; - -//bPHSRuleAssociated = TRUE; -//Store The PHS Rule for this classifier + sPhsRule. + bUnclassifiedPHSRule = FALSE; + sPhsRule. + PHSModifiedBytes =0 ; + sPhsRule. + PHSModifiedNumPackets =0 ; + sPhsRule. + PHSErrorNumPackets =0 ; + +/*bPHSRuleAssociated = TRUE;*/ +/*Store The PHS Rule for this classifier*/ PhsUpdateClassifierRule ( - &Adapter->stBCMPhsContext, + &Adapter-> + stBCMPhsContext, uVCID, - Adapter->astClassifierTable[uiClassifierIndex].uiClassifierRuleIndex, + Adapter-> + astClassifierTable[index].uiClassifierRuleIndex, &sPhsRule, - Adapter->astClassifierTable[uiClassifierIndex].u8AssociatedPHSI); - -//Update PHS Rule For the Classifier -if (sPhsRule.u8PHSI) - { - Adapter->astClassifierTable[uiClassifierIndex].u32PHSRuleID = sPhsRule.u8PHSI; -memcpy (&Adapter->astClassifierTable[uiClassifierIndex].sPhsRule,&sPhsRule,sizeof (S_PHS_RULE )); + Adapter-> + astClassifierTable[index].u8AssociatedPHSI); + +/*Update PHS Rule For the Classifier*/ +if (sPhsRule.u8PHSI) { + Adapter-> + astClassifierTable[index].u32PHSRuleID = sPhsRule.u8PHSI; +memcpy (&Adapter + ->astClassifierTable[index].sPhsRule, + &sPhsRule, +sizeof (S_PHS_RULE )); } } } - } -else - { -//Error PHS Rule specified in signaling could not be applied to any classifier - -//Copy the PHS Rule - sPhsRule.u8PHSI = psfCSType->cPhsRule.u8PHSI; - sPhsRule.u8PHSFLength = psfCSType->cPhsRule.u8PHSFLength; - sPhsRule.u8PHSMLength = psfCSType->cPhsRule.u8PHSMLength; - sPhsRule.u8PHSS = psfCSType->cPhsRule.u8PHSS; - sPhsRule.u8PHSV = psfCSType->cPhsRule.u8PHSV; -memcpy (sPhsRule.u8PHSF,psfCSType->cPhsRule.u8PHSF,MAX_PHS_LENGTHS ); -memcpy (sPhsRule.u8PHSM,psfCSType->cPhsRule.u8PHSM,MAX_PHS_LENGTHS ); + }else { +/*Error PHS Rule specified in signaling could not be applied to any classifier*/ + +/*Copy the PHS Rule*/ + sPhsRule.u8PHSI = psfCSType-> + cPhsRule.u8PHSI; + sPhsRule.u8PHSFLength = + psfCSType->cPhsRule.u8PHSFLength; + sPhsRule.u8PHSMLength = + psfCSType->cPhsRule.u8PHSMLength; + sPhsRule.u8PHSS = + psfCSType->cPhsRule.u8PHSS; + sPhsRule.u8PHSV = + psfCSType->cPhsRule.u8PHSV; +memcpy (sPhsRule.u8PHSF, + psfCSType->cPhsRule.u8PHSF,MAX_PHS_LENGTHS ); +memcpy (sPhsRule.u8PHSM, + psfCSType->cPhsRule.u8PHSM,MAX_PHS_LENGTHS ); sPhsRule.u8RefCnt =0 ; - sPhsRule.bUnclassifiedPHSRule = TRUE; + sPhsRule.bUnclassifiedPHSRule = + TRUE; sPhsRule.PHSModifiedBytes =0 ; - sPhsRule.PHSModifiedNumPackets =0 ; + sPhsRule.PHSModifiedNumPackets = +0 ; sPhsRule.PHSErrorNumPackets =0 ; -//Store The PHS Rule for this classifier - -/* -Passing the argument u8PHSI instead of clsid. Because for DL with no classifier rule, -clsid will be zero hence we can't have multiple PHS rules for the same SF. -To support multiple PHS rule, passing u8PHSI. -*/ +/*Store The PHS Rule for this classifier*/ +/* +Passing the argument u8PHSI instead of clsid. Because for DL with no classifier +rule, clsid will be zero hence we can't have multiple PHS rules for the same SF. +To support multiple PHS rule, passing u8PHSI. +*/ PhsUpdateClassifierRule ( - &Adapter->stBCMPhsContext, - uVCID, - sPhsRule.u8PHSI, + &Adapter-> + stBCMPhsContext, + uVCID, sPhsRule.u8PHSI, &sPhsRule, sPhsRule.u8PHSI);
@@ -898,78 +1003,93 @@ static VOID CopyToAdapter( register PMINI_ADAPTER Adapter, /**<Pointer to the A } } -if (psfLocalSet->u32MaxSustainedTrafficRate ==0 ) - { -//No Rate Limit . Set Max Sustained Traffic Rate to Maximum +if (psfLocalSet->u32MaxSustainedTrafficRate ==0 ) +/*No Rate Limit . Set Max Sustained Traffic Rate to Maximum*/ Adapter->PackInfo[uiSearchRuleIndex].uiMaxAllowedRate =WIMAX_MAX_ALLOWED_RATE ; - }else if (ntohl (psfLocalSet->u32MaxSustainedTrafficRate) > -WIMAX_MAX_ALLOWED_RATE ) - { -//Too large Allowed Rate specified. Limiting to Wi Max Allowed rate +WIMAX_MAX_ALLOWED_RATE ) +/*Too large Allowed Rate specified. Limiting to Wi Max +Allowed rate*/ Adapter->PackInfo[uiSearchRuleIndex].uiMaxAllowedRate = -WIMAX_MAX_ALLOWED_RATE ; - } +WIMAX_MAX_ALLOWED_RATE ; +else - { Adapter->PackInfo[uiSearchRuleIndex].uiMaxAllowedRate =ntohl (psfLocalSet->u32MaxSustainedTrafficRate); - } - Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency =ntohl (psfLocalSet->u32MaximumLatency); + Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency = +ntohl (psfLocalSet->u32MaximumLatency); -if (Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency ==0 )/* 0 should be treated as infinite */ - Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency =MAX_LATENCY_ALLOWED ; +if (Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency ==0 ) +/* 0 should be treated as infinite */ + Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency = +MAX_LATENCY_ALLOWED ; -if (( Adapter->PackInfo[uiSearchRuleIndex].u8QueueType ==ERTPS || - Adapter->PackInfo[uiSearchRuleIndex].u8QueueType ==UGS ) ) - UGIValue =ntohs (psfLocalSet->u16UnsolicitedGrantInterval); +if ((Adapter->PackInfo[uiSearchRuleIndex].u8QueueType ==ERTPS || + Adapter->PackInfo[uiSearchRuleIndex].u8QueueType + ==UGS )) + UGIValue =ntohs (psfLocalSet-> + u16UnsolicitedGrantInterval); -if (UGIValue ==0 ) +if (UGIValue ==0 ) UGIValue =DEFAULT_UG_INTERVAL ;/* For UGI based connections... -DEFAULT_UGI_FACTOR*UGIInterval worth of data is the max token count at host... -The extra amount of token is to ensure that a large amount of jitter won't have loss in throughput... -In case of non-UGI based connection, 200 frames worth of data is the max token count at host... +DEFAULT_UGI_FACTOR*UGIInterval worth of data is the max token +count at host... +The extra amount of token is to ensure that a large amount of jitter +won't have loss in throughput... +In case of non-UGI based connection, 200 frames worth of data is the max +token count at host... */ Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize = - (DEFAULT_UGI_FACTOR *Adapter->PackInfo[uiSearchRuleIndex].uiMaxAllowedRate*UGIValue)/1000 ; + (DEFAULT_UGI_FACTOR *Adapter->PackInfo[uiSearchRuleIndex]. + uiMaxAllowedRate*UGIValue)/1000 ; -if (Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize <WIMAX_MAX_MTU *8 ) - { +if (Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize < +WIMAX_MAX_MTU *8 ) {UINT UGIFactor =0 ; -/* Special Handling to ensure the biggest size of packet can go out from host to FW as follows: -1. Any packet from Host to FW can go out in different packet size. -2. So in case the Bucket count is smaller than MTU, the packets of size (Size > TokenCount), will get dropped. -3. We can allow packets of MaxSize from Host->FW that can go out from FW in multiple SDUs by fragmentation at Wimax Layer -*/ - UGIFactor = (Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency/UGIValue +1 ); - -if (UGIFactor >DEFAULT_UGI_FACTOR ) - Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize = - (UGIFactor*Adapter->PackInfo[uiSearchRuleIndex].uiMaxAllowedRate*UGIValue)/1000 ; -if (Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize >WIMAX_MAX_MTU *8 ) - Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize =WIMAX_MAX_MTU *8 ; +/* Special Handling to ensure the biggest size of packet can go +out from host to FW as follows: +1. Any packet from Host to FW can go out in diff packet size. +2. So in case the Bucket count is smaller than MTU, the packets +of size (Size > TokenCount), will get dropped. +3. We can allow packets of MaxSize from Host->FW that can go out +from FW in multiple SDUs by fragmentation at Wimax +Layer +*/ + UGIFactor = (Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency/ + UGIValue +1 ); + +if (UGIFactor >DEFAULT_UGI_FACTOR ) + Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize = + (UGIFactor*Adapter->PackInfo[uiSearchRuleIndex].uiMaxAllowedRate + *UGIValue)/1000 ; + +if (Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize > +WIMAX_MAX_MTU *8 ) + Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize = +WIMAX_MAX_MTU *8 ; } - - -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"LAT: %d, UGI: %d \n" , Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency, UGIValue); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"uiMaxAllowedRate: 0x%x, u32MaxSustainedTrafficRate: 0x%x ,uiMaxBucketSize: 0x%x" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG , +DBG_LVL_ALL ,"LAT: %d, UGI: %d\n" , + Adapter->PackInfo[uiSearchRuleIndex].uiMaxLatency, UGIValue); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"uiMaxAllowedRate: 0x%x, u32MaxSustainedTrffcRate: 0x%x, uiMaxBucketSize: 0x%x" , Adapter->PackInfo[uiSearchRuleIndex].uiMaxAllowedRate,ntohl (psfLocalSet->u32MaxSustainedTrafficRate), Adapter->PackInfo[uiSearchRuleIndex].uiMaxBucketSize); -//copy the extended SF Parameters to Support MIBS -CopyMIBSExtendedSFParameters (Adapter,psfLocalSet,uiSearchRuleIndex); +/*copy the extended SF Parameters to Support MIBS*/ +CopyMIBSExtendedSFParameters (Adapter, psfLocalSet, uiSearchRuleIndex); -//store header suppression enabled flag per SF +/*store header suppression enabled flag per SF*/ Adapter->PackInfo[uiSearchRuleIndex].bHeaderSuppressionEnabled = !(psfLocalSet->u8RequesttransmissionPolicy &MASK_DISABLE_HEADER_SUPPRESSION );
@@ -977,7 +1097,7 @@ static VOID CopyToAdapter( register PMINI_ADAPTER Adapter, /**<Pointer to the Akfree (Adapter->PackInfo[uiSearchRuleIndex].pstSFIndication); Adapter->PackInfo[uiSearchRuleIndex].pstSFIndication = pstAddIndication; -//Re Sort the SF list in PackInfo according to Traffic Priority +/*Re Sort the SF list in PackInfo according to Traffic Priority*/ SortPackInfo (Adapter);/* Re Sort the Classifier Rules table and re - arrange
@@ -986,7 +1106,8 @@ static VOID CopyToAdapter( register PMINI_ADAPTER Adapter, /**<Pointer to the ADumpPhsRules (&Adapter->stBCMPhsContext); -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL ,"%s <=====" , __FUNCTION__); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,CONN_MSG ,DBG_LVL_ALL , +"%s <=====" , __func__); }
@@ -994,7 +1115,7 @@ static VOID CopyToAdapter( register PMINI_ADAPTER Adapter, /**<Pointer to the A* Function - DumpCmControlPacket * * Description - This routinue Dumps the Contents of the AddIndication -* Structure in the Connection Management Control Packet +* Structure in the Connection Management Control Packet * * Parameter - pvBuffer: Pointer to the buffer containing the * AddIndication data.
@@ -1003,237 +1124,390 @@ static VOID CopyToAdapter( register PMINI_ADAPTER Adapter, /**<Pointer to the A*************************************************************************/ static VOID DumpCmControlPacket (PVOID pvBuffer) { -UINT uiLoopIndex; -UINT nIndex; -stLocalSFAddIndicationAlt *pstAddIndication; -UINT nCurClassifierCnt; -PMINI_ADAPTER Adapter =GET_BCM_ADAPTER (gblpnetdev); +UINT uiLoopIndex; +UINT nIndex; +stLocalSFAddIndicationAlt *pstAddIndication; +UINT nCurClassifierCnt; +PMINI_ADAPTER Adapter =GET_BCM_ADAPTER (gblpnetdev); pstAddIndication = (stLocalSFAddIndicationAlt *)pvBuffer; -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"======>" ); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8Type : 0x%X" ,pstAddIndication->u8Type); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8Direction : 0x%X" ,pstAddIndication->u8Direction); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16TID: 0x%X" ,ntohs (pstAddIndication->u16TID)); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16CID : 0x%X" ,ntohs (pstAddIndication->u16CID)); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16VCID : 0x%X" ,ntohs (pstAddIndication->u16VCID)); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," AuthorizedSet--->" ); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32SFID : 0x%X" ,htonl (pstAddIndication->sfAuthorizedSet.u32SFID)); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16CID : 0x%X" ,htons (pstAddIndication->sfAuthorizedSet.u16CID)); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ServiceClassNameLength : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"======>" ); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8Type : 0x%X" , pstAddIndication->u8Type); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8Direction : 0x%X" , pstAddIndication->u8Direction); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16TID: 0x%X" ,ntohs (pstAddIndication->u16TID)); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16CID : 0x%X" , +ntohs (pstAddIndication->u16CID)); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16VCID : 0x%X" , +ntohs (pstAddIndication->u16VCID)); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" AuthorizedSet--->" ); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32SFID : 0x%X" , +htonl (pstAddIndication->sfAuthorizedSet.u32SFID)); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16CID : 0x%X" , +htons (pstAddIndication->sfAuthorizedSet.u16CID)); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ServiceClassNameLength : 0x%X" , pstAddIndication->sfAuthorizedSet.u8ServiceClassNameLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ServiceClassName : 0x%X ,0x%X , 0x%X, 0x%X, 0x%X, 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ServiceClassName : 0x%X ,0x%X , 0x%X, 0x%X, 0x%X, 0x%X" , pstAddIndication->sfAuthorizedSet.u8ServiceClassName[0 ], pstAddIndication->sfAuthorizedSet.u8ServiceClassName[1 ], pstAddIndication->sfAuthorizedSet.u8ServiceClassName[2 ], pstAddIndication->sfAuthorizedSet.u8ServiceClassName[3 ], pstAddIndication->sfAuthorizedSet.u8ServiceClassName[4 ], - pstAddIndication->sfAuthorizedSet.u8ServiceClassName[5 ]); + pstAddIndication->sfAuthorizedSet. + u8ServiceClassName[5 ]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8MBSService : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8MBSService : 0x%X" , pstAddIndication->sfAuthorizedSet.u8MBSService); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8QosParamSet : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8QosParamSet : 0x%X" , pstAddIndication->sfAuthorizedSet.u8QosParamSet); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8TrafficPriority : 0x%X, %p" , - pstAddIndication->sfAuthorizedSet.u8TrafficPriority, &pstAddIndication->sfAuthorizedSet.u8TrafficPriority); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8TrafficPriority : 0x%X, %p" , + pstAddIndication->sfAuthorizedSet.u8TrafficPriority, + &pstAddIndication->sfAuthorizedSet.u8TrafficPriority); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MaxSustainedTrafficRate : 0x%X 0x%p" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MaxSustainedTrafficRate : 0x%X 0x%p" , pstAddIndication->sfAuthorizedSet.u32MaxSustainedTrafficRate, - &pstAddIndication->sfAuthorizedSet.u32MaxSustainedTrafficRate); + &pstAddIndication->sfAuthorizedSet. + u32MaxSustainedTrafficRate); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MaxTrafficBurst : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MaxTrafficBurst : 0x%X" , pstAddIndication->sfAuthorizedSet.u32MaxTrafficBurst); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MinReservedTrafficRate : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MinReservedTrafficRate : 0x%X" , pstAddIndication->sfAuthorizedSet.u32MinReservedTrafficRate); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificQoSParamLength : 0x%X" , - pstAddIndication->sfAuthorizedSet.u8VendorSpecificQoSParamLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificQoSParam : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8VendorSpecificQoSParamLength : 0x%X" , + pstAddIndication->sfAuthorizedSet. + u8VendorSpecificQoSParamLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8VendorSpecificQoSParam : 0x%X" , pstAddIndication->sfAuthorizedSet.u8VendorSpecificQoSParam[0 ]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ServiceFlowSchedulingType : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ServiceFlowSchedulingType : 0x%X" , pstAddIndication->sfAuthorizedSet.u8ServiceFlowSchedulingType); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32ToleratedJitter : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32ToleratedJitter : 0x%X" , pstAddIndication->sfAuthorizedSet.u32ToleratedJitter); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MaximumLatency : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MaximumLatency : 0x%X" , pstAddIndication->sfAuthorizedSet.u32MaximumLatency); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8FixedLengthVSVariableLengthSDUIndicator: 0x%X" , - pstAddIndication->sfAuthorizedSet.u8FixedLengthVSVariableLengthSDUIndicator); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8FixedLengthVSVariableLengthSDUIndicator: 0x%X" , + pstAddIndication->sfAuthorizedSet. + u8FixedLengthVSVariableLengthSDUIndicator); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8SDUSize : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8SDUSize : 0x%X" , pstAddIndication->sfAuthorizedSet.u8SDUSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16TargetSAID : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16TargetSAID : 0x%X" , pstAddIndication->sfAuthorizedSet.u16TargetSAID); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ARQEnable : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ARQEnable : 0x%X" , pstAddIndication->sfAuthorizedSet.u8ARQEnable); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQWindowSize : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQWindowSize : 0x%X" , pstAddIndication->sfAuthorizedSet.u16ARQWindowSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQRetryTxTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQRetryTxTimeOut : 0x%X" , pstAddIndication->sfAuthorizedSet.u16ARQRetryTxTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQRetryRxTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQRetryRxTimeOut : 0x%X" , pstAddIndication->sfAuthorizedSet.u16ARQRetryRxTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQBlockLifeTime : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQBlockLifeTime : 0x%X" , pstAddIndication->sfAuthorizedSet.u16ARQBlockLifeTime); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQSyncLossTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQSyncLossTimeOut : 0x%X" , pstAddIndication->sfAuthorizedSet.u16ARQSyncLossTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ARQDeliverInOrder : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ARQDeliverInOrder : 0x%X" , pstAddIndication->sfAuthorizedSet.u8ARQDeliverInOrder); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQRxPurgeTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQRxPurgeTimeOut : 0x%X" , pstAddIndication->sfAuthorizedSet.u16ARQRxPurgeTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQBlockSize : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQBlockSize : 0x%X" , pstAddIndication->sfAuthorizedSet.u16ARQBlockSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8CSSpecification : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8CSSpecification : 0x%X" , pstAddIndication->sfAuthorizedSet.u8CSSpecification); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8TypeOfDataDeliveryService : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8TypeOfDataDeliveryService : 0x%X" , pstAddIndication->sfAuthorizedSet.u8TypeOfDataDeliveryService); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16SDUInterArrivalTime : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16SDUInterArrivalTime : 0x%X" , pstAddIndication->sfAuthorizedSet.u16SDUInterArrivalTime); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16TimeBase : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16TimeBase : 0x%X" , pstAddIndication->sfAuthorizedSet.u16TimeBase); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8PagingPreference : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8PagingPreference : 0x%X" , pstAddIndication->sfAuthorizedSet.u8PagingPreference); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16UnsolicitedPollingInterval : 0x%X" , - pstAddIndication->sfAuthorizedSet.u16UnsolicitedPollingInterval); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"sfAuthorizedSet.u8HARQChannelMapping %x %x %x " , - *(unsigned int *)pstAddIndication->sfAuthorizedSet.u8HARQChannelMapping, - *(unsigned int *)&pstAddIndication->sfAuthorizedSet.u8HARQChannelMapping[4 ], - *(USHORT *) &pstAddIndication->sfAuthorizedSet.u8HARQChannelMapping[8 ]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8TrafficIndicationPreference : 0x%X" , - pstAddIndication->sfAuthorizedSet.u8TrafficIndicationPreference); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," Total Classifiers Received : 0x%X" ,pstAddIndication->sfAuthorizedSet.u8TotalClassifiers); - - nCurClassifierCnt = pstAddIndication->sfAuthorizedSet.u8TotalClassifiers; - -if (nCurClassifierCnt >MAX_CLASSIFIERS_IN_SF ) - { +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16UnsolicitedPollingInterval : 0x%X" , + pstAddIndication->sfAuthorizedSet. + u16UnsolicitedPollingInterval); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"sfAuthorizedSet.u8HARQChannelMapping %x %x %x " , + *(unsigned int *) pstAddIndication-> + sfAuthorizedSet.u8HARQChannelMapping, + *(unsigned int *) &pstAddIndication-> + sfAuthorizedSet.u8HARQChannelMapping[4 ], + *(USHORT *) &pstAddIndication->sfAuthorizedSet. + u8HARQChannelMapping[8 ]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8TrafficIndicationPreference : 0x%X" , + pstAddIndication->sfAuthorizedSet. + u8TrafficIndicationPreference); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ," Total Classifiers Received : 0x%X" , + pstAddIndication->sfAuthorizedSet.u8TotalClassifiers); + + nCurClassifierCnt = pstAddIndication->sfAuthorizedSet. + u8TotalClassifiers; + +if (nCurClassifierCnt >MAX_CLASSIFIERS_IN_SF ) nCurClassifierCnt =MAX_CLASSIFIERS_IN_SF ; - } -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"pstAddIndication->sfAuthorizedSet.bValid %d" , pstAddIndication->sfAuthorizedSet.bValid); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"pstAddIndication->sfAuthorizedSet.u16MacOverhead %x" , pstAddIndication->sfAuthorizedSet.u16MacOverhead); -if (!pstAddIndication->sfAuthorizedSet.bValid) - pstAddIndication->sfAuthorizedSet.bValid=1 ; -for (nIndex =0 ; nIndex < nCurClassifierCnt ; nIndex++) - { -stConvergenceSLTypes *psfCSType =NULL ; - psfCSType = &pstAddIndication->sfAuthorizedSet.cConvergenceSLTypes[nIndex]; - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"psfCSType = %p" , psfCSType); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"CCPacketClassificationRuleSI====>" ); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ClassifierRulePriority :0x%X " , - psfCSType->cCPacketClassificationRule.u8ClassifierRulePriority); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPTypeOfServiceLength :0x%X " , - psfCSType->cCPacketClassificationRule.u8IPTypeOfServiceLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPTypeOfService[3] :0x%X ,0x%X ,0x%X " , - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[0 ], - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[1 ], - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[2 ]); - -for (uiLoopIndex=0 ; uiLoopIndex <1 ; uiLoopIndex++) -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8Protocol : 0x%02X " , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"pstAddIndication->sfAuthorizedSet.bValid %d" , + pstAddIndication->sfAuthorizedSet.bValid); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"pstAddIndication->sfAuthorizedSet.u16MacOverhead %x" , + pstAddIndication->sfAuthorizedSet.u16MacOverhead); +if (!pstAddIndication->sfAuthorizedSet.bValid) + pstAddIndication->sfAuthorizedSet.bValid =1 ; +for (nIndex =0 ; nIndex < nCurClassifierCnt; nIndex++) { +stConvergenceSLTypes *psfCSType =NULL ; + psfCSType = &pstAddIndication->sfAuthorizedSet. + cConvergenceSLTypes[nIndex]; + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"psfCSType = %p" , psfCSType); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"CCPacketClassificationRuleSI====>" ); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8ClassifierRulePriority :0x%X " , + psfCSType->cCPacketClassificationRule. + u8ClassifierRulePriority); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8IPTypeOfServiceLength :0x%X " , + psfCSType->cCPacketClassificationRule. + u8IPTypeOfServiceLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPTypeOfService[3] :0x%X ,0x%X ,0x%X " , + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[0 ], + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[1 ], + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[2 ]); + +for (uiLoopIndex =0 ; uiLoopIndex <1 ; uiLoopIndex++) +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8Protocol : 0x%02X " , psfCSType->cCPacketClassificationRule.u8Protocol); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPMaskedSourceAddressLength :0x%X " , - psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddressLength); - -for (uiLoopIndex=0 ; uiLoopIndex <32 ; uiLoopIndex++) -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPMaskedSourceAddress[32] : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddress[uiLoopIndex]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPDestinationAddressLength : 0x%X " , - psfCSType->cCPacketClassificationRule.u8IPDestinationAddressLength); - -for (uiLoopIndex=0 ; uiLoopIndex <32 ; uiLoopIndex++) -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPDestinationAddress[32] : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8IPDestinationAddress[uiLoopIndex]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ProtocolSourcePortRangeLength:0x%X " , - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRangeLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ProtocolSourcePortRange[4]: 0x%02X ,0x%02X ,0x%02X ,0x%02X " , - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRange[0 ], - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRange[1 ], - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRange[2 ], - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRange[3 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ProtocolDestPortRangeLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRangeLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ProtocolDestPortRange[4]: 0x%02X ,0x%02X ,0x%02X ,0x%02X " , - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange[0 ], - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange[1 ], - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange[2 ], - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange[3 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthernetDestMacAddressLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddressLength); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthernetDestMacAddress[6] : 0x %02X %02X %02X %02X %02X %02X" , - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[0 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[1 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[2 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[3 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[4 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[5 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthernetSourceMACAddressLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddressLength); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthernetSourceMACAddress[6] : 0x %02X %02X %02X %02X %02X %02X" , - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[0 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[1 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[2 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[3 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[4 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[5 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthertypeLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8EthertypeLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8Ethertype[3] : 0x%02X ,0x%02X ,0x%02X " , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8IPMaskedSourceAddressLength :0x%X " , + psfCSType->cCPacketClassificationRule. + u8IPMaskedSourceAddressLength); + +for (uiLoopIndex =0 ; uiLoopIndex <32 ; uiLoopIndex++) +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +DUMP_CONTROL ,DBG_LVL_ALL , +"u8IPMaskedSourceAddress[32] : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8IPMaskedSourceAddress[uiLoopIndex]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8IPDestinationAddressLength : 0x%X " , + psfCSType->cCPacketClassificationRule. + u8IPDestinationAddressLength); + +for (uiLoopIndex =0 ; uiLoopIndex <32 ; uiLoopIndex++) +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8IPDestinationAddress[32] : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8IPDestinationAddress[uiLoopIndex]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8ProtocolSourcePortRangeLength:0x%X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRangeLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8ProtocolSourcePortRange[4]: 0x%02X ,0x%02X ,0x%02X ,0x%02X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange[0 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange[1 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange[2 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange[3 ]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8ProtocolDestPortRangeLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRangeLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8ProtocolDestPortRange[4]: 0x%02X ,0x%02X ,0x%02X ,0x%02X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRange[0 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRange[1 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRange[2 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRange[3 ]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8EthernetDestMacAddressLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddressLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8EthernetDestMacAddress[6]: 0x %02X %02X %02X %02X %02X %02X" , + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[0 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[1 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[2 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[3 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[4 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[5 ]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8EthernetSourceMACAddressLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddressLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8EtherSourceMACAddress[6]: 0x %02X %02X %02X %02X %02X %02X" , + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[0 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[1 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[2 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[3 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[4 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[5 ]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8EthertypeLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8EthertypeLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8Ethertype[3] : 0x%02X ,0x%02X ,0x%02X " , psfCSType->cCPacketClassificationRule.u8Ethertype[0 ], psfCSType->cCPacketClassificationRule.u8Ethertype[1 ], psfCSType->cCPacketClassificationRule.u8Ethertype[2 ]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16UserPriority : 0x%X " , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u16UserPriority : 0x%X " , psfCSType->cCPacketClassificationRule.u16UserPriority); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16VLANID : 0x%X " , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u16VLANID : 0x%X " , psfCSType->cCPacketClassificationRule.u16VLANID); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8AssociatedPHSI : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8AssociatedPHSI); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8AssociatedPHSI : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8AssociatedPHSI); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16PacketClassificationRuleIndex : 0x%X " , - psfCSType->cCPacketClassificationRule.u16PacketClassificationRuleIndex); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificClassifierParamLength : 0x%X " , - psfCSType->cCPacketClassificationRule.u8VendorSpecificClassifierParamLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u16PacketClassificationRuleIndex : 0x%X " , + psfCSType->cCPacketClassificationRule. + u16PacketClassificationRuleIndex); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificClassifierParam[1] : 0x%X " , - psfCSType->cCPacketClassificationRule.u8VendorSpecificClassifierParam[0 ]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8VendorSpecificClassifierParamLength : 0x%X " , + psfCSType->cCPacketClassificationRule. + u8VendorSpecificClassifierParamLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8VendorSpecificClassifierParam[1] : 0x%X " , + psfCSType->cCPacketClassificationRule. + u8VendorSpecificClassifierParam[0 ]);#ifdef VERSION_D5 -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPv6FlowLableLength :0x%X " , - psfCSType->cCPacketClassificationRule.u8IPv6FlowLableLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPv6FlowLable[6] : 0x %02X %02X %02X %02X %02X %02X " , - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[0 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[1 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[2 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[3 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[4 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[5 ]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPv6FlowLableLength :0x%X " , + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLableLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPv6FlowLable[6] : 0x %02X %02X %02X %02X %02X %02X " , + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[0 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[1 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[2 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[3 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[4 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[5 ]);#endif } -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"bValid : 0x%02X" ,pstAddIndication->sfAuthorizedSet.bValid); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"AdmittedSet--->" ); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32SFID : 0x%X" ,pstAddIndication->sfAdmittedSet.u32SFID); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16CID : 0x%X" ,pstAddIndication->sfAdmittedSet.u16CID); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ServiceClassNameLength : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"bValid : 0x%02X" , pstAddIndication->sfAuthorizedSet.bValid); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"AdmittedSet--->" ); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32SFID : 0x%X" , + pstAddIndication->sfAdmittedSet.u32SFID); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16CID : 0x%X" , + pstAddIndication->sfAdmittedSet.u16CID); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ServiceClassNameLength : 0x%X" , pstAddIndication->sfAdmittedSet.u8ServiceClassNameLength); - BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8ServiceClassName : 0x %02X %02X %02X %02X %02X %02X", + BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, + "u8ServiceClassName : 0x %02X %02X %02X %02X %02X %02X", pstAddIndication->sfAdmittedSet.u8ServiceClassName[0], pstAddIndication->sfAdmittedSet.u8ServiceClassName[1], pstAddIndication->sfAdmittedSet.u8ServiceClassName[2],
@@ -1241,198 +1515,325 @@ static VOID DumpCmControlPacket(PVOID pvBuffer) pstAddIndication->sfAdmittedSet.u8ServiceClassName[4 ], pstAddIndication->sfAdmittedSet.u8ServiceClassName[5]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8MBSService : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8MBSService : 0x%02X" , pstAddIndication->sfAdmittedSet.u8MBSService); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8QosParamSet : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8QosParamSet : 0x%02X" , pstAddIndication->sfAdmittedSet.u8QosParamSet); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8TrafficPriority : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8TrafficPriority : 0x%02X" , pstAddIndication->sfAdmittedSet.u8TrafficPriority); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MaxTrafficBurst : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MaxTrafficBurst : 0x%X" , pstAddIndication->sfAdmittedSet.u32MaxTrafficBurst); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MinReservedTrafficRate : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MinReservedTrafficRate : 0x%X" , pstAddIndication->sfAdmittedSet.u32MinReservedTrafficRate); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificQoSParamLength : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8VendorSpecificQoSParamLength : 0x%02X" , pstAddIndication->sfAdmittedSet.u8VendorSpecificQoSParamLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificQoSParam : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8VendorSpecificQoSParam : 0x%02X" , pstAddIndication->sfAdmittedSet.u8VendorSpecificQoSParam[0 ]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ServiceFlowSchedulingType : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ServiceFlowSchedulingType : 0x%02X" , pstAddIndication->sfAdmittedSet.u8ServiceFlowSchedulingType); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32ToleratedJitter : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32ToleratedJitter : 0x%X" , pstAddIndication->sfAdmittedSet.u32ToleratedJitter); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MaximumLatency : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MaximumLatency : 0x%X" , pstAddIndication->sfAdmittedSet.u32MaximumLatency); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8FixedLengthVSVariableLengthSDUIndicator: 0x%02X" , - pstAddIndication->sfAdmittedSet.u8FixedLengthVSVariableLengthSDUIndicator); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8SDUSize : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8FixedLengthVSVariableLengthSDUIndicator: 0x%02X" , + pstAddIndication->sfAdmittedSet. + u8FixedLengthVSVariableLengthSDUIndicator); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8SDUSize : 0x%02X" , pstAddIndication->sfAdmittedSet.u8SDUSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16TargetSAID : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16TargetSAID : 0x%02X" , pstAddIndication->sfAdmittedSet.u16TargetSAID); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ARQEnable : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ARQEnable : 0x%02X" , pstAddIndication->sfAdmittedSet.u8ARQEnable); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQWindowSize : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQWindowSize : 0x%X" , pstAddIndication->sfAdmittedSet.u16ARQWindowSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQRetryTxTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQRetryTxTimeOut : 0x%X" , pstAddIndication->sfAdmittedSet.u16ARQRetryTxTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQRetryRxTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQRetryRxTimeOut : 0x%X" , pstAddIndication->sfAdmittedSet.u16ARQRetryRxTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQBlockLifeTime : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQBlockLifeTime : 0x%X" , pstAddIndication->sfAdmittedSet.u16ARQBlockLifeTime); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQSyncLossTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQSyncLossTimeOut : 0x%X" , pstAddIndication->sfAdmittedSet.u16ARQSyncLossTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ARQDeliverInOrder : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ARQDeliverInOrder : 0x%02X" , pstAddIndication->sfAdmittedSet.u8ARQDeliverInOrder); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQRxPurgeTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQRxPurgeTimeOut : 0x%X" , pstAddIndication->sfAdmittedSet.u16ARQRxPurgeTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16ARQBlockSize : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16ARQBlockSize : 0x%X" , pstAddIndication->sfAdmittedSet.u16ARQBlockSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8CSSpecification : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8CSSpecification : 0x%02X" , pstAddIndication->sfAdmittedSet.u8CSSpecification); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8TypeOfDataDeliveryService : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8TypeOfDataDeliveryService : 0x%02X" , pstAddIndication->sfAdmittedSet.u8TypeOfDataDeliveryService); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16SDUInterArrivalTime : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16SDUInterArrivalTime : 0x%X" , pstAddIndication->sfAdmittedSet.u16SDUInterArrivalTime); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16TimeBase : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16TimeBase : 0x%X" , pstAddIndication->sfAdmittedSet.u16TimeBase); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8PagingPreference : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8PagingPreference : 0x%X" , pstAddIndication->sfAdmittedSet.u8PagingPreference); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8TrafficIndicationPreference : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8TrafficIndicationPreference : 0x%02X" , pstAddIndication->sfAdmittedSet.u8TrafficIndicationPreference); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," Total Classifiers Received : 0x%X" ,pstAddIndication->sfAdmittedSet.u8TotalClassifiers); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ," Total Classifiers Received : 0x%X" , + pstAddIndication->sfAdmittedSet.u8TotalClassifiers); nCurClassifierCnt = pstAddIndication->sfAdmittedSet.u8TotalClassifiers; -if (nCurClassifierCnt >MAX_CLASSIFIERS_IN_SF ) - { +if (nCurClassifierCnt >MAX_CLASSIFIERS_IN_SF ) nCurClassifierCnt =MAX_CLASSIFIERS_IN_SF ; - } -for (nIndex =0 ; nIndex < nCurClassifierCnt ; nIndex++) - { - +for (nIndex =0 ; nIndex < nCurClassifierCnt; nIndex++) {stConvergenceSLTypes *psfCSType =NULL ; - psfCSType = &pstAddIndication->sfAdmittedSet.cConvergenceSLTypes[nIndex]; - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," CCPacketClassificationRuleSI====>" ); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ClassifierRulePriority :0x%02X " , - psfCSType->cCPacketClassificationRule.u8ClassifierRulePriority); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPTypeOfServiceLength :0x%02X" , - psfCSType->cCPacketClassificationRule.u8IPTypeOfServiceLength); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPTypeOfService[3] :0x%02X %02X %02X" , - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[0 ], - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[1 ], - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[2 ]); -for (uiLoopIndex=0 ; uiLoopIndex <1 ; uiLoopIndex++) -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8Protocol: 0x%02X " , + psfCSType = &pstAddIndication->sfAdmittedSet. + cConvergenceSLTypes[nIndex]; + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ," CCPacketClassificationRuleSI====>" ); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8ClassifierRulePriority :0x%02X " , + psfCSType->cCPacketClassificationRule. + u8ClassifierRulePriority); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPTypeOfServiceLength :0x%02X" , + psfCSType->cCPacketClassificationRule. + u8IPTypeOfServiceLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPTypeOfService[3] :0x%02X %02X %02X" , + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[0 ], + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[1 ], + psfCSType->cCPacketClassificationRule. + u8IPTypeOfService[2 ]); +for (uiLoopIndex =0 ; uiLoopIndex <1 ; uiLoopIndex++) +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8Protocol: 0x%02X " , psfCSType->cCPacketClassificationRule.u8Protocol); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPMaskedSourceAddressLength :0x%02X " , - psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddressLength); - -for (uiLoopIndex=0 ; uiLoopIndex <32 ; uiLoopIndex++) -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPMaskedSourceAddress[32] : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddress[uiLoopIndex]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPDestinationAddressLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8IPDestinationAddressLength); - -for (uiLoopIndex=0 ; uiLoopIndex <32 ; uiLoopIndex++) -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPDestinationAddress[32] : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8IPDestinationAddress[uiLoopIndex]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ProtocolSourcePortRangeLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRangeLength); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ProtocolSourcePortRange[4] : 0x %02X %02X %02X %02X " , - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRange[0 ], - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRange[1 ], - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRange[2 ], - psfCSType->cCPacketClassificationRule.u8ProtocolSourcePortRange[3 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ProtocolDestPortRangeLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRangeLength); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ProtocolDestPortRange[4] : 0x %02X %02X %02X %02X " , - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange[0 ], - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange[1 ], - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange[2 ], - psfCSType->cCPacketClassificationRule.u8ProtocolDestPortRange[3 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthernetDestMacAddressLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddressLength); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthernetDestMacAddress[6] : 0x %02X %02X %02X %02X %02X %02X" , - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[0 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[1 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[2 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[3 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[4 ], - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddress[5 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthernetSourceMACAddressLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8EthernetDestMacAddressLength); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthernetSourceMACAddress[6] : 0x %02X %02X %02X %02X %02X %02X" , - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[0 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[1 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[2 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[3 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[4 ], - psfCSType->cCPacketClassificationRule.u8EthernetSourceMACAddress[5 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8EthertypeLength : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8EthertypeLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8Ethertype[3] : 0x%02X %02X %02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPMaskedSourceAddressLength :0x%02X " , + psfCSType->cCPacketClassificationRule. + u8IPMaskedSourceAddressLength); + +for (uiLoopIndex =0 ; uiLoopIndex <32 ; uiLoopIndex++) +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPMaskedSourceAddress[32] : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8IPMaskedSourceAddress[uiLoopIndex]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPDestinationAddressLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8IPDestinationAddressLength); + +for (uiLoopIndex =0 ; uiLoopIndex <32 ; uiLoopIndex++) +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPDestinationAddress[32] : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8IPDestinationAddress[uiLoopIndex]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8ProtocolSourcePortRangeLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRangeLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8ProtocolSourcePortRange[4]: 0x %02X %02X %02X %02X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange[0 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange[1 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange[2 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolSourcePortRange[3 ]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8ProtocolDestPortRangeLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRangeLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8ProtocolDestPortRange[4] : 0x %02X %02X %02X %02X " , + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRange[0 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRange[1 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRange[2 ], + psfCSType->cCPacketClassificationRule. + u8ProtocolDestPortRange[3 ]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8EthernetDestMacAddressLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddressLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +DUMP_CONTROL ,DBG_LVL_ALL , +"u8EtherDestMacAddress[6]: 0x %02X %02X %02X %02X %02X %02X" , + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[0 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[1 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[2 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[3 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[4 ], + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddress[5 ]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8EthernetSourceMACAddressLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8EthernetDestMacAddressLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8EthernetSourceMACAddress[6]: 0x %02X %02X %02X %02X %02X %02X" , + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[0 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[1 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[2 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[3 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[4 ], + psfCSType->cCPacketClassificationRule. + u8EthernetSourceMACAddress[5 ]); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8EthertypeLength : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8EthertypeLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8Ethertype[3] : 0x%02X %02X %02X" , psfCSType->cCPacketClassificationRule.u8Ethertype[0 ], psfCSType->cCPacketClassificationRule.u8Ethertype[1 ], psfCSType->cCPacketClassificationRule.u8Ethertype[2 ]); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16UserPriority : 0x%X " , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u16UserPriority : 0x%X " , psfCSType->cCPacketClassificationRule.u16UserPriority); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16VLANID : 0x%X " , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u16VLANID : 0x%X " , psfCSType->cCPacketClassificationRule.u16VLANID); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8AssociatedPHSI : 0x%02X " , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8AssociatedPHSI : 0x%02X " , psfCSType->cCPacketClassificationRule.u8AssociatedPHSI); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16PacketClassificationRuleIndex : 0x%X " , - psfCSType->cCPacketClassificationRule.u16PacketClassificationRuleIndex); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u16PacketClassificationRuleIndex : 0x%X " , + psfCSType->cCPacketClassificationRule. + u16PacketClassificationRuleIndex); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificClassifierParamLength : 0x%02X" , - psfCSType->cCPacketClassificationRule.u8VendorSpecificClassifierParamLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificClassifierParam[1] : 0x%02X " , - psfCSType->cCPacketClassificationRule.u8VendorSpecificClassifierParam[0 ]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8VendorSpecificClassifierParamLength : 0x%02X" , + psfCSType->cCPacketClassificationRule. + u8VendorSpecificClassifierParamLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8VendorSpecificClassifierParam[1] : 0x%02X " , + psfCSType->cCPacketClassificationRule. + u8VendorSpecificClassifierParam[0 ]);#ifdef VERSION_D5 -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPv6FlowLableLength : 0x%X " , - psfCSType->cCPacketClassificationRule.u8IPv6FlowLableLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPv6FlowLable[6] : 0x %02X %02X %02X %02X %02X %02X " , - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[0 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[1 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[2 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[3 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[4 ], - psfCSType->cCPacketClassificationRule.u8IPv6FlowLable[5 ]); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPv6FlowLableLength : 0x%X " , + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLableLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL , +"u8IPv6FlowLable[6]: 0x %02X %02X %02X %02X %02X %02X " , + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[0 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[1 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[2 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[3 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[4 ], + psfCSType->cCPacketClassificationRule. + u8IPv6FlowLable[5 ]);#endif } -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"bValid : 0x%X" ,pstAddIndication->sfAdmittedSet.bValid); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," ActiveSet--->" ); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32SFID : 0x%X" ,pstAddIndication->sfActiveSet.u32SFID); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u16CID : 0x%X" ,pstAddIndication->sfActiveSet.u16CID); - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ServiceClassNameLength : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"bValid : 0x%X" , + pstAddIndication->sfAdmittedSet.bValid); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" ActiveSet--->" ); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32SFID : 0x%X" , + pstAddIndication->sfActiveSet.u32SFID); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u16CID : 0x%X" , + pstAddIndication->sfActiveSet.u16CID); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ServiceClassNameLength : 0x%X" , pstAddIndication->sfActiveSet.u8ServiceClassNameLength); - BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8ServiceClassName : 0x %02X %02X %02X %02X %02X %02X", + BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, + "u8ServiceClassName: 0x %02X %02X %02X %02X %02X %02X", pstAddIndication->sfActiveSet.u8ServiceClassName[0], pstAddIndication->sfActiveSet.u8ServiceClassName[1], pstAddIndication->sfActiveSet.u8ServiceClassName[2],
@@ -1440,230 +1841,339 @@ static VOID DumpCmControlPacket(PVOID pvBuffer) pstAddIndication->sfActiveSet.u8ServiceClassName[4 ], pstAddIndication->sfActiveSet.u8ServiceClassName[5]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8MBSService : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8MBSService : 0x%02X" , pstAddIndication->sfActiveSet.u8MBSService); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8QosParamSet : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8QosParamSet : 0x%02X" , pstAddIndication->sfActiveSet.u8QosParamSet); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8TrafficPriority : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8TrafficPriority : 0x%02X" , pstAddIndication->sfActiveSet.u8TrafficPriority); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MaxTrafficBurst : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MaxTrafficBurst : 0x%X" , pstAddIndication->sfActiveSet.u32MaxTrafficBurst); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MinReservedTrafficRate : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MinReservedTrafficRate : 0x%X" , pstAddIndication->sfActiveSet.u32MinReservedTrafficRate); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificQoSParamLength : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8VendorSpecificQoSParamLength : 0x%02X" , pstAddIndication->sfActiveSet.u8VendorSpecificQoSParamLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8VendorSpecificQoSParam : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8VendorSpecificQoSParam : 0x%02X" , pstAddIndication->sfActiveSet.u8VendorSpecificQoSParam[0 ]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8ServiceFlowSchedulingType : 0x%02X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8ServiceFlowSchedulingType : 0x%02X" , pstAddIndication->sfActiveSet.u8ServiceFlowSchedulingType); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32ToleratedJitter : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32ToleratedJitter : 0x%X" , pstAddIndication->sfActiveSet.u32ToleratedJitter); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u32MaximumLatency : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u32MaximumLatency : 0x%X" , pstAddIndication->sfActiveSet.u32MaximumLatency); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8FixedLengthVSVariableLengthSDUIndicator: 0x%02X" , - pstAddIndication->sfActiveSet.u8FixedLengthVSVariableLengthSDUIndicator); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8FixedLengthVSVariableLengthSDUIndicator: 0x%02X" , + pstAddIndication->sfActiveSet. + u8FixedLengthVSVariableLengthSDUIndicator); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8SDUSize : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +"u8SDUSize : 0x%X" , pstAddIndication->sfActiveSet.u8SDUSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16TargetSAID : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16TargetSAID : 0x%X" , pstAddIndication->sfActiveSet.u16TargetSAID); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8ARQEnable : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u8ARQEnable : 0x%X" , pstAddIndication->sfActiveSet.u8ARQEnable); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16ARQWindowSize : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16ARQWindowSize : 0x%X" , pstAddIndication->sfActiveSet.u16ARQWindowSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16ARQRetryTxTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16ARQRetryTxTimeOut : 0x%X" , pstAddIndication->sfActiveSet.u16ARQRetryTxTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16ARQRetryRxTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16ARQRetryRxTimeOut : 0x%X" , pstAddIndication->sfActiveSet.u16ARQRetryRxTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16ARQBlockLifeTime : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16ARQBlockLifeTime : 0x%X" , pstAddIndication->sfActiveSet.u16ARQBlockLifeTime); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16ARQSyncLossTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16ARQSyncLossTimeOut : 0x%X" , pstAddIndication->sfActiveSet.u16ARQSyncLossTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8ARQDeliverInOrder : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u8ARQDeliverInOrder : 0x%X" , pstAddIndication->sfActiveSet.u8ARQDeliverInOrder); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16ARQRxPurgeTimeOut : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16ARQRxPurgeTimeOut : 0x%X" , pstAddIndication->sfActiveSet.u16ARQRxPurgeTimeOut); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16ARQBlockSize : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16ARQBlockSize : 0x%X" , pstAddIndication->sfActiveSet.u16ARQBlockSize); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8CSSpecification : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u8CSSpecification : 0x%X" , pstAddIndication->sfActiveSet.u8CSSpecification); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8TypeOfDataDeliveryService : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u8TypeOfDataDeliveryService : 0x%X" , pstAddIndication->sfActiveSet.u8TypeOfDataDeliveryService); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16SDUInterArrivalTime : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16SDUInterArrivalTime : 0x%X" , pstAddIndication->sfActiveSet.u16SDUInterArrivalTime); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u16TimeBase : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u16TimeBase : 0x%X" , pstAddIndication->sfActiveSet.u16TimeBase); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8PagingPreference : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u8PagingPreference : 0x%X" , pstAddIndication->sfActiveSet.u8PagingPreference); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8TrafficIndicationPreference : 0x%X" , +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" u8TrafficIndicationPreference : 0x%X" , pstAddIndication->sfActiveSet.u8TrafficIndicationPreference); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," Total Classifiers Received : 0x%X" ,pstAddIndication->sfActiveSet.u8TotalClassifiers); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL , +" Total Classifiers Received : 0x%X" , + pstAddIndication->sfActiveSet.u8TotalClassifiers); nCurClassifierCnt = pstAddIndication->sfActiveSet.u8TotalClassifiers; -if (nCurClassifierCnt >MAX_CLASSIFIERS_IN_SF ) - { +if (nCurClassifierCnt >MAX_CLASSIFIERS_IN_SF ) nCurClassifierCnt =MAX_CLASSIFIERS_IN_SF ; - } -for (nIndex =0 ; nIndex < nCurClassifierCnt ; nIndex++) - { +for (nIndex =0 ; nIndex < nCurClassifierCnt ; nIndex++) {stConvergenceSLTypes *psfCSType =NULL ; - psfCSType = &pstAddIndication->sfActiveSet.cConvergenceSLTypes[nIndex]; - - -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," CCPacketClassificationRuleSI====>" ); + psfCSType = &pstAddIndication->sfActiveSet. + cConvergenceSLTypes[nIndex]; + + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ," CCPacketClassificationRuleSI====>" ); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +DUMP_CONTROL ,DBG_LVL_ALL , +" u8ClassifierRulePriority :0x%X " , + psfCSType-> + cCPacketClassificationRule.u8ClassifierRulePriority); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ," u8IPTypeOfServiceLength :0x%X " , + psfCSType-> + cCPacketClassificationRule.u8IPTypeOfServiceLength); + +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8IPTypeOfService[3] :0x%X ,0x%X ,0x%X " , + psfCSType-> + cCPacketClassificationRule.u8IPTypeOfService[0 ], + psfCSType-> + cCPacketClassificationRule.u8IPTypeOfService[1 ], + psfCSType-> + cCPacketClassificationRule.u8IPTypeOfService[2 ]); +for (uiLoopIndex =0 ; uiLoopIndex <1 ; uiLoopIndex++) +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ," u8Protocol: 0x%X " , + psfCSType->cCPacketClassificationRule.u8Protocol); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8ClassifierRulePriority :0x%X " , - psfCSType->cCPacketClassificationRule.u8ClassifierRulePriority); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8IPTypeOfServiceLength :0x%X " , - psfCSType->cCPacketClassificationRule.u8IPTypeOfServiceLength); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL , +DBG_LVL_ALL ,"u8IPMaskedSourceAddressLength :0x%X " , + psfCSType->cCPacketClassificationRule. + u8IPMaskedSourceAddressLength); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8IPTypeOfService[3] :0x%X ,0x%X ,0x%X " , - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[0 ], - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[1 ], - psfCSType->cCPacketClassificationRule.u8IPTypeOfService[2 ]); -for (uiLoopIndex=0 ; uiLoopIndex <1 ; uiLoopIndex++) -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ," u8Protocol : 0x%X " , - psfCSType->cCPacketClassificationRule.u8Protocol); +for (uiLoopIndex =0 ; uiLoopIndex <32 ; uiLoopIndex++) +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS , +DUMP_CONTROL ,DBG_LVL_ALL , +"u8IPMaskedSourceAddress[32]:0x%X " , + psfCSType->cCPacketClassificationRule. + u8IPMaskedSourceAddress[uiLoopIndex]); -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPMaskedSourceAddressLength :0x%X " , - psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddressLength); - -for (uiLoopIndex=0 ; uiLoopIndex <32 ; uiLoopIndex++) -BCM_DEBUG_PRINT ( Adapter,DBG_TYPE_OTHERS ,DUMP_CONTROL ,DBG_LVL_ALL ,"u8IPMaskedSourceAddress[32]:0x%X " , - psfCSType->cCPacketClassificationRule.u8IPMaskedSourceAddress[uiLoopIndex]); - - BCM_DEBUG_PRINT( Adapter,DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "u8IPDestinationAddressLength : 0x%02X ",
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.5.4
Part of the diff is not shown here. View the raw message.
Hi Tresca,
Welcome. :)
1) This patch combines way too many things into one patch. Only do one logical thing per patch.
2) When you're writing the changelog write a one line summary at the top, leave a blank line, and then write the changelog. You didn't have the summary so the Subject of the email was messed up.
3) No signed-off-by line.
Quoted 1 line · Tresca Agustin
From: Tresca Agustin <atresca@atresca-system.(none)>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The email address is wrong here.
Quoted 20 lines
--- drivers/staging/bcm/CmHost.c | 3794 ++++++++++++++++++++++++----------------- 1 files changed, 2221 insertions(+), 1573 deletions(-)drivers/staging/bcm/CmHost.c +1
-4@@ -4,18 +4,17 @@* Management. ************************************************************/ -//#define CONN_MSG +/*#define CONN_MSG*/ #include "headers.h" -typedef enum _E_CLASSIFIER_ACTION -{ - eInvalidClassifierAction,
drivers/staging/bcm/CmHost.c line 15
Quoted 10 lines
drivers/staging/bcm/CmHost.c +6
-4- eAddClassifier, - eReplaceClassifier, - eDeleteClassifier -}E_CLASSIFIER_ACTION ; +enum _E_CLASSIFIER_ACTION { + eInvalidClsfrAction, + eAddClsfr, + eRplcClsfr, + eDelClsfr +};/*_E_CLASSIFIER_ACTION*/
These names are even worse than the original.
Quoted 13 lines
drivers/staging/bcm/CmHost.c +2
-2-static ULONG GetNextTargetBufferLocation (PMINI_ADAPTER Adapter,B_UINT16 tid); +static ULONG GetNextTargetBufferLocation (PMINI_ADAPTER Adapter,B_UINT16 tid);/************************************************************ * Function - SearchSfid @@ -24,18 +23,18 @@ static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter,B_UINT16 tid);* specified SFID as input parameter. * * Parameters - Adapter: Pointer to the Adapter structure -* uiSfid : Given SFID for matching +* uiSfid : Given SFID for matching *
drivers/staging/bcm/CmHost.c static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter,B_UINT16 tid); · line 33
Quoted 10 lines
drivers/staging/bcm/CmHost.c +2
-4* Returns - Queue index for this SFID(If matched) Else Invalid Queue Index(If Not matched) ************************************************************/ -INT SearchSfid (PMINI_ADAPTER Adapter,UINT uiSfid) +INT SearchSfid (PMINI_ADAPTER Adapter,UINT uiSfid) { -INT iIndex=0 ; -for (iIndex=(NO_OF_QUEUES -1 ); iIndex>=0 ; iIndex--) -if (Adapter->PackInfo[iIndex].ulSFID==uiSfid) +INT iIndex =0 ;
blank line goes here.
INT should be changed to "int"
No need to initialize iIndex.
drivers/staging/bcm/CmHost.c static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter,B_UINT16 tid); · line 36
Quoted 3 lines
drivers/staging/bcm/CmHost.c +2
-0+for (iIndex = (NO_OF_QUEUES -1 ); iIndex >=0 ; iIndex--) +if (Adapter->PackInfo[iIndex].ulSFID == uiSfid)return iIndex;
But curly braces around multi-line indent blocks for style reasons even though it's not needed for semantic reasons.
drivers/staging/bcm/CmHost.c static ULONG GetNextTargetBufferLocation(PMINI_ADAPTER Adapter,B_UINT16 tid); · line 37
Quoted 2 lines
drivers/staging/bcm/CmHost.c +1
-1-return NO_OF_QUEUES +1 ; +return NO_OF_QUEUES +1 ;
Anyway, this whole thing needs to be broken up into smaller logical patches and resent. Like maybe change fix add spaces around the operators in one patch or something like that. Fix one class of checkpatch.pl warning at a time.
Don't worry that your first patch was not accepted. Everyone's first patch gets rejected. :P
regards,
dan carpenter