mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-14 11:27:32 +07:00
Staging: bcm: Qos.c: Line length / Whitespace cleanup in MatchProtocol()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0144b84e0c
commit
fcaa42c71a
@ -158,19 +158,32 @@ static bool MatchTos(struct bcm_classifier_rule *pstClassifierRule,
|
|||||||
*
|
*
|
||||||
* Returns - TRUE(If address matches) else FAIL.
|
* Returns - TRUE(If address matches) else FAIL.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
bool MatchProtocol(struct bcm_classifier_rule *pstClassifierRule, UCHAR ucProtocol)
|
bool MatchProtocol(struct bcm_classifier_rule *pstClassifierRule,
|
||||||
|
UCHAR ucProtocol)
|
||||||
{
|
{
|
||||||
UCHAR ucLoopIndex = 0;
|
UCHAR ucLoopIndex = 0;
|
||||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||||
|
|
||||||
if (0 == pstClassifierRule->ucProtocolLength)
|
if (0 == pstClassifierRule->ucProtocolLength)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
for (ucLoopIndex = 0; ucLoopIndex < pstClassifierRule->ucProtocolLength; ucLoopIndex++) {
|
for (ucLoopIndex = 0;
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Protocol:0x%X Classification Protocol:0x%X", ucProtocol, pstClassifierRule->ucProtocol[ucLoopIndex]);
|
ucLoopIndex < pstClassifierRule->ucProtocolLength;
|
||||||
|
ucLoopIndex++) {
|
||||||
|
BCM_DEBUG_PRINT(Adapter,
|
||||||
|
DBG_TYPE_TX,
|
||||||
|
IPV4_DBG,
|
||||||
|
DBG_LVL_ALL,
|
||||||
|
"Protocol:0x%X Classification Protocol:0x%X",
|
||||||
|
ucProtocol,
|
||||||
|
pstClassifierRule->ucProtocol[ucLoopIndex]);
|
||||||
if (pstClassifierRule->ucProtocol[ucLoopIndex] == ucProtocol)
|
if (pstClassifierRule->ucProtocol[ucLoopIndex] == ucProtocol)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "Protocol Not Matched");
|
BCM_DEBUG_PRINT(Adapter,
|
||||||
|
DBG_TYPE_TX,
|
||||||
|
IPV4_DBG,
|
||||||
|
DBG_LVL_ALL,
|
||||||
|
"Protocol Not Matched");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user