mirror of https://gitee.com/openkylin/linux.git
Staging: bcm: Qos.c: Line length / Whitespace cleanup in MatchDestPort()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
66fa6530fa
commit
5fb136700d
|
@ -235,7 +235,8 @@ bool MatchSrcPort(struct bcm_classifier_rule *pstClassifierRule,
|
||||||
*
|
*
|
||||||
* Returns - TRUE(If address matches) else FAIL.
|
* Returns - TRUE(If address matches) else FAIL.
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
bool MatchDestPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushDestPort)
|
bool MatchDestPort(struct bcm_classifier_rule *pstClassifierRule,
|
||||||
|
USHORT ushDestPort)
|
||||||
{
|
{
|
||||||
UCHAR ucLoopIndex = 0;
|
UCHAR ucLoopIndex = 0;
|
||||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||||
|
@ -243,14 +244,28 @@ bool MatchDestPort(struct bcm_classifier_rule *pstClassifierRule, USHORT ushDest
|
||||||
if (0 == pstClassifierRule->ucDestPortRangeLength)
|
if (0 == pstClassifierRule->ucDestPortRangeLength)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
for (ucLoopIndex = 0; ucLoopIndex < pstClassifierRule->ucDestPortRangeLength; ucLoopIndex++) {
|
for (ucLoopIndex = 0;
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Matching Port:0x%X 0x%X 0x%X", ushDestPort, pstClassifierRule->usDestPortRangeLo[ucLoopIndex], pstClassifierRule->usDestPortRangeHi[ucLoopIndex]);
|
ucLoopIndex < pstClassifierRule->ucDestPortRangeLength;
|
||||||
|
ucLoopIndex++) {
|
||||||
|
BCM_DEBUG_PRINT(Adapter,
|
||||||
|
DBG_TYPE_TX,
|
||||||
|
IPV4_DBG,
|
||||||
|
DBG_LVL_ALL,
|
||||||
|
"Matching Port:0x%X 0x%X 0x%X",
|
||||||
|
ushDestPort,
|
||||||
|
pstClassifierRule->usDestPortRangeLo[ucLoopIndex],
|
||||||
|
pstClassifierRule->usDestPortRangeHi[ucLoopIndex]);
|
||||||
|
|
||||||
if (ushDestPort <= pstClassifierRule->usDestPortRangeHi[ucLoopIndex] &&
|
if (ushDestPort <= pstClassifierRule->usDestPortRangeHi[ucLoopIndex] &&
|
||||||
ushDestPort >= pstClassifierRule->usDestPortRangeLo[ucLoopIndex])
|
ushDestPort >= pstClassifierRule->usDestPortRangeLo[ucLoopIndex])
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Dest Port: %x Not Matched", ushDestPort);
|
BCM_DEBUG_PRINT(Adapter,
|
||||||
|
DBG_TYPE_TX,
|
||||||
|
IPV4_DBG,
|
||||||
|
DBG_LVL_ALL,
|
||||||
|
"Dest Port: %x Not Matched",
|
||||||
|
ushDestPort);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue