Staging: bcm: Qos.c: Line length / Whitespace cleanup in EthCSMatchEThTypeSAP()
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e519545e76
commit
3343b2ec4b
1 changed files with 32 additions and 6 deletions
|
@ -929,7 +929,9 @@ static bool EthCSMatchDestMACAddress(struct bcm_classifier_rule *pstClassifierRu
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool EthCSMatchEThTypeSAP(struct bcm_classifier_rule *pstClassifierRule, struct sk_buff *skb, struct bcm_eth_packet_info *pstEthCsPktInfo)
|
static bool EthCSMatchEThTypeSAP(struct bcm_classifier_rule *pstClassifierRule,
|
||||||
|
struct sk_buff *skb,
|
||||||
|
struct bcm_eth_packet_info *pstEthCsPktInfo)
|
||||||
{
|
{
|
||||||
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
struct bcm_mini_adapter *Adapter = GET_BCM_ADAPTER(gblpnetdev);
|
||||||
|
|
||||||
|
@ -937,11 +939,27 @@ static bool EthCSMatchEThTypeSAP(struct bcm_classifier_rule *pstClassifierRule,
|
||||||
(pstClassifierRule->au8EthCSEtherType[0] == 0))
|
(pstClassifierRule->au8EthCSEtherType[0] == 0))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "%s SrcEtherType:%x CLS EtherType[0]:%x\n", __func__, pstEthCsPktInfo->usEtherType, pstClassifierRule->au8EthCSEtherType[0]);
|
BCM_DEBUG_PRINT(Adapter,
|
||||||
|
DBG_TYPE_TX,
|
||||||
|
IPV4_DBG,
|
||||||
|
DBG_LVL_ALL,
|
||||||
|
"%s SrcEtherType:%x CLS EtherType[0]:%x\n",
|
||||||
|
__func__,
|
||||||
|
pstEthCsPktInfo->usEtherType,
|
||||||
|
pstClassifierRule->au8EthCSEtherType[0]);
|
||||||
if (pstClassifierRule->au8EthCSEtherType[0] == 1) {
|
if (pstClassifierRule->au8EthCSEtherType[0] == 1) {
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "%s CLS EtherType[1]:%x EtherType[2]:%x\n", __func__, pstClassifierRule->au8EthCSEtherType[1], pstClassifierRule->au8EthCSEtherType[2]);
|
BCM_DEBUG_PRINT(Adapter,
|
||||||
|
DBG_TYPE_TX,
|
||||||
|
IPV4_DBG,
|
||||||
|
DBG_LVL_ALL,
|
||||||
|
"%s CLS EtherType[1]:%x EtherType[2]:%x\n",
|
||||||
|
__func__,
|
||||||
|
pstClassifierRule->au8EthCSEtherType[1],
|
||||||
|
pstClassifierRule->au8EthCSEtherType[2]);
|
||||||
|
|
||||||
if (memcmp(&pstEthCsPktInfo->usEtherType, &pstClassifierRule->au8EthCSEtherType[1], 2) == 0)
|
if (memcmp(&pstEthCsPktInfo->usEtherType,
|
||||||
|
&pstClassifierRule->au8EthCSEtherType[1],
|
||||||
|
2) == 0)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
@ -951,8 +969,16 @@ static bool EthCSMatchEThTypeSAP(struct bcm_classifier_rule *pstClassifierRule,
|
||||||
if (eEth802LLCFrame != pstEthCsPktInfo->eNwpktEthFrameType)
|
if (eEth802LLCFrame != pstEthCsPktInfo->eNwpktEthFrameType)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
BCM_DEBUG_PRINT(Adapter, DBG_TYPE_TX, IPV4_DBG, DBG_LVL_ALL, "%s EthCS DSAP:%x EtherType[2]:%x\n", __func__, pstEthCsPktInfo->ucDSAP, pstClassifierRule->au8EthCSEtherType[2]);
|
BCM_DEBUG_PRINT(Adapter,
|
||||||
if (pstEthCsPktInfo->ucDSAP == pstClassifierRule->au8EthCSEtherType[2])
|
DBG_TYPE_TX,
|
||||||
|
IPV4_DBG,
|
||||||
|
DBG_LVL_ALL,
|
||||||
|
"%s EthCS DSAP:%x EtherType[2]:%x\n",
|
||||||
|
__func__,
|
||||||
|
pstEthCsPktInfo->ucDSAP,
|
||||||
|
pstClassifierRule->au8EthCSEtherType[2]);
|
||||||
|
if (pstEthCsPktInfo->ucDSAP ==
|
||||||
|
pstClassifierRule->au8EthCSEtherType[2])
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue